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:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.Socket.connect(Socket.java:507) at java.net.Socket.connect(Socket.java:457) at sun.net.NetworkClient.doConnect(NetworkClient.java:157) at sun.net.www.http.HttpClient.openServer(HttpClient.java:365) at sun.net.www.http.HttpClient.openServer(HttpClient.java:477) at sun.net.www.http.HttpClient.<init>(HttpClient.java:214) at sun.net.www.http.HttpClient.New(HttpClient.java:287) at sun.net.www.http.HttpClient.New(HttpClient.java:299) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:836) at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:171) at com.iplanet.services.comm.client.PLLClient.send(PLLClient.java:87) at com.iplanet.services.naming.WebtopNaming.getNamingTable(WebtopNaming.java:555) at com.iplanet.services.naming.WebtopNaming.updateNamingTable(WebtopNaming.java:593) at com.iplanet.services.naming.WebtopNaming.getNamingProfile(WebtopNaming.java:531) at com.iplanet.services.naming.WebtopNaming.getServiceAllURLs(WebtopNaming.java:257) at com.sun.identity.authentication.AuthContext.createAuthContext(AuthContext.java:1307) at com.sun.identity.authentication.AuthContext.createAuthContext(AuthContext.java:1261) at com.sun.identity.authentication.AuthContext.<init>(AuthContext.java:178) at bhupi.auth.BasicAuth.main(BasicAuth.java:27)

    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

    12 times, 9 months ago
    Unknown user
    Once, 10 months ago
    2 times, 1 month ago
    Once, 1 month ago
    10 times, 3 months ago
    291 more bugmates