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

  2. ,
    via Stack Overflow by carlos

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

Solutions on the web

via Jenkins JIRA by Eric RIch, 1 year ago
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target)
via Jenkins JIRA by Eric RIch, 1 year ago
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:197)	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:255)	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:319)	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:324)	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:224)	at sun.security.validator.Validator.validate(Validator.java:235)	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:147)	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:230)	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:270)	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1144)	at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)	at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1665)	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:258)	at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:252)	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1165)	at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)	at sun.security.ssl.Handshaker.processLoop(Handshaker.java:610)	at sun.security.ssl.Handshaker.process_record(Handshaker.java:546)	at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:913)	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1158)	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1185)	at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1169)	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:440)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)	at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:979)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:250)	at org.springframework.ws.transport.http.HttpUrlConnection.getRequestOutputStream(HttpUrlConnection.java:81)	at org.springframework.ws.transport.AbstractSenderConnection$RequestTransportOutputStream.createOutputStream(AbstractSenderConnection.java:101)	at org.springframework.ws.transport.TransportOutputStream.getOutputStream(TransportOutputStream.java:41)	at org.springframework.ws.transport.TransportOutputStream.write(TransportOutputStream.java:60)	at com.ctc.wstx.io.UTF8Writer.flush(UTF8Writer.java:96)	at com.ctc.wstx.sw.BufferingXmlWriter.flush(BufferingXmlWriter.java:214)	at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:311)	at com.ctc.wstx.sw.BaseStreamWriter.flush(BaseStreamWriter.java:313)	at org.apache.axiom.om.impl.MTOMXMLStreamWriter.flush(MTOMXMLStreamWriter.java:168)	at org.apache.axiom.om.impl.llom.OMDocumentImpl.serialize(OMDocumentImpl.java:396)	at org.springframework.ws.soap.axiom.AxiomSoapMessage.writeTo(AxiomSoapMessage.java:248)	at org.springframework.ws.soap.axiom.AxiomSoapMessage.writeTo(AxiomSoapMessage.java:257)	at org.springframework.ws.transport.AbstractWebServiceConnection.send(AbstractWebServiceConnection.java:42)	at org.springframework.ws.client.core.WebServiceTemplate.sendRequest(WebServiceTemplate.java:586)	at org.springframework.ws.client.core.WebServiceTemplate.doSendAndReceive(WebServiceTemplate.java:549)	at org.springframework.ws.client.core.WebServiceTemplate.sendAndReceive(WebServiceTemplate.java:502)	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:351)	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:345)	at org.springframework.ws.client.core.WebServiceTemplate.marshalSendAndReceive(WebServiceTemplate.java:337)	at com.fortify.ws.client.AbstractWSClient.sendRequest(AbstractWSClient.java:131)	at com.fortify.ws.client.AbstractWSClient.transformException(AbstractWSClient.java:238)	at com.fortify.ws.client.AbstractWSClient.sendRequest(AbstractWSClient.java:141)	at com.fortify.ws.client.AuthenticationTokenClient.getSingleUseFPRUploadToken(AuthenticationTokenClient.java:84)	at com.fortify.ws.client.AuthenticationTokenClient.getSingleUseFPRUploadToken(AuthenticationTokenClient.java:68)	at com.fortify.ws.core.util.FileTransferUtil.upload(FileTransferUtil.java:90)	at com.fortify.ws.client.FPRTransferClient.uploadFPR(FPRTransferClient.java:105)