javax.mail.MessagingException: Can't send command to SMTP host; 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 | Rajesh Kumar | 4 months ago
  1. 0

    Unable to send mail (jre 7 + tomcat + TLS)

    Stack Overflow | 4 months ago | Rajesh Kumar
    javax.mail.MessagingException: Can't send command to SMTP host; 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 and STARTTLS not working on different platforms

    Stack Overflow | 1 year ago | Beto Neto
    javax.mail.MessagingException: STARTTLS is required but host does not support STARTTLS
  3. 0

    Javamail exception in maven project

    Stack Overflow | 2 years ago | user3026263
    javax.mail.MessagingException: 501 5.5.4 Invalid argument Done Testing Complete , Check Inbox Please
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    javax.mail.MessagingException: Could not connect to SMTP host ( Not Gmail )

    Stack Overflow | 4 years ago | JDeveloper
    javax.mail.MessagingException: Could not connect to SMTP host: mail.myspecified.com, port: 465, response: -1
  6. 0

    Using JavaMail to send email, getting "Connection refused" because of "too many connections" - why?

    Stack Overflow | 6 years ago
    javax.mail.MessagingException: Could not connect to SMTP host: smtp.myisprovider.net, port: 25, response: 421

  1. Tahir 2 times, last 2 months ago
  2. Tahir 767 times, last 1 month ago
  3. Andreas Häber 4 times, last 2 months ago
  4. abrazeneb 102 times, last 4 months ago
27 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. javax.mail.MessagingException

    Can't send command to SMTP host; 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

    at com.sun.mail.smtp.SMTPTransport.sendCommand()
  2. JavaMail API (compat)
    SMTPTransport.protocolConnect
    1. com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1420)
    2. com.sun.mail.smtp.SMTPTransport.sendCommand(SMTPTransport.java:1408)
    3. com.sun.mail.smtp.SMTPTransport.ehlo(SMTPTransport.java:847)
    4. com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:384)
    4 frames
  3. JavaMail API
    Service.connect
    1. javax.mail.Service.connect(Service.java:297)
    2. javax.mail.Service.connect(Service.java:156)
    3. javax.mail.Service.connect(Service.java:105)
    3 frames
  4. com.server.util
    MailServerHandler.checkMailServer
    1. com.server.util.MailServerHandler.checkMailServer(MailServerHandler.java:145)
    1 frame