java.net.ConnectException

Connection refused

Samebug tips4

Check if your MongoDB is available.


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

Solutions on the web13220

  • 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:336) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188) at java.net.Socket.connect(Socket.java:478) at java.net.Socket.connect(Socket.java:428) at java.net.Socket.<init>(Socket.java:335) at java.net.Socket.<init>(Socket.java:179) at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:1912) at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2922) at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2150) at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:3561) at HTTPClient.HTTPConnection.Post(HTTPConnection.java:2494) at HTTPClient.HTTPConnection.Post(HTTPConnection.java:2621) at HTTPClient.HTTPConnection.Post(HTTPConnection.java:2515)

    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