java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information

Atlassian JIRA | Gurleen Anand [Atlassian] | 6 months ago
  1. 0

    Failure to connect to Elasticsearch should be logged at an ERROR level rather an an INFO: {noformat} 2016-05-18 18:02:46,274 INFO [pool-5-thread-1] c.a.b.s.s.i.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[na:1.8.0_65] at com.atlassian.elasticsearch.client.apache.httpclient.ApacheRequestExecutor$1.failed(ApacheRequestExecutor.java:144) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionRequestFailed(AbstractClientExchangeHandler.java:330) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$100(AbstractClientExchangeHandler.java:61) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.failed(AbstractClientExchangeHandler.java:373) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.failed(PoolingNHttpClientConnectionManager.java:503) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.nio.pool.RouteSpecificPool.failed(RouteSpecificPool.java:165) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool.requestFailed(AbstractNIOConnPool.java:541) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.failed(AbstractNIOConnPool.java:816) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.SessionRequestImpl.failed(SessionRequestImpl.java:159) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:175) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:147) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:350) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[bitbucket-search-common-2.0.0.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_65] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_65] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:173) ~[bitbucket-search-common-2.0.0.jar:na] ... 5 common frames omitted {noformat}

    Atlassian JIRA | 6 months ago | Gurleen Anand [Atlassian]
    java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information
  2. 0

    Failure to connect to Elasticsearch should be logged at an ERROR level rather an an INFO: {noformat} 2016-05-18 18:02:46,274 INFO [pool-5-thread-1] c.a.b.s.s.i.t.DefaultElasticsearchConnectionTester Testing connection with Elasticsearch failed due to exception java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.uniApply(CompletableFuture.java:593) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:577) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474) ~[na:1.8.0_65] at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977) ~[na:1.8.0_65] at com.atlassian.elasticsearch.client.apache.httpclient.ApacheRequestExecutor$1.failed(ApacheRequestExecutor.java:144) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.failed(AbstractClientExchangeHandler.java:414) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.connectionRequestFailed(AbstractClientExchangeHandler.java:330) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler.access$100(AbstractClientExchangeHandler.java:61) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.AbstractClientExchangeHandler$1.failed(AbstractClientExchangeHandler.java:373) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalPoolEntryCallback.failed(PoolingNHttpClientConnectionManager.java:503) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.concurrent.BasicFuture.failed(BasicFuture.java:134) ~[bitbucket-search-common-2.0.0.jar:4.4.4] at org.apache.http.nio.pool.RouteSpecificPool.failed(RouteSpecificPool.java:165) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool.requestFailed(AbstractNIOConnPool.java:541) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.nio.pool.AbstractNIOConnPool$InternalSessionRequestCallback.failed(AbstractNIOConnPool.java:816) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.SessionRequestImpl.failed(SessionRequestImpl.java:159) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:175) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:147) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:350) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191) ~[bitbucket-search-common-2.0.0.jar:na] at org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64) ~[bitbucket-search-common-2.0.0.jar:na] at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_65] Caused by: java.net.ConnectException: Connection refused: no further information at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_65] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_65] at org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:173) ~[bitbucket-search-common-2.0.0.jar:na] ... 5 common frames omitted {noformat}

    Atlassian JIRA | 6 months ago | Gurleen Anand [Atlassian]
    java.util.concurrent.CompletionException: java.net.ConnectException: Connection refused: no further information
  3. 0

    HBase Java Api gets stuck at put()

    Stack Overflow | 1 year ago | GregStone
    java.net.ConnectException: Connection refused: no further information
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ignore logging of duplicated exception messages of third party libs

    Stack Overflow | 11 months ago | Geniy
    java.net.ConnectException: Connection refused: no further information
  6. 0

    GitHub comment 22#171450398

    GitHub | 11 months ago | mihairaulea
    org.neo4j.com.ComException: MasterClient214 could not connect to localhost/127.0.0.1:6001

  1. RoiOtero 1 times, last 1 week ago
  2. nasimk 1064 times, last 1 week ago
  3. gehel 8 times, last 1 month ago
  4. rp 1 times, last 1 month ago
  5. poroszd 4 times, last 2 months ago
10 more registered users
85 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: no further information

    at sun.nio.ch.SocketChannelImpl.checkConnect()
  2. Java RT
    SocketChannelImpl.finishConnect
    1. sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)[na:1.8.0_65]
    2. sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)[na:1.8.0_65]
    2 frames
  3. Apache HttpCore NIO
    AbstractMultiworkerIOReactor.execute
    1. org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvent(DefaultConnectingIOReactor.java:173)[bitbucket-search-common-2.0.0.jar:na]
    2. org.apache.http.impl.nio.reactor.DefaultConnectingIOReactor.processEvents(DefaultConnectingIOReactor.java:147)[bitbucket-search-common-2.0.0.jar:na]
    3. org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor.execute(AbstractMultiworkerIOReactor.java:350)[bitbucket-search-common-2.0.0.jar:na]
    3 frames
  4. Apache HttpAsyncClient
    CloseableHttpAsyncClientBase$1.run
    1. org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.execute(PoolingNHttpClientConnectionManager.java:191)[bitbucket-search-common-2.0.0.jar:na]
    2. org.apache.http.impl.nio.client.CloseableHttpAsyncClientBase$1.run(CloseableHttpAsyncClientBase.java:64)[bitbucket-search-common-2.0.0.jar:na]
    2 frames
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_65]
    1 frame