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 carlos

    Set the mail.smtp.ssl.trust system property to an smtp host, like smtp.gmail.com.

  2. ,
    Expert tip

    If you're using wiremock, configure your code to accept wiremock self-signed certificate or create a keystore and certificate that are trusted by your HTTP client and configure wiremock to use that

Solutions on the web

via Oracle Community by 807574, 1 year ago
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)	at sun.security.validator.Validator.validate(Validator.java:218)	at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)	at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)	at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)	at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:954)	at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)	at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)	at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:405)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:832)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:230)	at com.sun.xml.ws.transport.http.client.HttpClientTransport.getOutput(HttpClientTransport.java:122)	at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:137)	at com.sun.xml.xwss.XWSSClientPipe.process(XWSSClientPipe.java:118)	at com.sun.xml.ws.api.pipe.helper.PipeAdapter.processRequest(PipeAdapter.java:115)	at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:595)	at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:554)	at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:539)	at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:436)	at com.sun.xml.ws.client.Stub.process(Stub.java:248)	at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:180)	at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:206)	at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.dispatchHttpPost(OutboundMessageProcessor.java:1382)	at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.dispatch(OutboundMessageProcessor.java:1535)	at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processRequestReplyOutbound(OutboundMessageProcessor.java:666)	at com.sun.jbi.httpsoapbc.OutboundMessageProcessor.processMessage(OutboundMessageProcessor.java:244)	at com.sun.jbi.httpsoapbc.OutboundAction.run(OutboundAction.java:63)	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)	at java.lang.Thread.run(Thread.java:619)