javax.mail.MessagingException: Exception reading response; nested exception is: 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 | Veeresh123 | 6 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

    Java mail message reading exception when sending a mail through java 6 with port 465

    Stack Overflow | 6 months ago | Veeresh123
    javax.mail.MessagingException: Exception reading response; nested exception is: 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

    JavaMail fails in an osgi bundle

    Stack Overflow | 5 years ago | jacob
    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

    SecurityException while sending to gmail from javamail

    Coderanch | 7 years ago | vasu chowdary
    javax.mail.MessagingException: Exception reading response; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Javamial : Send mail over SSL

    Oracle Community | 10 years ago | 843811
    javax.mail.MessagingException: Exception reading response
  6. 0

    Javamail - Send mail over SSL

    Oracle Community | 10 years ago | 843830
    javax.mail.MessagingException: Exception reading response
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:174)
    2. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
    3. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:318)
    4. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:217)
    5. sun.security.validator.Validator.validate(Validator.java:218)
    5 frames
  3. Java JSSE
    AppInputStream.read
    1. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
    2. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
    3. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
    4. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1185)
    5. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:136)
    6. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:593)
    7. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:529)
    8. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:925)
    9. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1170)
    10. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:785)
    11. com.sun.net.ssl.internal.ssl.AppInputStream.read(AppInputStream.java:75)
    11 frames
  4. JavaMail API (compat)
    TraceInputStream.read
    1. com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
    1 frame
  5. Java RT
    BufferedInputStream.read
    1. java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    2. java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    2 frames
  6. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
    2. com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
    3. com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
    4 frames
  7. JavaMail API
    Transport.send
    1. javax.mail.Service.connect(Service.java:310)
    2. javax.mail.Service.connect(Service.java:169)
    3. javax.mail.Service.connect(Service.java:118)
    4. javax.mail.Transport.send0(Transport.java:188)
    5. javax.mail.Transport.send(Transport.java:118)
    5 frames
  8. com.demo
    MySendMails.main
    1. com.demo.MySendMails.sendMail(MySendMails.java:477)
    2. com.demo.MySendMails.BirthDayMail(MySendMails.java:291)
    3. com.demo.MySendMails.main(MySendMails.java:535)
    3 frames