java.net.ConnectException: Connection refused

GitHub | JuanMiguelBG | 9 months 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. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    GitHub comment 1#259550069

    GitHub | 5 months ago | ALRubinger
    java.net.ConnectException: Connection refused
  4. 0

    google-api-translate-java-maven-plugin | Robert Savage

    savage7.com | 2 years ago
    java.lang.Exception: [google-api-translate-java] Error retrieving translation.
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

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    HttpURLConnection.getInputStream
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    7. java.net.Socket.connect(Socket.java:528)
    8. sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    9. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    10. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    11. sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
    12. sun.net.www.http.HttpClient.New(HttpClient.java:308)
    13. sun.net.www.http.HttpClient.New(HttpClient.java:326)
    14. sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:997)
    15. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:933)
    16. sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:851)
    17. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1301)
    17 frames
  3. Jasig CAS Client for Java - Core
    Cas20ServiceTicketValidatorTests.testYesResponseButNoPgt
    1. org.jasig.cas.client.util.CommonUtils.getResponseFromServer(CommonUtils.java:436)
    2. org.jasig.cas.client.validation.AbstractCasProtocolUrlBasedTicketValidator.retrieveResponseFromServer(AbstractCasProtocolUrlBasedTicketValidator.java:41)
    3. org.jasig.cas.client.validation.AbstractUrlBasedTicketValidator.validate(AbstractUrlBasedTicketValidator.java:193)
    4. org.jasig.cas.client.validation.Cas20ServiceTicketValidatorTests.testYesResponseButNoPgt(Cas20ServiceTicketValidatorTests.java:100)
    4 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    6. org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    14. org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    14 frames
  6. JUnit4 Provider
    JUnit4TestSet.execute
    1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
    1 frame
  7. SureFire
    Surefire.run
    1. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
    2. org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
    3. org.apache.maven.surefire.Surefire.run(Surefire.java:169)
    3 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  9. SureFire
    SurefireBooter.main
    1. org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:350)
    2. org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1021)
    2 frames