Connection refused (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.


Check if your MariaDB is running and available.

Solutions on the web

via Stack Overflow by user3381098
, 11 months ago
via GitHub by meet101
, 3 months ago
via Stack Overflow by AZhuk
, 1 year ago
via openas2 by santosh-vjit
, 3 months ago
Connection refused (Connection refused)
via Stack Overflow by Hentory Wu
, 2 weeks ago
Connection refused (Connection refused) Connection refused (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.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(
at org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(
at org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(
at org.apache.jmeter.threads.JMeterThread.executeSamplePackage(
at org.apache.jmeter.threads.JMeterThread.processSampler(

Users with the same issue

133 times, 5 hours ago
11 times, 2 days ago
26943 times, 2 days ago
4 times, 4 days ago
5 times, 4 days ago

Write tip

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