Pattern selector

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

  1. BasicResourcePool$AcquireTask.run() has thrown a ConnectException
    c3p0
    0
    0
    0
  2. Client cannot establish connection with the server
    Java Runtime
    853
    863
    748

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.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
18 frames hidden

Solution

poroszd4 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. Sandrine Beauchevia Google Groups6 days ago
    connection refused or timed out to BasicObjectEndpoint[2e78803a-3be7-49f5-ba1d-bfdd59a0debb,T cpEndpoint[192.168.1.88:63613]]; nested exception is: java.net.ConnectException: Connection timed out: connect
    Show stack trace
  2. Cédric Lardeuxvia Google Groups6 days ago
    Error getting connection: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.
    Show stack trace
  3. sebvia Google Groups6 days ago
    Connection refused
    Show stack trace
  4. Adam Blomekevia Google Groups6 days ago
    Connection refused: connect
    Show stack trace
  5. Unknown authorvia Google Groups6 days ago
    Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:30' System info: host: 'Damcos-Mac-mini.local', ip: '192.168.5.69', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.9.4', java.version: '1.7.0_60' Driver info: driver.version: RemoteWebDriver
    Show stack trace
  6. Unknown authorvia Google Groups6 days ago
    Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure. Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: host: 'LM-SYD-00321164', ip: '10.252.92.41', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.5', java.version: '1.8.0_05' Driver info: driver.version: RemoteWebDriver
    Show stack trace
  7. Nikolay Stanoevvia Google Groups6 days ago
    Error sending the registration request. Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.8.3', java.version: '1.7.0_45' Driver info: driver.version:
    Show stack trace
  8. ch huangvia Google Groups6 days ago
  9. ch huangvia Google Groups6 days ago
    org.apache.thrift7.transport.TTransportException: java.net.ConnectException: Connection refused
    Show stack trace
  10. Unknown authorvia Google Groups6 days ago
    Connection refused
    Show stack trace