Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    via Stack Overflow by Strelok

    Import the server certificate into your truststore.

Solutions on the web

via GitHub by 0312birdzhang
, 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
via GitHub by sloooda
, 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
via GitHub by sloooda
, 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
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:1904)	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:279)	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:273)	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1446)	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:209)	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:901)	at sun.security.ssl.Handshaker.process_record(Handshaker.java:837)	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1023)	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1332)	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1359)	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1343)	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:394)	at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)	at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)	at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)	at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)	at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.getAccessToken(WxCpServiceImpl.java:127)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.getAccessToken(WxCpServiceImpl.java:139)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.executeInternal(WxCpServiceImpl.java:562)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.execute(WxCpServiceImpl.java:535)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.post(WxCpServiceImpl.java:519)	at me.chanjar.weixin.cp.api.WxCpServiceImpl.messageSend(WxCpServiceImpl.java:195)	at it.sauronsoftware.cron4j.TaskExecutor$Runner.run(Unknown Source)	at java.lang.Thread.run(Thread.java:745)