com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect))

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

Solutions on the web

via DataStax JIRA by Mikhail Mazursky, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect))
via DataStax JIRA by Mikhail Mazursky, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect))
via oschina.net by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /x.x.x.x:9042 (com.datastax.driver.core.OperationTimedOutException: [/x.x.x.x:9042] Operation timed out))
via Google Groups by Jordan Zimmerman, 10 months ago
All host(s) tried for query failed (tried: /127.0.0.1:9171 (com.datastax.driver.core. ConnectionException: [/127.0.0.1:9171] Unexpected error during transport initialization (com.datastax.driver.core.TransportException: [/127.0.0.1: 9171] Channel has been closed)))
via Stack Overflow by Lalit
, 1 year ago
All host(s) tried for query failed (tried: /175.14.3.164:9042 (com.datastax.driver.core.TransportException: [/172.16.3.163:9042] Cannot connect))
via github.com by Unknown author, 1 year ago
All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.ConnectionException: [/127.0.0.1:9042] Unexpected error during transport initialization (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Unexpected exception triggered (java.lang.IndexOutOfBoundsException: Not enough readable bytes - Need 4, maximum is 0))))
com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9042 (com.datastax.driver.core.TransportException: [/127.0.0.1:9042] Cannot connect))
at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:196)
at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1104)
at com.datastax.driver.core.Cluster.init(Cluster.java:121)
at com.datastax.driver.core.Cluster.connect(Cluster.java:198)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
38 more bugmates

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