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

GitHub | jerrypaytm | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 552#249242455

    GitHub | 5 months ago | jerrypaytm
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/0:0:0:0:0:0:0:1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/0:0:0:0:0:0:0:1] Cannot connect), localhost/127.0.0.1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/127.0.0.1] Cannot connect))
  2. 0

    Embedded Cassandra stalls after ~7 minutes

    GitHub | 8 months ago | kasabov
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/0:0:0:0:0:0:0:1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/0:0:0:0:0:0:0:1] Cannot connect), localhost/127.0.0.1:9142 (com.datastax.driver.core.exceptions.OperationTimedOutException: [localhost/127.0.0.1] Operation timed out))
  3. 0

    Cannot connect to embedded Cassandra instance using Phantom

    Stack Overflow | 3 months ago | Artem
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/127.0.0.1] Cannot connect))
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cassandra sstableloader - Connection refused

    Stack Overflow | 2 months ago | riccamini
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /172.31.3.88:9042 (com.datastax.driver.core.exceptions.TransportException: [/172.31.3.88] Cannot connect))
  6. 0

    Does not work with Cassandra 3.0

    GitHub | 1 year ago | gw0
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /1.2.3.4:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
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. com.datastax.driver.core.exceptions.NoHostAvailableException

    All host(s) tried for query failed (tried: localhost/0:0:0:0:0:0:0:1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/0:0:0:0:0:0:0:1] Cannot connect), localhost/127.0.0.1:9142 (com.datastax.driver.core.exceptions.TransportException: [localhost/127.0.0.1] Cannot connect))

    at com.datastax.driver.core.ControlConnection.reconnectInternal()
  2. DataStax Java Driver for Apache Cassandra - Core
    Cluster.connect
    1. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:233)
    2. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
    3. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1424)
    4. com.datastax.driver.core.Cluster.init(Cluster.java:163)
    5. com.datastax.driver.core.Cluster.connectAsync(Cluster.java:334)
    6. com.datastax.driver.core.Cluster.connectAsync(Cluster.java:309)
    7. com.datastax.driver.core.Cluster.connect(Cluster.java:251)
    7 frames
  3. com.websudos.phantom
    DefaultSessionProvider$$anonfun$1$$anonfun$2.apply
    1. com.websudos.phantom.connectors.DefaultSessionProvider$$anonfun$1$$anonfun$2.apply(DefaultSessionProvider.scala:58)
    2. com.websudos.phantom.connectors.DefaultSessionProvider$$anonfun$1$$anonfun$2.apply(DefaultSessionProvider.scala:58)
    2 frames
  4. Scala
    package$.blocking
    1. scala.concurrent.BlockContext$DefaultBlockContext$.blockOn(BlockContext.scala:53)
    2. scala.concurrent.package$.blocking(package.scala:123)
    2 frames
  5. com.websudos.phantom
    DefaultSessionProvider$$anonfun$1.apply
    1. com.websudos.phantom.connectors.DefaultSessionProvider$$anonfun$1.apply(DefaultSessionProvider.scala:57)
    2. com.websudos.phantom.connectors.DefaultSessionProvider$$anonfun$1.apply(DefaultSessionProvider.scala:56)
    2 frames
  6. Scala
    Try$.apply
    1. scala.util.Try$.apply(Try.scala:192)
    1 frame
  7. com.websudos.phantom
    KeySpaceBuilder.keySpace
    1. com.websudos.phantom.connectors.DefaultSessionProvider.createSession(DefaultSessionProvider.scala:56)
    2. com.websudos.phantom.connectors.DefaultSessionProvider.<init>(DefaultSessionProvider.scala:68)
    3. com.websudos.phantom.connectors.KeySpaceDef.<init>(Keyspace.scala:85)
    4. com.websudos.phantom.connectors.KeySpaceBuilder.keySpace(KeySpaceBuilder.scala:53)
    4 frames