java.net.ConnectException: Connection refused

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

,
via GitHub by rawlingsj

host port isnt set

,

Check if your MongoDB is available.

Solutions on the web

via JIRA by FleetBoard, 1 year ago
Connection refused
via JIRA by FleetBoard, 1 year ago
Connection refused
via pydev by fsseven
, 1 year ago
via processing.org by Unknown author, 2 years ago
via Stack Overflow by Osora
, 1 year ago
Call From ip-172-31-5-177.ap-northeast-2.compute.internal/172.31.5.177 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:391)
at java.net.Socket.connect(Socket.java:579)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:378)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:473)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:270)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:327)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:931)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1299)
at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:2730)
at org.swift.common.cli.CookieManager.addCookiesFromUrl(CookieManager.java:139)
at org.swift.common.cli.AbstractRestClient.restRequestWithUrlConnection(AbstractRestClient.java:654)
at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:571)
at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:542)
at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:517)
at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:505)
at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:489)
at org.swift.common.cli.AppfireClient.getServerInfo(AppfireClient.java:171)
at org.swift.jira.cli.JiraClient.getRemoteServerInfo(JiraClient.java:1959)
at org.swift.jira.cli.JiraClient.validateJiraRelease(JiraClient.java:2119)
at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:749)
at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:312)
at org.swift.common.cli.CliClient.doWork(CliClient.java:433)
at org.swift.jira.cli.JiraClient.main(JiraClient.java:157)

Users with the same issue

11 times, 14 hours ago
109 times, 15 hours ago
26943 times, 23 hours ago
4 times, 2 days ago
5 times, 2 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.