java.lang.IllegalStateException Connection refused: connect

Samebug tips9

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

Firewall might be blocking your connection, or MySQL it's not running on your server machine.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web766

  • via GitHub by ronysaputro8
    , 2 months ago Connection refused: connect
  • Unable to connect to Scylla API server: Connection refused
  • via GitHub by dcrissman
    , 1 year ago
    com.sun.jersey.api.client.ClientHandlerException: Connection refused
  • Stack trace

    • java.lang.IllegalStateException: Connection refused: connect at org.openmf.mifos.dataimport.http.MifosRestClient.createAuthToken( at org.openmf.mifos.dataimport.populator.OfficeSheetPopulator.downloadAndParse( at org.openmf.mifos.dataimport.populator.client.ClientWorkbookPopulator.downloadAndParse( at org.openmf.mifos.dataimport.web.DownloadServiceServlet.downloadAndPopulate( at org.openmf.mifos.dataimport.web.DownloadServiceServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.authenticator.AuthenticatorBase.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.AbstractHttp11Processor.process( at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process( at$ at java.util.concurrent.ThreadPoolExecutor.runWorker( at java.util.concurrent.ThreadPoolExecutor$ at Caused by: Connection refused: connect at Method) at at at at at at at at at at at at at<init>( at at at at at at at at at at org.openmf.mifos.dataimport.http.SimpleHttpResponse.getContent( at org.openmf.mifos.dataimport.http.MifosRestClient.createAuthToken( ... 21 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 9 months ago
    Unknown user
    Once, 1 year ago
    2 times, 10 months ago
    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    984 more bugmates