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

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

    SSL Handshake failing for Eureka Discovery Client

    Stack Overflow | 7 months ago | aj1984
    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
  2. 0

    GitHub comment 1684#279330987

    GitHub | 2 months ago | atiwari54
    com.netflix.zuul.exception.ZuulException: Forwarding error
  3. 0

    HTTPS port issue - certificate_unknown

    GitHub | 2 years ago | chamal
    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

    Apache HttpClient exception PKIX path building failed

    Stack Overflow | 3 years ago | Victor Ribeiro da Silva Eloy
    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

    How to enable SSL for RPC connection?

    Stack Overflow | 3 years ago | jan
    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
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:141)[na:1.8.0_91]
    2. sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:126)[na:1.8.0_91]
    3. java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)[na:1.8.0_91]
    4. sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)[na:1.8.0_91]
    5. sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)[na:1.8.0_91]
    6. sun.security.validator.Validator.validate(Validator.java:260)[na:1.8.0_91]
    6 frames
  3. Java JSSE
    SSLSocketImpl.startHandshake
    1. sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)[na:1.8.0_91]
    2. sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)[na:1.8.0_91]
    3. sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:124)[na:1.8.0_91]
    4. sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)[na:1.8.0_91]
    5. sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)[na:1.8.0_91]
    6. sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[na:1.8.0_91]
    7. sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[na:1.8.0_91]
    8. sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[na:1.8.0_91]
    9. sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_91]
    10. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)[na:1.8.0_91]
    11. sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)[na:1.8.0_91]
    11 frames
  4. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:553)[httpclient-4.5.2.jar:4.5.2]
    2. org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:412)[httpclient-4.5.2.jar:4.5.2]
    3. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)[httpclient-4.5.2.jar:4.5.2]
    4. org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:144)[httpclient-4.5.2.jar:4.5.2]
    5. org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:134)[httpclient-4.5.2.jar:4.5.2]
    6. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)[httpclient-4.5.2.jar:4.5.2]
    7. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)[httpclient-4.5.2.jar:4.5.2]
    8. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)[httpclient-4.5.2.jar:4.5.2]
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:117)[httpclient-4.5.2.jar:4.5.2]
    10. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)[httpclient-4.5.2.jar:4.5.2]
    10 frames
  5. Jersey Apache HTTP Client 4.x
    ApacheHttpClient4Handler.handle
    1. com.sun.jersey.client.apache4.ApacheHttpClient4Handler.handle(ApacheHttpClient4Handler.java:173)[jersey-apache-client4-1.19.1.jar:1.19.1]
    1 frame
  6. jersey-client
    GZIPContentEncodingFilter.handle
    1. com.sun.jersey.api.client.filter.GZIPContentEncodingFilter.handle(GZIPContentEncodingFilter.java:123)[jersey-client-1.19.1.jar:1.19.1]
    1 frame
  7. eureka-client
    EurekaIdentityHeaderFilter.handle
    1. com.netflix.discovery.EurekaIdentityHeaderFilter.handle(EurekaIdentityHeaderFilter.java:27)[eureka-client-1.4.11.jar:1.4.11]
    1 frame
  8. jersey-client
    WebResource$Builder.delete
    1. com.sun.jersey.api.client.Client.handle(Client.java:652)[jersey-client-1.19.1.jar:1.19.1]
    2. com.sun.jersey.api.client.WebResource.handle(WebResource.java:682)[jersey-client-1.19.1.jar:1.19.1]
    3. com.sun.jersey.api.client.WebResource.access$200(WebResource.java:74)[jersey-client-1.19.1.jar:1.19.1]
    4. com.sun.jersey.api.client.WebResource$Builder.delete(WebResource.java:591)[jersey-client-1.19.1.jar:1.19.1]
    4 frames
  9. com.netflix.discovery
    EurekaHttpClientDecorator.cancel
    1. com.netflix.discovery.shared.transport.jersey.AbstractJerseyEurekaHttpClient.cancel(AbstractJerseyEurekaHttpClient.java:76)[eureka-client-1.4.11.jar:1.4.11]
    2. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$2.execute(EurekaHttpClientDecorator.java:74)[eureka-client-1.4.11.jar:1.4.11]
    3. com.netflix.discovery.shared.transport.decorator.MetricsCollectingEurekaHttpClient.execute(MetricsCollectingEurekaHttpClient.java:73)[eureka-client-1.4.11.jar:1.4.11]
    4. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.cancel(EurekaHttpClientDecorator.java:71)[eureka-client-1.4.11.jar:1.4.11]
    5. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$2.execute(EurekaHttpClientDecorator.java:74)[eureka-client-1.4.11.jar:1.4.11]
    6. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.executeOnNewServer(RedirectingEurekaHttpClient.java:118)[eureka-client-1.4.11.jar:1.4.11]
    7. com.netflix.discovery.shared.transport.decorator.RedirectingEurekaHttpClient.execute(RedirectingEurekaHttpClient.java:79)[eureka-client-1.4.11.jar:1.4.11]
    8. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.cancel(EurekaHttpClientDecorator.java:71)[eureka-client-1.4.11.jar:1.4.11]
    9. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$2.execute(EurekaHttpClientDecorator.java:74)[eureka-client-1.4.11.jar:1.4.11]
    10. com.netflix.discovery.shared.transport.decorator.RetryableEurekaHttpClient.execute(RetryableEurekaHttpClient.java:119)[eureka-client-1.4.11.jar:1.4.11]
    11. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.cancel(EurekaHttpClientDecorator.java:71)[eureka-client-1.4.11.jar:1.4.11]
    12. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator$2.execute(EurekaHttpClientDecorator.java:74)[eureka-client-1.4.11.jar:1.4.11]
    13. com.netflix.discovery.shared.transport.decorator.SessionedEurekaHttpClient.execute(SessionedEurekaHttpClient.java:77)[eureka-client-1.4.11.jar:1.4.11]
    14. com.netflix.discovery.shared.transport.decorator.EurekaHttpClientDecorator.cancel(EurekaHttpClientDecorator.java:71)[eureka-client-1.4.11.jar:1.4.11]
    14 frames
  10. eureka-client
    DiscoveryClient$$FastClassBySpringCGLIB$$a84c8cb4.invoke
    1. com.netflix.discovery.DiscoveryClient.unregister(DiscoveryClient.java:902)[eureka-client-1.4.11.jar:1.4.11]
    2. com.netflix.discovery.DiscoveryClient.shutdown(DiscoveryClient.java:880)[eureka-client-1.4.11.jar:1.4.11]
    3. com.netflix.discovery.DiscoveryClient$$FastClassBySpringCGLIB$$a84c8cb4.invoke(<generated>)[eureka-client-1.4.11.jar:1.4.11]
    3 frames
  11. Spring Core
    MethodProxy.invoke
    1. org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)[spring-core-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    1 frame
  12. Spring AOP
    ReflectiveMethodInvocation.proceed
    1. org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  13. org.springframework.cloud
    StandardBeanLifecycleDecorator$2.invoke
    1. org.springframework.cloud.context.config.StandardBeanLifecycleDecorator$2.invoke(StandardBeanLifecycleDecorator.java:85)[spring-cloud-context-1.1.3.RELEASE.jar:1.1.3.RELEASE]
    1 frame
  14. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2 frames
  15. org.springframework.cloud
    CloudEurekaClient$$EnhancerBySpringCGLIB$$92dcbb78.shutdown
    1. org.springframework.cloud.netflix.eureka.CloudEurekaClient$$EnhancerBySpringCGLIB$$92dcbb78.shutdown(<generated>)[spring-cloud-netflix-eureka-client-1.2.0.RELEASE.jar:1.2.0.RELEASE]
    1 frame
  16. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
    4 frames
  17. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    4. org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    5. org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    6. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    7. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)[spring-aop-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    7 frames
  18. com.sun.proxy
    $Proxy88.shutdown
    1. com.sun.proxy.$Proxy88.shutdown(Unknown Source)[na:na]
    1 frame
  19. org.springframework.cloud
    EurekaDiscoveryClientConfiguration.onApplicationEvent
    1. org.springframework.cloud.netflix.eureka.EurekaDiscoveryClientConfiguration.onApplicationEvent(EurekaDiscoveryClientConfiguration.java:192)[spring-cloud-netflix-eureka-client-1.2.0.RELEASE.jar:1.2.0.RELEASE]
    1 frame
  20. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
    4 frames
  21. Spring Context
    AbstractApplicationContext.close
    1. org.springframework.context.event.ApplicationListenerMethodAdapter.doInvoke(ApplicationListenerMethodAdapter.java:253)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    2. org.springframework.context.event.ApplicationListenerMethodAdapter.processEvent(ApplicationListenerMethodAdapter.java:174)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    3. org.springframework.context.event.ApplicationListenerMethodAdapter.onApplicationEvent(ApplicationListenerMethodAdapter.java:137)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    4. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    5. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    6. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:382)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    7. org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:336)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    8. org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:989)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    9. org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:956)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE]
    9 frames
  22. org.springframework.boot
    SpringApplicationAdminMXBeanRegistrar$SpringApplicationAdmin.shutdown
    1. org.springframework.boot.admin.SpringApplicationAdminMXBeanRegistrar$SpringApplicationAdmin.shutdown(SpringApplicationAdminMXBeanRegistrar.java:126)[spring-boot-1.4.1.RELEASE.jar:1.4.1.RELEASE]
    1 frame
  23. Java RT
    Thread.run
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
    4. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
    5. sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)[na:1.8.0_91]
    6. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    7. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
    8. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
    9. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
    10. sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)[na:1.8.0_91]
    11. com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:193)[na:1.8.0_91]
    12. com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:175)[na:1.8.0_91]
    13. com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:117)[na:1.8.0_91]
    14. com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:54)[na:1.8.0_91]
    15. com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)[na:1.8.0_91]
    16. com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)[na:1.8.0_91]
    17. com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:252)[na:1.8.0_91]
    18. com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)[na:1.8.0_91]
    19. com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)[na:1.8.0_91]
    20. javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)[na:1.8.0_91]
    21. javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)[na:1.8.0_91]
    22. javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)[na:1.8.0_91]
    23. javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)[na:1.8.0_91]
    24. javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)[na:1.8.0_91]
    25. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_91]
    26. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_91]
    27. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_91]
    28. java.lang.reflect.Method.invoke(Method.java:498)[na:1.8.0_91]
    29. sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)[na:1.8.0_91]
    30. sun.rmi.transport.Transport$1.run(Transport.java:200)[na:1.8.0_91]
    31. sun.rmi.transport.Transport$1.run(Transport.java:197)[na:1.8.0_91]
    32. java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_91]
    33. sun.rmi.transport.Transport.serviceCall(Transport.java:196)[na:1.8.0_91]
    34. sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)[na:1.8.0_91]
    35. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)[na:1.8.0_91]
    36. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)[na:1.8.0_91]
    37. java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_91]
    38. sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)[na:1.8.0_91]
    39. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_91]
    40. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_91]
    41. java.lang.Thread.run(Thread.java:745)[na:1.8.0_91]
    41 frames