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 Sonatype JIRA by j, 1 year ago
I/O error: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is
via Sonatype JIRA by j, 1 year ago
I/O error: Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
via GitHub by junaid1788
, 2 years ago
I/O error: Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect
via GitHub by sabbyanandan
, 2 years ago
I/O error on GET request for "http://10.64.248.126:63548/yarn_containercluster":Connect to 10.64.248.126:63548 [/10.64.248.126] failed: Operation timed out; nested exception is org.apache.http.conn.HttpHostConnectException: Connect to 10.64.248.126:63548 [/10.64.248.126] failed: Operation timed out
via GitHub by kakawait
, 3 months ago
I/O error on POST request for "http://uaa-service/uaa/oauth/token": com.netflix.client.ClientException; nested exception is java.io.IOException: com.netflix.client.ClientException
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target	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 sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source)	at org.springframework.http.client.SimpleBufferingClientHttpRequest.executeInternal(SimpleBufferingClientHttpRequest.java:73)	at org.springframework.http.client.AbstractBufferingClientHttpRequest.executeInternal(AbstractBufferingClientHttpRequest.java:46)	at org.springframework.http.client.AbstractClientHttpRequest.execute(AbstractClientHttpRequest.java:49)	at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:438)	at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:401)	at org.springframework.web.client.RestTemplate.postForLocation(RestTemplate.java:257)	at org.sonatype.nexus.plugins.cas.client.DefaultCasRestClient.createTicketGrantingTicket(DefaultCasRestClient.java:92)	at org.sonatype.nexus.plugins.cas.CasAuthenticatingRealm.doGetAuthenticationInfo(CasAuthenticatingRealm.java:100)	at org.apache.shiro.realm.AuthenticatingRealm.getAuthenticationInfo(AuthenticatingRealm.java:568)	at org.sonatype.security.authentication.FirstSuccessfulModularRealmAuthenticator.doMultiRealmAuthentication(FirstSuccessfulModularRealmAuthenticator.java:55)	at org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:269)	at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)	at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)	at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)	at org.apache.shiro.nexus.NexusWebSecurityManager.login(NexusWebSecurityManager.java:44)	at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)	at org.apache.shiro.web.filter.authc.AuthenticatingFilter.executeLogin(AuthenticatingFilter.java:53)	at org.sonatype.nexus.security.filter.authc.NexusHttpAuthenticationFilter.onAccessDenied(NexusHttpAuthenticationFilter.java:151)	at org.apache.shiro.web.filter.AccessControlFilter.onAccessDenied(AccessControlFilter.java:133)	at org.apache.shiro.web.filter.AccessControlFilter.onPreHandle(AccessControlFilter.java:162)	at org.apache.shiro.web.filter.PathMatchingFilter.isFilterChainContinued(PathMatchingFilter.java:203)	at org.apache.shiro.web.filter.PathMatchingFilter.preHandle(PathMatchingFilter.java:178)	at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:131)	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)	at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66)	at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:449)	at org.sonatype.nexus.web.internal.SecurityFilter.executeChain(SecurityFilter.java:90)	at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:365)	at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)	at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)	at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:383)	at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:362)	at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:125)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)	at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89)	at com.yammer.metrics.web.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:76)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at org.sonatype.nexus.web.internal.CommonHeadersFilter.doFilter(CommonHeadersFilter.java:69)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at org.sonatype.nexus.web.internal.ErrorPageFilter.doFilter(ErrorPageFilter.java:71)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at org.sonatype.nexus.web.internal.BaseUrlHolderFilter.doFilter(BaseUrlHolderFilter.java:70)	at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:82)	at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)	at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterChain.doFilter(NexusGuiceFilter.java:82)	at org.sonatype.nexus.web.internal.NexusGuiceFilter$MultiFilterPipeline.dispatch(NexusGuiceFilter.java:56)	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:132)	at com.google.inject.servlet.GuiceFilter$1.call(GuiceFilter.java:129)	at com.google.inject.servlet.GuiceFilter$Context.call(GuiceFilter.java:206)	at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:129)	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)	at com.yammer.metrics.jetty.InstrumentedHandler.handle(InstrumentedHandler.java:200)	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)	at org.eclipse.jetty.server.Server.handle(Server.java:370)	at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)	at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:949)	at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1011)	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644)	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)	at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)	at java.lang.Thread.run(Unknown Source)