java.net.ConnectException: Connection refused: connect

tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 2037#229099980

    GitHub | 9 months ago | Aguythatswantshisproblemstobesolved
    java.net.ConnectException: Connection refused: connect
  2. 0

    Callbacks not triggered

    GitHub | 3 years ago | kigero
    java.net.ConnectException: Connection refused: connect
  3. 0

    Invalid Endpoint used when accessing Neutron back-end

    GitHub | 3 years ago | joncarey
    java.net.ConnectException: Connection refused: connect, status=0}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to write on web server in java

    Stack Overflow | 6 years ago | agarwal_achhnera
    java.net.ConnectException: Connection refused: connect
  6. 0

    Selenium - Exception while executing selenium.stop()

    Stack Overflow | 8 years ago | Yatendra Goel
    java.net.ConnectException: Connection refused: connect

  1. marcbouvierdav 1 times, last 1 month ago
  2. mauritius 12 times, last 2 months ago
  3. bpbhat77 1 times, last 8 months ago
16 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.connect0()
  2. Java RT
    HttpURLConnection.getResponseCode
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    3. java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    4. java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    5. java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    6. java.net.PlainSocketImpl.connect(Unknown Source)
    7. java.net.SocksSocketImpl.connect(Unknown Source)
    8. java.net.Socket.connect(Unknown Source)
    9. java.net.Socket.connect(Unknown Source)
    10. sun.net.NetworkClient.doConnect(Unknown Source)
    11. sun.net.www.http.HttpClient.openServer(Unknown Source)
    12. sun.net.www.http.HttpClient.openServer(Unknown Source)
    13. sun.net.www.http.HttpClient.<init>(Unknown Source)
    14. sun.net.www.http.HttpClient.New(Unknown Source)
    15. sun.net.www.http.HttpClient.New(Unknown Source)
    16. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    17. sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
    18. sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    19. sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    20. sun.net.www.protocol.http.HttpURLConnection.followRedirect0(Unknown Source)
    21. sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown Source)
    22. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
    23. sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    24. java.net.HttpURLConnection.getResponseCode(Unknown Source)
    24 frames
  3. com.xmage.launcher
    XMageLauncher$UpdateTask.doInBackground
    1. com.xmage.launcher.Downloader.connect(Downloader.java:27)
    2. com.xmage.launcher.DownloadTask.download(DownloadTask.java:64)
    3. com.xmage.launcher.XMageLauncher$UpdateTask.updateXMage(XMageLauncher.java:785)
    4. com.xmage.launcher.XMageLauncher$UpdateTask.doInBackground(XMageLauncher.java:716)
    5. com.xmage.launcher.XMageLauncher$UpdateTask.doInBackground(XMageLauncher.java:701)
    5 frames
  4. Java RT
    Thread.run
    1. javax.swing.SwingWorker$1.call(Unknown Source)
    2. java.util.concurrent.FutureTask.run(Unknown Source)
    3. javax.swing.SwingWorker.run(Unknown Source)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    6. java.lang.Thread.run(Unknown Source)
    6 frames