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 | Mike Boota | 1 decade ago
  1. 0

    Login and Download file over https

    Coderanch | 1 decade ago | Mike Boota
    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

    Downloading a file over https over java

    Stack Overflow | 7 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

    Spring remoting using Https and tomcat

    Stack Overflow | 5 years ago | vikas
    org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [https://localhost:8443/aten_server/metadataservice/MetaDataService-httpinvoker]; 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    JIRA Rest API change issue status --> 401 error

    Stack Overflow | 2 years ago | user3867493
    com.atlassian.jira.rest.client.RestClientException: com.sun.jersey.api.client.ClientHandlerException: 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

    PKIX path building failed: sun.security.provide... | Oracle Community

    oracle.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

  1. Andreas Häber 8 times, last 3 weeks ago
  2. tvrmsmith 4 times, last 2 months ago
  3. Dore 1 times, last 3 months ago
  4. andyglick 17 times, last 2 months ago
  5. davidvanlaatum 10 times, last 3 months ago
2 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.SunCertPathBuilderException.init()
  2. Java RT
    Validator.validate
    1. sun.security.provider.certpath.SunCertPathBuilderException.init(SunCertPathBuilderException.java:87)
    2. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:236)
    3. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:194)
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:216)
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:145)
    6. sun.security.validator.Validator.validate(Validator.java:203)
    6 frames
  3. Java JSSE
    AppOutputStream.write
    1. com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:172)
    2. com.sun.net.ssl.internal.ssl.JsseX509TrustManager.checkServerTrusted(SSLContextImpl.java:320)
    3. com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:840)
    4. com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:106)
    5. com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:495)
    6. com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:433)
    7. com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:815)
    8. com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
    9. com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:619)
    10. com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
    10 frames
  4. Java RT
    BufferedOutputStream.flush
    1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
    2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)
    2 frames
  5. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeRequestBody(EntityEnclosingMethod.java:502)
    2. org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:1973)
    3. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:993)
    4. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
    6. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:322)
    7 frames
  6. com.acdo.login
    FormLoginDemo.main
    1. com.acdo.login.common.FormLoginDemo.main(FormLoginDemo.java:47)
    1 frame