javax.jms.JMSException

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

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web42

  • via GitHub by fkleedorfer
    ,
  • via Stack Overflow by Daniel Cabrera
    ,
  • Stack trace

    • javax.jms.JMSException: 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 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.refreshSharedConnection(AbstractJmsListeningContainer.java:398)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:907)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:882)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:1053)[spring-jms-4.1.1.RELEASE.jar:4.1.1.RELEASE] 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 validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors 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] ... 12 more Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:352)[na:1.8.0_66-internal] at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:260)[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] ... 30 more Caused by: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:153)[na:1.8.0_66-internal] at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79)[na:1.8.0_66-internal] at java.security.cert.CertPathValidator.validate(CertPathValidator.java:292)[na:1.8.0_66-internal] at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:347)[na:1.8.0_66-internal] ... 38 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    2 more bugmates