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.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) 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 java.net.Socket.connect(Socket.java:538) at java.net.Socket.<init>(Socket.java:434) at java.net.Socket.<init>(Socket.java:244) at com.intellij.idea.SocketLock.tryActivate(SocketLock.java:184) at com.intellij.idea.SocketLock.access$300(SocketLock.java:50) at com.intellij.idea.SocketLock$2.call(SocketLock.java:124) at com.intellij.idea.SocketLock$2.call(SocketLock.java:113) at com.intellij.idea.SocketLock.underLocks(SocketLock.java:157) at com.intellij.idea.SocketLock.lock(SocketLock.java:113) at com.intellij.idea.StartupUtil.lockSystemFolders(StartupUtil.java:263) at com.intellij.idea.StartupUtil.prepareAndStart(StartupUtil.java:101) at com.intellij.idea.MainImpl.start(MainImpl.java:34) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.ide.plugins.PluginManager$2.run(PluginManager.java:91) at java.lang.Thread.run(Thread.java:745)

    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

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