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.

,

Check if your MariaDB is running and available.

Solutions on the web

via Google Groups by Matt Senecal, 4 weeks ago
via Eclipse Bugzilla by chaves, 1 year ago
via Oracle Community by 3004, 1 year ago
via Oracle Community by 117302, 1 year ago
via Oracle Community by 3004, 1 year ago
via Oracle Community by 3004, 1 year ago
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.(Socket.java:268)
at java.net.Socket.(Socket.java:95)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:20)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:115)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:494)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:169)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:78)
at undefined.ServeurChatImpl_Stub.connect(Unknown Source)
at undefined.ClientDistantImpl.main(ClientDistantImpl.java:85)

Users with the same issue

408 times, 9 hours ago
20 times, 4 days ago
23 times, 1 week ago
307 times, 1 week ago
57 times, 1 week ago
298 more bugmates

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