javax.net.ssl.SSLException: Connection has been shutdown: 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

Stack Overflow | DylanStout | 4 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to poroszd . Or join the community to write better ones.
  1. 0

    SSL Socket Help - javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown

    Stack Overflow | 4 months ago | DylanStout
    javax.net.ssl.SSLException: Connection has been shutdown: 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
  2. 0
    samebug tip
    Set the 'mail.smtp.ssl.trust' system property to an smtp host, like 'smtp.gmail.com'.
  3. 0
    samebug tip
    The SSL certificate is expired. You can workaround by instantiating a custom SSLContext.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    issuehub.io

    issuehub.io | 11 months ago
    com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.lang.String org.ow2.proactive_grid_cloud_portal.scheduler.client.SchedulerService.getVersion() throws org.ow2.proactive_grid_cloud_portal.common.shared.RestServerException,org.ow2.proactive_grid_cloud_portal.common.shared.ServiceException' threw an unexpected exception: javax.ws.rs.ProcessingException: RESTEASY004655: Unable to invoke request
  6. 0

    GitHub comment 396#216035230

    GitHub | 10 months ago | debraj-manna
    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. jf-ast 1 times, last 4 weeks ago
  2. Alireza Mohamadi 5 times, last 2 months ago
  3. eti22 9 times, last 2 months ago
  4. Andreas Häber 8 times, last 3 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.build()
  2. Java RT
    Validator.validate
    1. sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)
    2. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)
    3. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    6. sun.security.validator.Validator.validate(Validator.java:260)
    6 frames
  3. Java JSSE
    SSLSocketImpl.getSession
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
    11. sun.security.ssl.SSLSocketImpl.getSession(SSLSocketImpl.java:2267)
    11 frames
  4. com.example
    SSLSocketClient.main
    1. com.example.SSLSocketClient.printSocketInfo(SSLSocketClient.java:55)
    2. com.example.SSLSocketClient.main(SSLSocketClient.java:22)
    2 frames