java.net.ConnectException: Connection refused: connect

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.

,

Check if your MariaDB is running and available.

Solutions on the web

via Oracle Community by 843798, 1 year ago
Connection refused: connect
via Stack Overflow by user650309
, 2 years ago
via nabble.com by Unknown author, 1 year ago
via ibm.com by Unknown author, 1 year ago
Connection refused: connect
via igniterealtime.org by Unknown author, 2 years ago
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)

Users with the same issue

Once, 14 minutes ago
473 times, 2 hours ago
18 times, 19 hours ago
12 times, 5 days ago
4 times, 1 week ago

Write tip

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