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

Pentaho BI Platform Tracking | Mike Baranski | 5 months ago
  1. 0

    Currently the REST client builder does not allow self-signed SSL certs. Would like a checkbox so that we do not have to create a keystore with all valid certs in it. Here is an example exception. I verified that the URL works with "curl --insecure https://theurl". 2016/07/23 07:22:05 - REST Client.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : Because of an error, this step can't continue: 2016/07/23 07:22:05 - REST Client.0 - Can not result from [https://localhost:8443/BabysDigest-1.0/rest/v1/bd-user/find/mike] 2016/07/23 07:22:05 - REST Client.0 - 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 2016/07/23 07:22:05 - REST Client.0 - ERROR (version 6.1.0.1-196, build 1 from 2016-04-07 12.08.49 by buildguy) : org.pentaho.di.core.exception.KettleException: 2016/07/23 07:22:05 - REST Client.0 - Can not result from [https://localhost:8443/BabysDigest-1.0/rest/v1/bd-user/find/mike] 2016/07/23 07:22:05 - REST Client.0 - 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 2016/07/23 07:22:05 - REST Client.0 - 2016/07/23 07:22:05 - REST Client.0 - at org.pentaho.di.trans.steps.rest.Rest.callRest(Rest.java:229) 2016/07/23 07:22:05 - REST Client.0 - at org.pentaho.di.trans.steps.rest.Rest.processRow(Rest.java:449) 2016/07/23 07:22:05 - REST Client.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62) 2016/07/23 07:22:05 - REST Client.0 - at java.lang.Thread.run(Thread.java:745) 2016/07/23 07:22:05 - REST Client.0 - Caused by: 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 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.client.apache.DefaultApacheHttpMethodExecutor.executeMethod(DefaultApacheHttpMethodExecutor.java:213) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.client.apache.ApacheHttpClientHandler.handle(ApacheHttpClientHandler.java:175) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:104) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.api.client.Client.handle(Client.java:648) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.api.client.WebResource.handle(WebResource.java:680) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507) 2016/07/23 07:22:05 - REST Client.0 - at org.pentaho.di.trans.steps.rest.Rest.callRest(Rest.java:171) 2016/07/23 07:22:05 - REST Client.0 - ... 3 more 2016/07/23 07:22:05 - REST Client.0 - Caused by: 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 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.Alerts.getSSLException(Alerts.java:192) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) 2016/07/23 07:22:05 - REST Client.0 - at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) 2016/07/23 07:22:05 - REST Client.0 - at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) 2016/07/23 07:22:05 - REST Client.0 - at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) 2016/07/23 07:22:05 - REST Client.0 - at com.sun.jersey.client.apache.DefaultApacheHttpMethodExecutor.executeMethod(DefaultApacheHttpMethodExecutor.java:210) 2016/07/23 07:22:05 - REST Client.0 - ... 10 more 2016/07/23 07:22:05 - REST Client.0 - Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 2016/07/23 07:22:05 - REST Client.0 - at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:387) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.validator.Validator.validate(Validator.java:260) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491) 2016/07/23 07:22:05 - REST Client.0 - ... 27 more 2016/07/23 07:22:05 - REST Client.0 - Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 2016/07/23 07:22:05 - REST Client.0 - at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131) 2016/07/23 07:22:05 - REST Client.0 - at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) 2016/07/23 07:22:05 - REST Client.0 - at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382) 2016/07/23 07:22:05 - REST Client.0 - ... 33 more

    Pentaho BI Platform Tracking | 5 months ago | Mike Baranski
    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

    How to handle invalid SSL certificates with Apache HttpClient?

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

    E-FilesDownload fails to download file using HTTPS with invalid certificate

    GitHub | 2 years ago | jakubklimek
    files.eu.unifiedviews.dpu.DPUException: Exception occured while downloading files.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Intermittent errors

    Google Groups | 5 years ago | David Clark
    org.jets3t.service.S3ServiceException: Request Error. PUT '/00000001000000EF00000032' on Host '0jznp8rbhc632tq2ny82.wal.s3.amazonaws.com'
  6. 0

    Enter proxy settings in update manager Fetching changes from the remote Git repository Fetching upstream changes from https://git.opendaylight.org/gerrit/p/controller.git FATAL: Failed to fetch from https://git.opendaylight.org/gerrit/p/controller.git hudson.plugins.git.GitException: Failed to fetch from https://git.opendaylight.org/gerrit/p/controller.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:612) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:836) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:861) at hudson.model.AbstractProject.checkout(AbstractProject.java:1414) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:652) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:561) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: hudson.plugins.git.GitException: Failed to connect to https://git.opendaylight.org/gerrit/p/controller.git at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.checkCredentials(CliGitAPIImpl.java:1614) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:974) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$200(CliGitAPIImpl.java:69) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:218) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.fetch(CliGitAPIImpl.java:224) at hudson.plugins.git.GitAPI.fetch(GitAPI.java:229) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:299) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:280) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:239) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) ------------------------- in validate proxy, Test URL : https://git.opendaylight.org/gerrit/p/controller.git 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 sun.security.ssl.Alerts.getSSLException(Alerts.java:192) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1886) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:276) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:270) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1341) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868) at sun.security.ssl.Handshaker.process_record(Handshaker.java:804) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1016) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1312) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:702) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:122) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140) at org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828) at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116) at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096) at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398) at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397) at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323) at hudson.ProxyConfiguration$DescriptorImpl.doValidateProxy(ProxyConfiguration.java:321) at sun.reflect.GeneratedMethodAccessor897.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:120) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:248) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:728) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:858) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:631) at org.kohsuke.stapler.Stapler.service(Stapler.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:117) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:174) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:64) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:533) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489) at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:385) at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292) at sun.security.validator.Validator.validate(Validator.java:260) at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326) at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231) at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1323) ... 89 more Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:196) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380) ... 95 more

    Jenkins JIRA | 3 years ago | ping he
    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 4 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.SunCertPathBuilder.build()
  2. Java RT
    Validator.validate
    1. sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)
    2. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)
    3. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)
    6. sun.security.validator.Validator.validate(Validator.java:260)
    6 frames
  3. Java JSSE
    AppOutputStream.write
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
    10. sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)
    11. sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)
    11 frames
  4. Java RT
    BufferedOutputStream.flush
    1. java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
    2. java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
    2 frames
  5. HttpClient
    HttpClient.executeMethod
    1. org.apache.commons.httpclient.HttpConnection.flushRequestOutputStream(HttpConnection.java:828)
    2. org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.flushRequestOutputStream(MultiThreadedHttpConnectionManager.java:1565)
    3. org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBase.java:2116)
    4. org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1096)
    5. org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
    6. org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
    7. org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
    7 frames
  6. Jersey Apache HTTP Client
    ApacheHttpClientHandler.handle
    1. com.sun.jersey.client.apache.DefaultApacheHttpMethodExecutor.executeMethod(DefaultApacheHttpMethodExecutor.java:210)
    2. com.sun.jersey.client.apache.ApacheHttpClientHandler.handle(ApacheHttpClientHandler.java:175)
    2 frames
  7. jersey-client
    WebResource$Builder.get
    1. com.sun.jersey.api.client.filter.HTTPBasicAuthFilter.handle(HTTPBasicAuthFilter.java:104)
    2. com.sun.jersey.api.client.Client.handle(Client.java:648)
    3. com.sun.jersey.api.client.WebResource.handle(WebResource.java:680)
    4. com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)
    5. com.sun.jersey.api.client.WebResource$Builder.get(WebResource.java:507)
    5 frames
  8. org.pentaho.di
    RunThread.run
    1. org.pentaho.di.trans.steps.rest.Rest.callRest(Rest.java:171)
    2. org.pentaho.di.trans.steps.rest.Rest.processRow(Rest.java:449)
    3. org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
    3 frames
  9. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame