java.net.ConnectException: Connection refused: connect

GitHub | JapuDCret | 2 years ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0
    samebug tip
    Check if you don't have a VPN or something like this messing with your connection. Also, check Jenkins DNS configurations (try to start it with "--dns 8.8.8.8".
    via GitHub by lnalex
  2. 0

    A java.net.ConnectException being thrown when using HttpURLConnection

    Stack Overflow | 9 months ago | Charles
    java.net.ConnectException: Connection timed out: connect
  3. 0

    Need better error messages for network failures

    GitHub | 3 years ago | rpadams
    java.net.ConnectException: Connection refused
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 16#284817199

    GitHub | 2 months ago | tarinidash
    java.net.ConnectException: Operation timed out (Connection timed out)
  6. 0

    Reduce tasks that never complete

    Google Groups | 3 years ago | dataquerent
    java.net.SocketTimeoutException: connect timed out

  1. Hronom 9 times, last 3 months ago
  2. regisso 3 times, last 10 months ago
6 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: connect

    at java.net.DualStackPlainSocketImpl.waitForConnect()
  2. Java RT
    HttpURLConnection.getInputStream
    1. java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
    3. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    5. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    6. java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
    7. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    8. java.net.Socket.connect(Socket.java:589)
    9. sun.net.NetworkClient.doConnect(NetworkClient.java:175)
    10. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    11. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    12. sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    13. sun.net.www.http.HttpClient.New(HttpClient.java:308)
    14. sun.net.www.http.HttpClient.New(HttpClient.java:326)
    15. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1168)
    16. sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1104)
    17. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:998)
    18. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:932)
    19. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1512)
    20. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
    20 frames
  3. Commons IO
    FileUtils.copyURLToFile
    1. org.apache.commons.io.FileUtils.copyURLToFile(FileUtils.java:1489)
    1 frame
  4. Unknown
    CreateInstanceWindow.lambda$init$4
    1. InstanceContainer.initScript(InstanceContainer.java:152)
    2. InstanceContainer.init(InstanceContainer.java:61)
    3. CreateInstanceWindow.lambda$init$4(CreateInstanceWindow.java:176)
    3 frames