Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Check if your MongoDB is available.

  2. ,
    via GitHub by rawlingsj

    host port isnt set

Solutions on the web

via GitHub by zqc0512
, 7 months ago
Connection refused (Connection refused)
via GitHub by zqc0512
, 7 months ago
Connection refused (Connection refused)
via GitHub by consentsam
, 8 months ago
Connection refused (Connection refused)
via GitHub by GETandSELECT
, 1 year ago
via GitHub by dineiar
, 7 months ago
Connection refused (Connection refused)
via GitHub by Couby
, 1 year ago
Connection refused
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.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:649)	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)	at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:275)	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)	at org.gradle.wrapper.Download.downloadInternal(Download.java:58)	at org.gradle.wrapper.Download.download(Download.java:44)	at org.gradle.wrapper.Install$1.call(Install.java:59)	at org.gradle.wrapper.Install$1.call(Install.java:46)	at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)	at org.gradle.wrapper.Install.createDist(Install.java:46)	at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)	at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)