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

Solutions on the web

via Oracle Community by 807554, 1 year ago
via Oracle Community by 807554, 1 year ago
via Oracle Community by 807554, 1 year ago
via Google Groups by Matt Senecal, 3 months ago
via Oracle Community by 807554, 1 year ago
Connection refused
via Oracle Community by 807555, 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

142 times, 2 days ago
8 times, 3 days ago
552 times, 3 days ago
11 times, 6 days ago
26943 times, 6 days ago

Write tip

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