java.rmi.ConnectException

Connection refused to host: 127.0.0.1; nested exception is: (link: junit) java.net.ConnectException: Connection refused


Samebug tips4

Check if your MongoDB is available.

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.


Solutions on the web468

Solution icon of github
via GitHub by activeeon-bot
, 7 months ago
Connection refused to host: 127.0.0.1; nested exception is: (link: junit) java.net.ConnectException: Connection refused

Solution icon of oraclecommunity
via Oracle Community by 843793, 1 year ago
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused

Solution icon of web
via jboss.org by Unknown author, 7 months ago
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused

Solution icon of oraclecommunity
via Oracle Community by 843793, 1 year ago
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect

Solution icon of oraclecommunity
via Oracle Community by 843793, 1 year ago
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect java.net.ConnectException: Connection refused: connect

Solution icon of github
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

Solution icon of github
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

Solution icon of github
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

Solution icon of github
Connection refused to host: 127.0.0.1; nested exception is:** java.net.ConnectException: Connection refused (Connection refused)

Solution icon of stackoverflow
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused (Connection refused)

Stack trace

  • java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: (link: junit) java.net.ConnectException: Connection refused at org.objectweb.proactive.core.group.ProcessForOneWayCall.run(ProcessForOneWayCall.java:82) at org.objectweb.proactive.core.group.BufferedTaskContainer.run(BufferedTaskContainer.java:68) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Thread.java:595) Caused by: java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested exception is: (link: junit) java.net.ConnectException: Connection refused ... 5 more Caused by: java.net.ConnectException: Connection refused 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.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94) at org.objectweb.proactive.core.remoteobject.rmi.RmiRemoteObjectImpl_Stub.receiveMessage(Unknown Source) at org.objectweb.proactive.core.remoteobject.RemoteObjectAdapter.receiveMessage(RemoteObjectAdapter.java:164) at org.objectweb.proactive.core.remoteobject.SynchronousProxy.reify(SynchronousProxy.java:73) at pa.stub.org.objectweb.proactive.core.body._StubUniversalBody.receiveRequest(_StubUniversalBody.java) at org.objectweb.proactive.core.body.UniversalBodyRemoteObjectAdapter.receiveRequest(UniversalBodyRemoteObjectAdapter.java:172) at org.objectweb.proactive.core.body.request.RequestImpl.sendRequest(RequestImpl.java:304) at org.objectweb.proactive.core.body.request.RequestImpl.send(RequestImpl.java:157) at org.objectweb.proactive.core.body.BodyImpl$ActiveLocalBodyStrategy.sendRequest(BodyImpl.java:687) at org.objectweb.proactive.core.body.AbstractBody.sendRequest(AbstractBody.java:965) at org.objectweb.proactive.core.body.proxy.UniversalBodyProxy.sendRequestInternal(UniversalBodyProxy.java:396) at org.objectweb.proactive.core.body.proxy.UniversalBodyProxy.sendRequest(UniversalBodyProxy.java:375) at org.objectweb.proactive.core.body.proxy.UniversalBodyProxy.sendRequest(UniversalBodyProxy.java:323) at org.objectweb.proactive.core.body.proxy.AbstractBodyProxy.reifyAsOneWay(AbstractBodyProxy.java:195) at org.objectweb.proactive.core.body.proxy.AbstractBodyProxy.invokeOnBody(AbstractBodyProxy.java:137) at org.objectweb.proactive.core.body.proxy.AbstractBodyProxy.reify(AbstractBodyProxy.java:113) at org.objectweb.proactive.core.group.ProcessForOneWayCall.executeMC(ProcessForOneWayCall.java:106) at org.objectweb.proactive.core.group.ProcessForOneWayCall.run(ProcessForOneWayCall.java:80) ... 4 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

231 times, 32 minutes ago
3 times, 1 day ago
2 times, 4 days ago
8 times, 5 days ago
1439 times, 1 week ago
284 more bugmates