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.

,
via GitHub by rawlingsj

host port isnt set

Solutions on the web

via sourceforge.net by Unknown author, 1 year ago
Connection refused: connect
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:327)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:193)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:180)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:384)
at java.net.Socket.connect(Socket.java:546)
at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToSocketAddress(UnknownSource)
at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connectToHost(UnknownSource)
at net.jini.jeri.tcp.TcpEndpoint$ConnectionEndpointImpl.connect(Unknown Source)
at net.jini.jeri.connection.ConnectionManager.connect(Unknown Source)
at net.jini.jeri.connection.ConnectionManager$ReqIterator.next(Unknown Source)
at net.jini.jeri.BasicObjectEndpoint$1.next(Unknown Source)
at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethodOnce(Unknown Source)
at net.jini.jeri.BasicInvocationHandler.invokeRemoteMethod(Unknown Source)
at com.sun.jini.reggie.$Proxy0.lookup(Unknown Source)
at com.sun.jini.reggie.RegistrarProxy.lookup(RegistrarProxy.java:112)
at client.TransAbstractConfigurationClient.discovered(TransAbstractConfigurationClient.java:111)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
25 times, 1 month ago
3 times, 3 months ago
593 more bugmates

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