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

Solutions on the web

via GitHub by dotta
, 1 year ago
via eagle-user by Jayesh Senjaliya, 5 months ago
via eagle-user by Markovich, 5 months ago
via eagle-user by Jayesh Senjaliya, 5 months ago
via GitHub by mkatkam
, 4 months ago
Connection refused (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.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.(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 undefined.DevModeBuild$.makeRequest(Build.scala:29)
at undefined.DevModeBuild$$anonfun$waitForRequestToContain$1.apply(Build.scala:16)
at undefined.DevModeBuild$$anonfun$waitForRequestToContain$1.apply(Build.scala:16)
at undefined.DevModeBuild$.waitFor(Build.scala:46)

Users with the same issue

142 times, 2 days ago
8 times, 3 days ago
552 times, 3 days ago
11 times, 6 days ago
26943 times, 6 days ago

Write tip

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