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

Oracle Community | abraham80 | 9 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

    How to https connection

    Oracle Community | 9 years ago | abraham80
    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

    Java and mysterious SSL certificate issue even though certification path is valid

    Stack Overflow | 2 years 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
  3. 0

    javax.net.ssl.SSLHandshakeException: Remote host closed connection during h

    Oracle Community | 1 decade ago | 843811
    javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    "Received fatal alert: handshake_failure" when trying to connect to https web service

    Stack Overflow | 4 years ago | Dave
    javax.net.ssl.SSLHandshakeException: SSLHandshakeException invoking https://nonprod.cbapis.org/qa2/bsorg/OrganizationService: Received fatal alert: handshake_failure

    15 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.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.net.ssl.internal.ssl.Alerts.getSSLException()
    2. Java JSSE
      SSLSocketImpl.startHandshake
      1. com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
      2. com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1520)
      3. com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:182)
      4. com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
      5. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
      6. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
      7. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:511)
      8. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:449)
      9. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
      10. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1029)
      11. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1056)
      12. com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1040)
      12 frames
    3. Java RT
      HttpsURLConnectionImpl.getOutputStream
      1. sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)
      2. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
      3. sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836)
      4. sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)
      4 frames
    4. javaapplication1
      Main.main
      1. javaapplication1.Main.metodo2(Main.java:91)
      2. javaapplication1.Main.main(Main.java:42)
      2 frames