javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException

Jenkins JIRA | Sorin Sbarnea | 6 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    One additional comment: I also tested by setting port to 5223 with the same result. {quote} INFO: Completed initialization Feb 15, 2011 2:36:02 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 58299 Feb 15, 2011 2:36:02 PM javax.jmdns.impl.HostInfo newHostInfo WARNING: Could not find any address beside the loopback. Feb 15, 2011 2:36:32 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect java.io.EOFException: input contained no data <-->at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) <-->at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) <-->at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410) <-->at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) <-->at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) <-->at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325) <-->at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) <-->at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Feb 15, 2011 2:37:35 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException <-->at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) <-->at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:258) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:252) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165) <-->at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154) <-->at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610) <-->at sun.security.ssl.Handshaker.process_record(Handshaker.java:546) <-->at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913) <-->at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) <-->at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:652) <-->at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78) <-->at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220) <-->at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) <-->at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) <-->at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) <-->at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) <-->at java.io.BufferedWriter.flush(BufferedWriter.java:253) <-->at java.io.FilterWriter.flush(FilterWriter.java:100) <-->at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258) <-->at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186) <-->at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40) <-->at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324) <-->at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224) <-->at sun.security.validator.Validator.validate(Validator.java:235) <-->at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144) <-->... 18 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target <-->at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197) <-->at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255) <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319) <-->... 24 more {quote}

    Jenkins JIRA | 6 years ago | Sorin Sbarnea
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
  2. 0

    One additional comment: I also tested by setting port to 5223 with the same result. {quote} INFO: Completed initialization Feb 15, 2011 2:36:02 PM hudson.TcpSlaveAgentListener <init> INFO: JNLP slave agent listener started on TCP port 58299 Feb 15, 2011 2:36:02 PM javax.jmdns.impl.HostInfo newHostInfo WARNING: Could not find any address beside the loopback. Feb 15, 2011 2:36:32 PM hudson.plugins.im.IMConnectionProvider$ConnectorRunnable run INFO: Trying to reconnect java.io.EOFException: input contained no data <-->at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:3003) <-->at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046) <-->at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410) <-->at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395) <-->at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093) <-->at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325) <-->at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43) <-->at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70) Feb 15, 2011 2:37:35 PM hudson.plugins.jabber.im.transport.JabberIMConnection retryConnectionWithLegacySSL INFO: Retrying connection with legacy SSL javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException <-->at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) <-->at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:258) <-->at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:252) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165) <-->at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154) <-->at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610) <-->at sun.security.ssl.Handshaker.process_record(Handshaker.java:546) <-->at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913) <-->at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158) <-->at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:652) <-->at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78) <-->at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220) <-->at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290) <-->at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294) <-->at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140) <-->at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) <-->at java.io.BufferedWriter.flush(BufferedWriter.java:253) <-->at java.io.FilterWriter.flush(FilterWriter.java:100) <-->at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258) <-->at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186) <-->at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40) <-->at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid cer <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324) <-->at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224) <-->at sun.security.validator.Validator.validate(Validator.java:235) <-->at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230) <-->at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270) <-->at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144) <-->... 18 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target <-->at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197) <-->at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255) <-->at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319) <-->... 24 more {quote}

    Jenkins JIRA | 6 years ago | Sorin Sbarnea
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException
  3. 0

    Intermittent errors

    Google Groups | 5 years ago | David Clark
    org.jets3t.service.S3ServiceException: Request Error. PUT '/00000001000000EF00000032' on Host '0jznp8rbhc632tq2ny82.wal.s3.amazonaws.com'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to handle invalid SSL certificates with Apache HttpClient?

    Stack Overflow | 7 years ago | rauch
    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
  6. 0

    JAVA - Tomcat 5 Application connecting to Web Service using HTTPS, while Tomcat 7 Application does not

    Stack Overflow | 4 years ago | Ryan S
    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. Andreas Häber 8 times, last 3 months ago
  2. jf-ast 1 times, last 3 weeks ago
  3. Alireza Mohamadi 5 times, last 2 months ago
  4. eti22 9 times, last 2 months ago
  5. tvrmsmith 4 times, last 5 months ago
5 more registered users
58 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. sun.security.provider.certpath.SunCertPathBuilderException

    unable to find valid certification path to requested target

    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild()
  2. Java RT
    Validator.validate
    1. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:197)
    2. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255)
    3. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319)
    4. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224)
    5. sun.security.validator.Validator.validate(Validator.java:235)
    5 frames
  3. Java JSSE
    AppOutputStream.write
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147)
    2. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:610)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:546)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)
    10. sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:652)
    11. sun.security.ssl.AppOutputStream.write(AppOutputStream.java:78)
    11 frames
  4. Java RT
    FilterWriter.flush
    1. sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:220)
    2. sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:290)
    3. sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:294)
    4. sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:140)
    5. java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229)
    6. java.io.BufferedWriter.flush(BufferedWriter.java:253)
    7. java.io.FilterWriter.flush(FilterWriter.java:100)
    7 frames
  5. Smack
    PacketWriter$1.run
    1. org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258)
    2. org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186)
    3. org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)
    4. org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)
    4 frames