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

coderanch.com | 7 months 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

    sending automatic javamail from a website using java mail API [Solved] (Java in General forum at Coderanch)

    coderanch.com | 1 year ago
    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

    sending automatic javamail from a website using java mail API

    Coderanch | 3 years ago | sunaina agarwal
    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
  3. 0

    sending automatic javamail from a website using java mail API [Solved] (Java in General forum at Coderanch)

    coderanch.com | 7 months ago
    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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Apache Commons Email and JBOSS SSL - sending email fails with SunCertPathBuilderException

    Stack Overflow | 3 years ago | Robert Niestroj
    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

    My Java program stopped sending emails using my gmail Account

    Stack Overflow | 4 years ago | user2484053
    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
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:196)
    2. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)
    3. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385)
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    6. sun.security.validator.Validator.validate(Validator.java:260)
    6 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323)
    5. sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
    6. sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1884)
    7. sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276)
    8. sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270)
    9. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341)
    10. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153)
    11. sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
    12. sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
    13. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016)
    14. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312)
    15. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
    16. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1323)
    16 frames
  4. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:532)
    2. com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:469)
    3. com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1925)
    4. com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1930)
    5. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:668)
    5 frames
  5. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:367)
    2. javax.mail.Service.connect(Service.java:226)
    3. javax.mail.Service.connect(Service.java:175)
    4. javax.mail.Transport.send0(Transport.java:253)
    5. javax.mail.Transport.send(Transport.java:124)
    5 frames
  6. com.affiliate.DTO
    ConfirmationMail.sendMail
    1. com.affiliate.DTO.ConfirmationMail.sendMail(ConfirmationMail.java:51)
    1 frame