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

,

Check if your MongoDB is available.

,
via GitHub by rawlingsj

host port isnt set

Solutions on the web

via openas2 by santosh-vjit
, 2 months ago
Connection refused (Connection refused)
via GitHub by hologup
, 11 months ago
Connection refused
via grokbase.com by Unknown author, 1 year ago
via GitHub by bracklanna
, 11 months ago
via GitHub by 31z4
, 6 months ago
Connection refused (Connection refused)
via GitHub by darkprisco
, 3 months ago
Connection refused (Connection refused)
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at org.apache.zookeeper.server.quorum.QuorumCnxManager.connectOne(QuorumCnxManager.java:381)

Users with the same issue

4 times, 29 minutes ago
472 times, 1 hour ago
90 times, 21 hours ago
12 times, 4 days ago
4 times, 1 week ago

Write tip

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