java.lang.IllegalStateException: java.net.ConnectException: Connection refused: connect

GitHub | ronysaputro8 | 2 weeks ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    GitHub comment 37#301227050

    GitHub | 2 weeks ago | ronysaputro8
    java.lang.IllegalStateException: java.net.ConnectException: Connection refused: connect
  2. 0

    [MIFOSX-2523] Data Import Tool: characters are not reconsigned for provided office - MifosForge

    jira.com | 12 months ago
    com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  1. Casper 1 times, last 1 week ago
  2. bpbhat77 2 times, last 8 months ago
  3. tfr 2 times, last 9 months ago
  4. tvrmsmith 1 times, last 10 months ago
  5. pnaranja 2 times, last 10 months ago
71 more registered users
24 unregistered visitors

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused: connect

    at java.net.DualStackPlainSocketImpl.connect0()
  2. Java RT
    Socket.connect
    1. java.net.DualStackPlainSocketImpl.connect0(Native Method)
    2. java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
    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)
    8 frames
  3. Java JSSE
    BaseSSLSocketImpl.connect
    1. sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:649)
    2. sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
    2 frames
  4. Java RT
    HttpsURLConnectionImpl.getResponseCode
    1. sun.net.NetworkClient.doConnect(NetworkClient.java:180)
    2. sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
    3. sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
    4. sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
    5. sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
    6. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
    7. sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1103)
    8. sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:997)
    9. sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
    10. sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1511)
    11. sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1439)
    12. java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
    13. sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
    13 frames
  5. org.openmf.mifos
    DownloadServiceServlet.doGet
    1. org.openmf.mifos.dataimport.http.SimpleHttpResponse.getContent(SimpleHttpResponse.java:26)
    2. org.openmf.mifos.dataimport.http.MifosRestClient.createAuthToken(MifosRestClient.java:111)
    3. org.openmf.mifos.dataimport.populator.OfficeSheetPopulator.downloadAndParse(OfficeSheetPopulator.java:41)
    4. org.openmf.mifos.dataimport.populator.client.CenterWorkbookPopulator.downloadAndParse(CenterWorkbookPopulator.java:58)
    5. org.openmf.mifos.dataimport.web.DownloadServiceServlet.downloadAndPopulate(DownloadServiceServlet.java:44)
    6. org.openmf.mifos.dataimport.web.DownloadServiceServlet.doGet(DownloadServiceServlet.java:34)
    6 frames
  6. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    2 frames
  7. Glassfish Core
    CoyoteAdapter.service
    1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
    2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    5. org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    6. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    7. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
    8. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    9. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    9 frames
  8. Grizzly HTTP
    JIoEndpoint$SocketProcessor.run
    1. org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
    2. org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
    3. org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    3 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    3. java.lang.Thread.run(Thread.java:745)
    3 frames