Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tHTTPRequest : PKIX path building failed

Hi,
i'm trying to connect to my server using tHTTPRequest
attach is the set up. i didn't forget the URI it's just for the screen shot.
here is the error i got:
Starting job GET_DM_DATA at 13:13 13/10/2013.

connecting to socket on port 3859
connected
2013-10-13 13:13:08|nwZxV5|nwZxV5|nwZxV5|21528|SALESFORCE|GET_DM_DATA|_lB4wkBCIEeO1t5vCWPAWSw|0.1|Default||begin||
Exception in component tHttpRequest_1
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
2013-10-13 13:13:10|nwZxV5|nwZxV5|nwZxV5|SALESFORCE|GET_DM_DATA|Default|6|Java Exception|tHttpRequest_1|javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target|1
2013-10-13 13:13:10|nwZxV5|nwZxV5|nwZxV5|21528|SALESFORCE|GET_DM_DATA|_lB4wkBCIEeO1t5vCWPAWSw|0.1|Default||end|failure|1703
disconnected
at sun.net. www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net. www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net. www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at salesforce.get_dm_data_0_1.GET_DM_DATA.tHttpRequest_1Process(GET_DM_DATA.java:541)
at salesforce.get_dm_data_0_1.GET_DM_DATA.runJobInTOS(GET_DM_DATA.java:2133)
at salesforce.get_dm_data_0_1.GET_DM_DATA.main(GET_DM_DATA.java:1994)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 14 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 20 more
Job GET_DM_DATA ended at 13:13 13/10/2013.
i'm using version 5.2.1
using the same papameters i was able to run it in Mozila browser using rest client add on.
Any clue?
Thanks
Shahar
0683p000009MAoz.jpg
Labels (6)
11 Replies
Anonymous
Not applicable
Author

Hi,
It seems your server require HTTPS POST?
Please see this related article http://stackoverflow.com/questions/6908948/java-sun-security-provider-certpath-suncertpathbuilderexc....
Are you able to successfully import the certificate? By tSetKeystore component?
Best regards
Sabrina
Anonymous
Not applicable
Author

HI,
i wan't able to enable the keystore. i'm not a java expert 0683p000009MPcz.png .
anything else i can do here?
Thanks
Anonymous
Not applicable
Author

Hi,
Does the component tFileFetch meet your needs. It supports HTTPS connections, you can set authentication in the advanced settings panel of component.
Best regards
Sabrina
Anonymous
Not applicable
Author

I tried it, i got different problem on different topic:
http://www.talendforge.org/forum/viewtopic.php?pid=119380#p119380
Thanks !
Shahar
Anonymous
Not applicable
Author

Hello,
I'm attempting to run a GET request via HTTPS using tHttpRequest. Was running into all kinds of errors as mentioned in the forums so I: added in tSetKeystore, setup a new TrustStore & KeyStore (http://www.techbrainwave.com/?p=953), imported the certificate from the server I'm attempting to connect to, learned a heck of a lot along the way, but still get the following error:
{code}Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target{/code}
* not able to use POST (server limitation)
* cannot use tFileFetch (server limitation)
* headers (authentication/content-type/etc) are correct as validated with another tool
Any ideas? I'm stumped (I'm also not a java dev so..)..
Anonymous
Not applicable
Author

Hi all,
I've encountered the same problem.
Does someone have the solution ?
Thank you in advance !
Regards,
Anonymous
Not applicable
Author

i have the same problem.
Anonymous
Not applicable
Author

Hi ssalvatierra,
The job should be OK if you have tested  tsend mail with gmail.

Did your company Inbox server require certification?
Best regards
Sabrina
sukumar_c
Contributor
Contributor

Hi,
i'm trying to connect to my server using tHTTPRequest
attach is the set up. i didn't forget the URI it's just for the screen shot.
here is the error i got:
Starting job GET_DM_DATA at 13:13 13/10/2013.

connecting to socket on port 3859
connected
2013-10-13 13:13:08|nwZxV5|nwZxV5|nwZxV5|21528|SALESFORCE|GET_DM_DATA|_lB4wkBCIEeO1t5vCWPAWSw|0.1|Default||begin||
Exception in component tHttpRequest_1
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.ssl.Alerts.getSSLException(Unknown Source)
at sun.security.ssl.SSLSocketImpl.fatal(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.Handshaker.fatalSE(Unknown Source)
at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)
at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)
at sun.security.ssl.Handshaker.processLoop(Unknown Source)
at sun.security.ssl.Handshaker.process_record(Unknown Source)
at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
2013-10-13 13:13:10|nwZxV5|nwZxV5|nwZxV5|SALESFORCE|GET_DM_DATA|Default|6|Java Exception|tHttpRequest_1|javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target|1
2013-10-13 13:13:10|nwZxV5|nwZxV5|nwZxV5|21528|SALESFORCE|GET_DM_DATA|_lB4wkBCIEeO1t5vCWPAWSw|0.1|Default||end|failure|1703
disconnected
at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)
at salesforce.get_dm_data_0_1.GET_DM_DATA.tHttpRequest_1Process(GET_DM_DATA.java:541)
at salesforce.get_dm_data_0_1.GET_DM_DATA.runJobInTOS(GET_DM_DATA.java:2133)
at salesforce.get_dm_data_0_1.GET_DM_DATA.main(GET_DM_DATA.java:1994)
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(Unknown Source)
at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)
at sun.security.validator.Validator.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)
at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)
... 14 more
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)
at java.security.cert.CertPathBuilder.build(Unknown Source)
... 20 more
Job GET_DM_DATA ended at 13:13 13/10/2013.
i'm using version 5.2.1
using the same papameters i was able to run it in Mozila browser using rest client add on.
Any clue?
Thanks
Shahar

I am also Facing the same issue .Did you resolved the issue.