com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed), /x.x.x.3:9042 (com.datastax.driver.core.TransportException: [/x.x.x.3:9042] Connection has been closed), /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed))

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via DataStax JIRA by chenwu, 1 year ago
All host(s) tried for query failed (tried: /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed), /x.x.x.3:9042 (com.datastax.driver.core.TransportException: [/x.x.x.3:9042] Connection has been closed), /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed))
via cassandra-dev by Cheng Jie He, 4 months ago
All host(s) tried for query failed (no host was tried)
via pr8x.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException
via pr8x.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException
via helptouser.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.exceptions.DriverException: Host replied with server error: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.RuntimeException
via Stack Overflow by aroth
, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:10112 (com.datastax.driver.core.exceptions.DriverException: Timed out waiting for server response))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed), /x.x.x.3:9042 (com.datastax.driver.core.TransportException: [/x.x.x.3:9042] Connection has been closed), /x.x.x.1:9042 (com.datastax.driver.core.TransportException: [/x.x.x.2:9042] Connection has been closed))
at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84)
at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289)
at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205)
at com.duowan.test.cassandra.TPSTest$2.run(TPSTest.java:107)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.