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 devil0118
, 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 GitHub by VincentDhWang
, 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 GitHub by 123dev
, 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 GitHub by 123dev
, 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 GitHub by jupierce
, 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 Senior Wurst
, 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:196)	at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:268)	at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:380)	at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)	at sun.security.validator.Validator.validate(Validator.java:260)	at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)	at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)	at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)	at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1428)	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 okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:242)	at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:198)	at okhttp3.internal.connection.RealConnection.buildConnection(RealConnection.java:174)	at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:114)	at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:193)	at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:129)	at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:98)	at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)	at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:109)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)	at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:170)	at okhttp3.RealCall.execute(RealCall.java:60)	at MplusTest.run(MplusTest.java:15)	at MplusTest.main(MplusTest.java:21)