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 Google Groups by Ari LiVigni, 2 years ago
Failed to connect to https://localhost/
via Stack Overflow by tomrom95
, 2 years ago
Failed to connect to https://ncs-jenkins.cisco.com/
via nabble.com by Unknown author, 2 years ago
Failed to connect to https://localhost/
via GitHub by jharshman
, 1 year ago
Failed to connect to https://default-ubuntu-trusty64.example.us:8043/
via Google Groups by Grace Lee, 2 years ago
Failed to connect to https://jenkins2.eng.proofpoint.com:8443/
java.io.IOException: Failed to connect to https://jenkins.example.com/ at hudson.cli.CLI.getCliTcpPort(CLI.java:274) at hudson.cli.CLI.<init>(CLI.java:134) at hudson.cli.CLIConnectionFactory.connect(CLIConnectionFactory.java:72) at hudson.cli.CLI._main(CLI.java:469) at hudson.cli.CLI.main(CLI.java:384)Caused by: 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:1682) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:257) at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:251) at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1168) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:153) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:609) at sun.security.ssl.Handshaker.process_record(Handshaker.java:545) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:930) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1175) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1202) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1186) 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.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153) at hudson.cli.CLI.getCliTcpPort(CLI.java:272) ... 4 moreCaused by: 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.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:1147) ... 15 moreCaused by: 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) ... 21 more