javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused

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

,
via GitHub by rawlingsj

host port isnt set

,

Check if your MongoDB is available.

Solutions on the web

via incubator-storm-user by P. Taylor Goetz, 1 year ago
Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused
via nabble.com by Unknown author, 2 years ago
Could not connect to broker URL: tcp://0.0.0.0:61616. Reason: java.net.ConnectException: Connection refused: connect
via Stack Overflow by Suraj HK
, 1 year ago
Could not connect to broker URL: ssl://<IP>:61617. Reason: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
via nabble.com by Unknown author, 7 months ago
Could not connect to broker URL: ssl://ourmq.ourco.com:9999. Reason: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
via Stack Overflow by Unknown author, 2 years ago
Could not connect to broker URL: tcp://A.B.C.D:61616. Reason: java.net.ConnectException: Connection refused: connect
via daniweb.com by Unknown author, 1 year ago
Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectExce ption: Connection refused: connect
javax.jms.JMSException: Could not connect to broker URL: tcp://localhost:61616. Reason: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:579)
at org.apache.activemq.transport.tcp.TcpTransport.connect(TcpTransport.java:483)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.transport.WireFormatNegotiator.start(WireFormatNegotiator.java:72)
at org.apache.activemq.transport.TransportFilter.start(TransportFilter.java:58)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:266)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:230)
at backtype.storm.contrib.jms.spout.JmsSpout.open(JmsSpout.java:175)
at backtype.storm.daemon.executor$fn__3985$fn__3997.invoke(executor.clj:460)
at backtype.storm.util$async_loop$fn__465.invoke(util.clj:375)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:724)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.