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 web13189

  • Connection refused (Connection refused)
  • Connection refused (Connection refused)
  • Connection refused (Connection refused)
  • Stack trace

    • java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.<init>(Socket.java:273) at java.net.Socket.<init>(Socket.java:127) at weblogic.rjvm.t3.T3JVMConnection.newSocket(T3JVMConnection.java:324) at weblogic.rjvm.t3.T3JVMConnection.newSocketWithRetry(T3JVMConnection.java:312) at weblogic.rjvm.t3.T3JVMConnection.connect(T3JVMConnection.java:74) at weblogic.rjvm.t3.T3JVMConnection.createConnection(T3JVMConnection.java:148) at weblogic.rjvm.Protocol.createConnection(Protocol.java:201) at weblogic.rjvm.ConnectionManager.findOrCreateConnection(ConnectionManager.java:997) at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:439) at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:419) at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:114) at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:122) at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:144) at weblogic.rmi.internal.AbstractOutboundRequest.sendReceive(AbstractOutboundRequest.java:84) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:247) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:225) at com.cp2.ejbsfBeanEOImpl_WLStub.ejbsfResult(ejbsfBeanEOImpl_WLStub.java:175) at com.cp1.rb1.executeAction(rb1.java:99) at controller.doGet(controller.java:51) at controller.doPost(controller.java:16) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:208) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:1127) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:1529) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    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

    582 times, 1 month ago
    Once, 1 month ago
    5 times, 5 months ago
    4 times, 5 months ago
    Once, 6 months ago
    824 more bugmates