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 GitHub by frami
, 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
via Stack Overflow by ek0
, 4 months ago
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 nikita-leonov
, 2 years ago
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find v alid certification path to requested target
via Stack Overflow by jquiambao
, 10 months ago
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
via Stack Overflow by David Thielen
, 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
via Stack Overflow by Pavanraotk
, 2 months 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.build(Unknown Source)	at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(Unknown Source)	at java.security.cert.CertPathBuilder.build(Unknown Source)	at sun.security.validator.PKIXValidator.doBuild(Unknown Source)	at sun.security.validator.PKIXValidator.engineValidate(Unknown Source)	at sun.security.validator.Validator.validate(Unknown Source)	at sun.security.ssl.X509TrustManagerImpl.validate(Unknown Source)	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(Unknown Source)	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source)	at sun.security.ssl.ClientHandshaker.serverCertificate(Unknown Source)	at sun.security.ssl.ClientHandshaker.processMessage(Unknown Source)	at sun.security.ssl.Handshaker.processLoop(Unknown Source)	at sun.security.ssl.Handshaker.process_record(Unknown Source)	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)	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:141)	at org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect(BasicHttpClientConnectionManager.java:338)	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 org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)	at org.jenkinsci.plugins.stashNotifier.StashNotifier.notifyStash(StashNotifier.java:689)	at org.jenkinsci.plugins.stashNotifier.StashNotifier.processJenkinsEvent(StashNotifier.java:287)	at org.jenkinsci.plugins.stashNotifier.StashNotifier.prebuild(StashNotifier.java:198)	at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:834)	at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:829)	at hudson.model.Build$BuildExecution.doRun(Build.java:144)	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)	at hudson.model.Run.execute(Run.java:1720)	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)	at hudson.model.ResourceController.execute(ResourceController.java:98)	at hudson.model.Executor.run(Executor.java:404)