java.net.ConnectException: Connection refused (Connection refused)

Stack Overflow | user3381098 | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Jmeter Connection to http://IP:8080 refused

    Stack Overflow | 1 year ago | wangshaoping
    org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.0.160:8080 refused
  2. 0

    JMeter: "java.net.ConnectException: Connection timed out: connect" Error in Response Data

    Stack Overflow | 2 years ago | Priyanka
    org.apache.http.conn.HttpHostConnectException: Connection to http://URL refused
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Apache HTTP Server - Users - Getting "connection refused" Apache 2.4

    nabble.com | 1 year ago
    org.apache.http.conn.HttpHostConnectException: Connection to  refused
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused (Connection refused)

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.connect
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:589)
    6 frames
  3. Apache HttpClient
    ManagedClientConnectionImpl.open
    1. org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:120)
    2. org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:179)
    3. org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:328)
    3 frames
  4. Apache JMeter HTTP
    MeasuringConnectionManager$MeasuredConnection.open
    1. org.apache.jmeter.protocol.http.sampler.MeasuringConnectionManager$MeasuredConnection.open(MeasuringConnectionManager.java:114)
    1 frame
  5. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:612)
    2. org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:447)
    3. org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:884)
    4. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    5. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
    5 frames
  6. Apache JMeter HTTP
    HTTPSamplerBase.sample
    1. org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.executeRequest(HTTPHC4Impl.java:654)
    2. org.apache.jmeter.protocol.http.sampler.HTTPHC4Impl.sample(HTTPHC4Impl.java:413)
    3. org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy.sample(HTTPSamplerProxy.java:74)
    4. org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1166)
    5. org.apache.jmeter.protocol.http.sampler.HTTPSamplerBase.sample(HTTPSamplerBase.java:1155)
    5 frames
  7. Apache JMeter Core
    JMeterThread.run
    1. org.apache.jmeter.threads.JMeterThread.executeSamplePackage(JMeterThread.java:475)
    2. org.apache.jmeter.threads.JMeterThread.processSampler(JMeterThread.java:418)
    3. org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:249)
    3 frames
  8. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame