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


Check if your MongoDB is available.

via GitHub by rawlingsj

host port isnt set Connection refused
at Method)
at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(
at org.apache.http.impl.client.DefaultRequestDirector.execute(
at org.apache.http.impl.client.AbstractHttpClient.doExecute(
at org.apache.http.impl.client.CloseableHttpClient.execute(
at org.apache.http.impl.client.CloseableHttpClient.execute(
at diagnostics.Diagnostics.isDeployrRunning(
at diagnostics.Diagnostics.(
at diagnostics.Diagnostics.main(

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.