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 heikofriedrich
, 1 year ago
Could not connect to broker URL: ssl://www.matchat.org:61616. Reason: 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
via GitHub by fkleedorfer
, 1 year ago
Could not connect to broker URL: ssl://www.matchat.org:61617. Reason: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
via GitHub by heikofriedrich
, 3 weeks ago
Could not connect to broker URL: ssl://satsrv05.researchstudio.at:61616. Reason: javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
via GitHub by m0ru
, 1 year ago
Could not connect to broker URL: ssl://satsrv04.researchstudio.at:61617. Reason: java.net.ConnectException: Connection refused: connect
via Stack Overflow by Unknown author, 2 years ago
Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused
javax.jms.JMSException: Could not connect to broker URL: ssl://www.matchat.org:61616. Reason: 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 org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:293)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184)[activemq-client-5.8.0.jar:5.8.0] at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:351)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:295)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:227)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:180)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:413)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.AbstractJmsListeningContainer.establishSharedConnection(AbstractJmsListeningContainer.java:381)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.DefaultMessageListenerContainer.establishSharedConnection(DefaultMessageListenerContainer.java:786)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.AbstractJmsListeningContainer.doStart(AbstractJmsListeningContainer.java:285)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.AbstractJmsListeningContainer.start(AbstractJmsListeningContainer.java:270)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.DefaultMessageListenerContainer.start(DefaultMessageListenerContainer.java:587)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.apache.camel.component.jms.reply.ReplyManagerSupport.doStart(ReplyManagerSupport.java:229)[camel-jms-2.12.1.jar:2.12.1] at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:65)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:54)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.component.jms.JmsProducer.createReplyManager(JmsProducer.java:516)[camel-jms-2.12.1.jar:2.12.1] at org.apache.camel.component.jms.JmsProducer.initReplyManager(JmsProducer.java:103)[camel-jms-2.12.1.jar:2.12.1] at org.apache.camel.component.jms.JmsProducer.processInOut(JmsProducer.java:177)[camel-jms-2.12.1.jar:2.12.1] at org.apache.camel.component.jms.JmsProducer.process(JmsProducer.java:142)[camel-jms-2.12.1.jar:2.12.1] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:573)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:506)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:215)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.RecipientList.sendToRecipientList(RecipientList.java:153)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.RecipientList.process(RecipientList.java:112)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:103)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.component.seda.SedaConsumer.sendToConsumers(SedaConsumer.java:291)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.component.seda.SedaConsumer.doRun(SedaConsumer.java:200)[camel-core-2.12.1.jar:2.12.1] at org.apache.camel.component.seda.SedaConsumer.run(SedaConsumer.java:147)[camel-core-2.12.1.jar:2.12.1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[na:1.8.0_66-internal] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[na:1.8.0_66-internal] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_66-internal]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)[na:1.8.0_66-internal] at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949)[na:1.8.0_66-internal] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:302)[na:1.8.0_66-internal] at sun.security.ssl.Handshaker.fatalSE(Handshaker.java:296)[na:1.8.0_66-internal] at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1509)[na:1.8.0_66-internal] at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)[na:1.8.0_66-internal] at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979)[na:1.8.0_66-internal] at sun.security.ssl.Handshaker.process_record(Handshaker.java:914)[na:1.8.0_66-internal] at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)[na:1.8.0_66-internal] at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[na:1.8.0_66-internal] at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)[na:1.8.0_66-internal] at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)[na:1.8.0_66-internal] at org.apache.activemq.transport.tcp.TcpBufferedOutputStream.flush(TcpBufferedOutputStream.java:115)[activemq-client-5.8.0.jar:5.8.0] at java.io.DataOutputStream.flush(DataOutputStream.java:123)[na:1.8.0_66-internal] at org.apache.activemq.transport.tcp.TcpTransport.oneway(TcpTransport.java:176)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.AbstractInactivityMonitor.doOnewaySend(AbstractInactivityMonitor.java:322)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.AbstractInactivityMonitor.oneway(AbstractInactivityMonitor.java:304)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:168)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.WireFormatNegotiator.sendWireFormat(WireFormatNegotiator.java:84)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:74)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)[activemq-client-5.8.0.jar:5.8.0] at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:273)[activemq-client-5.8.0.jar:5.8.0] ... 43 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:387)[na:1.8.0_66-internal] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:292)[na:1.8.0_66-internal] at sun.security.validator.Validator.validate(Validator.java:260)[na:1.8.0_66-internal] at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:324)[na:1.8.0_66-internal] at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:229)[na:1.8.0_66-internal] at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:105)[na:1.8.0_66-internal] at won.cryptography.ssl.TrustManagerWrapperWithTrustService.checkServerTrusted(TrustManagerWrapperWithTrustService.java:55)[won-core-0.2-SNAPSHOT.jar:na] at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:922)[na:1.8.0_66-internal] at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1491)[na:1.8.0_66-internal] ... 61 moreCaused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:146)[na:1.8.0_66-internal] at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131)[na:1.8.0_66-internal] at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280)[na:1.8.0_66-internal] at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)[na:1.8.0_66-internal] ... 69 more