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 JIRA by Andrew Audibert, 1 year ago
Connection refused
via JIRA by Andrew Audibert, 1 year ago
Connection refused
via GitHub by TnTBass
, 2 years ago
Connection refused
via Google Groups by Chris D'Ambrosio, 2 years ago
via Google Groups by dsj, 2 years ago
Connection refused
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:392)
at java.net.Socket.connect(Socket.java:579)
at java.net.Socket.connect(Socket.java:528)
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.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:996)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
at org.apache.hadoop.security.authentication.client.KerberosAuthenticator.authenticate(KerberosAuthenticator.java:190)
at com.linkedin.drelephant.analysis.AnalyticJobGeneratorHadoop2.readJsonNode(AnalyticJobGeneratorHadoop2.java:189)
at com.linkedin.drelephant.analysis.AnalyticJobGeneratorHadoop2.readApps(AnalyticJobGeneratorHadoop2.java:204)
at com.linkedin.drelephant.analysis.AnalyticJobGeneratorHadoop2.fetchAnalyticJobs(AnalyticJobGeneratorHadoop2.java:142)
at com.linkedin.drelephant.ElephantRunner$1.run(ElephantRunner.java:109)
at com.linkedin.drelephant.ElephantRunner$1.run(ElephantRunner.java:79)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:356)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1637)
at com.linkedin.drelephant.security.HadoopSecurity.doAs(HadoopSecurity.java:99)
at com.linkedin.drelephant.ElephantRunner.run(ElephantRunner.java:79)
at com.linkedin.drelephant.DrElephant.run(DrElephant.java:34)

Users with the same issue

142 times, 7 hours ago
8 times, 1 day ago
552 times, 1 day ago
11 times, 4 days ago
26943 times, 4 days ago

Write tip

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