org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused

GitHub | cblanco | 3 months ago
  1. 0

    Problem with @Test(timeout=TIMEOUT)

    GitHub | 3 months ago | cblanco
    org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused
  2. 0

    Error connecting to containers created with latest version of openshift

    GitHub | 2 years ago | rawlingsj
    org.apache.http.conn.HttpHostConnectException: Connect to jrmacbook.local:9802 [jrmacbook.local/10.0.1.12, jrmacbook.local/192.168.50.1, jrmacbook.local/192.168.59.3, jrmacbook.local/fe80:0:0:0:3e15:c2ff:fec0:c8a4%4] failed: Connection refused
  3. 0
    host port isnt set
    via GitHub by rawlingsj
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception and throwable not being caught

    Stack Overflow | 1 year ago | Arya
    driver.version: RemoteWebDriver

  1. poroszd 1 times, last 4 weeks ago
  2. musketyr 6 times, last 2 months ago
  3. Nikolay Rybak 4 times, last 2 months ago
  4. tfr 1 times, last 4 months ago
  5. pbabcsany 2 times, last 3 months ago
45 more registered users
48 unregistered visitors
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

    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
    CloseableHttpClient.execute
    1. org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74)
    2. org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
    3. org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
    4. org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
    5. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
    6. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
    7. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
    8. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    9. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
    9 frames
  4. WireMock
    WireMock.givenThat
    1. com.github.tomakehurst.wiremock.client.HttpAdminClient.safelyExecuteRequest(HttpAdminClient.java:266)
    2. com.github.tomakehurst.wiremock.client.HttpAdminClient.postJsonAssertOkAndReturnBody(HttpAdminClient.java:249)
    3. com.github.tomakehurst.wiremock.client.HttpAdminClient.addStubMapping(HttpAdminClient.java:115)
    4. com.github.tomakehurst.wiremock.client.WireMock.register(WireMock.java:213)
    5. com.github.tomakehurst.wiremock.client.WireMock.register(WireMock.java:209)
    6. com.github.tomakehurst.wiremock.client.WireMock.givenThat(WireMock.java:80)
    6 frames
  5. Unknown
    DD.myT
    1. DD.myT(DD.java:20)
    1 frame
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. JUnit
    FailOnTimeout$CallableStatement.call
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
    6. org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
    6 frames
  8. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.lang.Thread.run(Thread.java:745)
    2 frames