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 web13204

  • via GitHub by richtera
    , 4 months ago
    Connection refused (Connection refused)
  • via GitHub by gbrost
    , 7 months ago
    Connection refused (Connection refused)
  • via GitHub by Patheek1971
    , 4 months ago
    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:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.<init>(Socket.java:309) at java.net.Socket.<init>(Socket.java:153) at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175) at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156) at org.jboss.mq.il.oil.OILClientIL.close(OILClientIL.java:72) at org.jboss.mq.server.JMSDestinationManager.connectionClosing(JMSDestinationManager.java:569) at org.jboss.mq.server.JMSServerInterceptorSupport.connectionClosing(JMSServerInterceptorSupport.java:112) at org.jboss.mq.security.ServerSecurityInterceptor.connectionClosing(ServerSecurityInterceptor.java:61) at org.jboss.mq.server.TracingInterceptor.connectionClosing(TracingInterceptor.java:158) at org.jboss.mq.server.JMSServerInvoker.connectionClosing(JMSServerInvoker.java:114) at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:268) at java.lang.Thread.run(Thread.java:534)

    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
    6 times, 5 months ago
    4 times, 6 months ago
    Once, 6 months ago
    826 more bugmates