Pattern selector

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

  1. Bootstrap.main() has thrown a ConnectException
    Tomcat Catalina
    32
    13
    7
  2. Client cannot establish connection with the server
    Java Runtime
    853
    876
    749

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
12 frames hidden

Solution

poroszd5 months ago

Roughly there are three categories of this problem:

  • no network available: Probably your machine's network interface is down. Check if you have internet and your application has permissions to use the network interface
  • connection refused: The address you are trying to connect is not listening. Check if you did not misspelled the host or the port. Also verify that the server you are trying to reach is actually running and listening.
  • connection timed out: The server took too much time to respond. You either have to increase the timeout limit or speed up the server.

External results for this pattern (10)

  1. JuniusLuovia GitHub3 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  2. Daniel Grontvia Google Groups3 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  3. jaiken06via GitHub3 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  4. AvijayCvia GitHub4 weeks ago
    Exiting WorkerSinkTask due to unrecoverable exception.
    Show stack trace
  5. kevinfealeyvia GitHub4 weeks ago
    Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-176]
    Show stack trace
  6. MentosPLvia GitHub4 weeks ago
    Connection timed out
    Show stack trace
  7. Carvanevia GitHub4 weeks ago
    Connection timed out
    Show stack trace
  8. ansellvia GitHub4 weeks ago
    Connection timed out (Connection timed out)
    Show stack trace
  9. ansellvia GitHub4 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  10. cumtwweivia GitHub4 weeks ago
    Could not connect to http://127.0.0.1:9200
    Show stack trace