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 Coderanch by somenath chatterjee, 1 year ago
Connection refused: connect
via Google Groups by NV, 3 months ago
Connection refused: connect
via GitHub by Omertron
, 2 years ago
Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.Socket.connect(Socket.java:524)
at java.net.Socket.connect(Socket.java:474)
at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
at sun.net.NetworkClient.openServer(NetworkClient.java:118)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:488)
at sun.net.ftp.FtpClient.openServer(FtpClient.java:475)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:270)
at undefined.JDOMElementTextContent.parseXml(JDOMElementTextContent.java:36)
at undefined.JDOMElementTextContent.main(JDOMElementTextContent.java:47)

Users with the same issue

116 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
424 times, 5 hours ago
8 times, 10 hours ago
11 times, 14 hours ago

Write tip

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