Pattern selector

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

  1. SocksSocketImpl.connect() has thrown a ConnectException
    Java Runtime
    283
    73
    305
  2. Client cannot establish connection with the server
    Java Runtime
    854
    876
    749

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
69 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. varun tahinvia Google Groups3 days ago
    Connection timed out: connect
    Show stack trace
  2. 2985914via Oracle Community5 days ago
    The connection pool named: apex is not correctly configured, due to the following error(s): IO Error: The Network Adapter could not establish the connection
    Show stack trace
  3. Unknown authorvia Google Groups6 days ago
    io.searchbox.client.config.exception.CouldNotConnectException: Could not connect to http://localhost:9200
    Show stack trace
  4. Ferdivia Super User1 week ago
    IJ031084: Unable to create connection
    Show stack trace
  5. JuniusLuovia GitHub4 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  6. Daniel Grontvia Google Groups4 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  7. jaiken06via GitHub4 weeks ago
    Connection refused (Connection refused)
    Show stack trace
  8. AvijayCvia GitHub1 month ago
    Exiting WorkerSinkTask due to unrecoverable exception.
    Show stack trace
  9. kevinfealeyvia GitHub1 month ago
    Connection is broken: "java.net.ConnectException: Connection refused (Connection refused): localhost" [90067-176]
    Show stack trace