Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. AbstractHttpClient.execute() has thrown a HttpHostConnectException
    Apache HttpClient
    0
    3
    2
  2. DefaultClientConnectionOperator.openConnection() has thrown a HttpHostConnectException
    Apache HttpClient
    29
    13
    3

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
org.apache.http.conn.HttpHostConnectException: Connection to http://localhost:50070 refused
    at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:190)
    at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:294)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:645)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:480)
4 frames hidden

Solution

poroszd3 years ago

Use '127.0.0.1' instead of 'localhost'.

Check the source of this solution for more info

External results for this pattern (10)

  1. Connection to http://10.0.2.2:1232 refused 08-12 16:19:28.526: I/Choreographer(2791): Skipped 83 frames! The application may be doing too much work on its main thread. 08-12 16:19:28.589: I/Choreographer(2791): Skipped 75 frames! The application may be doing too much work on its main thread. 08-12 16:19:28.789: I/Choreographer(2791): Skipped 30 frames! The application may be doing too much work on its main thread. 08-12 16:19:28.970: I/Choreographer(2791): Skipped 31 frames! The application may be doing too much work on its main thread.
    Show stack trace
  2. marvinrichtervia htmlunit4 months ago
    Connection to URL refused
    Show stack trace
  3. Unknown authorvia ti.com4 months ago
    Connection to http://software-dl.ti.com refused
    Show stack trace
  4. Unknown authorvia microsoft.com4 months ago
    Connection to https://api.datamarket.azure.com refused
    Show stack trace
  5. Unknown authorvia microsoft.com4 months ago
    Connection to https://api.datamarket.azure.com refused
    Show stack trace
  6. Unknown authorvia microsoft.com4 months ago
    Connection to https://api.datamarket.azure.com refused
    Show stack trace
  7. toomvia Stack Overflow4 months ago
    Connection to https://78.46.124.109 refused
    Show stack trace
  8. Unknown authorvia filegala.com4 months ago
    Connection to http://10.0.2.2:80 refused
    Show stack trace
  9. Unknown authorvia jazz.net4 months ago
    Connection to https://localhost:9443 refused
    Show stack trace
  10. Unknown authorvia worldoflogs.com4 months ago
    Connection to http://127.0.0.1:9666 refused
    Show stack trace