java.lang.NullPointerException

DataStax JIRA | Joaquin Casares | 3 years 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

    https://github.com/joaquincasares/java-driver/commit/2f13e61f21e96915c5d8f5009d35d7ef575b7899 {CODE} java.lang.NullPointerException + at com.datastax.driver.core.ReplicationStrategy$NetworkTopologyStrategy.computeTokenToReplicaMap(ReplicationStategy.java:122) + at com.datastax.driver.core.Metadata$TokenMap.build(Metadata.java:287) + at com.datastax.driver.core.Metadata.rebuildTokenMap(Metadata.java:141) + at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:386) + at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:275) + at com.datastax.driver.core.ControlConnection.onAdd(ControlConnection.java:463) + at com.datastax.driver.core.Cluster$Manager.onAdd(Cluster.java:1118) + at com.datastax.driver.core.Cluster$Manager$2.onReconnection(Cluster.java:1084) + at com.datastax.driver.core.AbstractReconnectionHandler.run(AbstractReconnectionHandler.java:90) + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) + at java.util.concurrent.FutureTask.run(FutureTask.java:262) + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) + 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:724) {CODE}

    DataStax JIRA | 3 years ago | Joaquin Casares
    java.lang.NullPointerException
  2. 0

    https://github.com/joaquincasares/java-driver/commit/2f13e61f21e96915c5d8f5009d35d7ef575b7899 {CODE} java.lang.NullPointerException + at com.datastax.driver.core.ReplicationStrategy$NetworkTopologyStrategy.computeTokenToReplicaMap(ReplicationStategy.java:122) + at com.datastax.driver.core.Metadata$TokenMap.build(Metadata.java:287) + at com.datastax.driver.core.Metadata.rebuildTokenMap(Metadata.java:141) + at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:386) + at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:275) + at com.datastax.driver.core.ControlConnection.onAdd(ControlConnection.java:463) + at com.datastax.driver.core.Cluster$Manager.onAdd(Cluster.java:1118) + at com.datastax.driver.core.Cluster$Manager$2.onReconnection(Cluster.java:1084) + at com.datastax.driver.core.AbstractReconnectionHandler.run(AbstractReconnectionHandler.java:90) + at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) + at java.util.concurrent.FutureTask.run(FutureTask.java:262) + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) + at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) + 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:724) {CODE}

    DataStax JIRA | 3 years ago | Joaquin Casares
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.datastax.driver.core.ReplicationStrategy$NetworkTopologyStrategy.computeTokenToReplicaMap()
    2. DataStax Java Driver for Apache Cassandra - Core
      AbstractReconnectionHandler.run
      1. com.datastax.driver.core.ReplicationStrategy$NetworkTopologyStrategy.computeTokenToReplicaMap(ReplicationStategy.java:122)
      2. com.datastax.driver.core.Metadata$TokenMap.build(Metadata.java:287)
      3. com.datastax.driver.core.Metadata.rebuildTokenMap(Metadata.java:141)
      4. com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:386)
      5. com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:275)
      6. com.datastax.driver.core.ControlConnection.onAdd(ControlConnection.java:463)
      7. com.datastax.driver.core.Cluster$Manager.onAdd(Cluster.java:1118)
      8. com.datastax.driver.core.Cluster$Manager$2.onReconnection(Cluster.java:1084)
      9. com.datastax.driver.core.AbstractReconnectionHandler.run(AbstractReconnectionHandler.java:90)
      9 frames
    3. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:262)
      3. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)
      4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
      5. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      6. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      7. java.lang.Thread.run(Thread.java:724)
      7 frames