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.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at sun.net.NetworkClient.doConnect(NetworkClient.java:175) at sun.net.www.http.HttpClient.openServer(HttpClient.java:432) at sun.net.www.http.HttpClient.openServer(HttpClient.java:527) at sun.net.www.http.HttpClient.<init>(HttpClient.java:211) at sun.net.www.http.HttpClient.New(HttpClient.java:308) at sun.net.www.http.HttpClient.New(HttpClient.java:326) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1168) at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:988) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:986) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(AccessController.java:713) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:985) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:932) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512) at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90) at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1432) at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1430) at java.security.AccessController.doPrivileged(Native Method) at java.security.AccessController.doPrivileged(AccessController.java:713) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1429) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) at DevModeBuild$.makeRequest(Build.scala:29) at DevModeBuild$$anonfun$waitForRequestToContain$1.apply(Build.scala:16) at DevModeBuild$$anonfun$waitForRequestToContain$1.apply(Build.scala:16) at DevModeBuild$.waitFor(Build.scala:46) at DevModeBuild$.waitForRequestToContain(Build.scala:15)

    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, 6 months ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 month ago
    Once, 5 months ago
    Unknown user
    Once, 10 months ago
    294 more bugmates