java.lang.RuntimeException

org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:9205 [/127.0.0.1] failed: Connection refused

Samebug tips9

host port isnt set

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

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

Solutions on the web5776

  • via GitHub by ghost
    ,
  • via Stack Overflow by Arya
    ,
  • Stack trace

    • java.lang.RuntimeException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:9205 [/127.0.0.1] failed: Connection refused at com.graphaware.module.es.mapping.BaseMapping.lambda$createIndexAndMapping$9(BaseMapping.java:181) at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.util.stream.DistinctOps$1$2.accept(DistinctOps.java:175) at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471) at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418) at com.graphaware.module.es.mapping.BaseMapping.createIndexAndMapping(BaseMapping.java:177) at com.graphaware.module.es.ElasticSearchWriter.createIndexIfNotExist(ElasticSearchWriter.java:156) at com.graphaware.module.es.ElasticSearchWriter.start(ElasticSearchWriter.java:77) at com.graphaware.runtime.module.thirdparty.WriterBasedThirdPartyIntegrationModule.start(WriterBasedThirdPartyIntegrationModule.java:61) at com.graphaware.module.es.ElasticSearchModule.start(ElasticSearchModule.java:84) at com.graphaware.runtime.manager.ProductionTxDrivenModuleManager.start(ProductionTxDrivenModuleManager.java:48) at com.graphaware.runtime.manager.BaseTxDrivenModuleManager.startModules(BaseTxDrivenModuleManager.java:107) at com.graphaware.runtime.TxDrivenRuntime.startModules(TxDrivenRuntime.java:147) at com.graphaware.runtime.ProductionRuntime.startModules(ProductionRuntime.java:70) at com.graphaware.runtime.BaseGraphAwareRuntime.start(BaseGraphAwareRuntime.java:134) at com.graphaware.runtime.bootstrap.RuntimeKernelExtension.lambda$start$1(RuntimeKernelExtension.java:117) at java.lang.Thread.run(Thread.java:745) Caused by: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:9205 [/127.0.0.1] failed: Connection refused at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:151) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) at io.searchbox.client.http.JestHttpClient.execute(JestHttpClient.java:47) at com.graphaware.module.es.mapping.BaseMapping.createIndexAndMapping(BaseMapping.java:187) at com.graphaware.module.es.mapping.BaseMapping.lambda$createIndexAndMapping$9(BaseMapping.java:179) ... 21 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) at java.net.Socket.connect(Socket.java:589) at org.apache.http.conn.socket.PlainConnectionSocketFactory.connectSocket(PlainConnectionSocketFactory.java:74) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) ... 33 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

    raytestraytest
    Once,
    musketyrmusketyr
    7 times, last one
    poroszdporoszd
    3 times, last one
    OmyaOmya
    12 times, last one
    Nikolay RybakNikolay Rybak
    1010 times, last one
    483 more bugmates