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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Google Groups by Brent Napolitano, 2 months ago
Connection refused: connect
via Google Groups by Flank, 2 years ago
Connection refused: connect
via GitHub by GoogleCodeExporter
, 1 year ago
Connection refused: connect
via Google Groups by muleby, 4 months ago
via Stack Overflow by stivlo
, 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 sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.www.http.HttpClient.openServer(UnknownSource)
at sun.net.www.http.HttpClient.openServer(UnknownSource)
at sun.net.www.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(UnknownSource)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
420 times, 2 hours ago
5 times, 20 hours ago
2 times, 21 hours ago

Write tip

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