java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We see this NPE in our stress test. java.lang.NullPointerException at com.datastax.driver.core.ControlConnection.updateLocationInfo(ControlConnection.java:491) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:571) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:360) at com.datastax.driver.core.ControlConnection.onRemove(ControlConnection.java:681) at com.datastax.driver.core.Cluster$Manager.onRemove(Cluster.java:1840) at com.datastax.driver.core.Cluster$Manager.access$1300(Cluster.java:1103) at com.datastax.driver.core.Cluster$Manager$9.runMayThrow(Cluster.java:1819) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) 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) There was recent node replacement done on the cassandra 1.2.17 cluster. After the replacement, the old nodes did not go away from system.peers. peer | data_center | host_id | rack | release_version | rpc_address | schema_version | tokens ----------------+-------------+--------------------------------------+---------+-----------------+----------------+--------------------------------------+-------------------------- ip1 | null | null | null | null | ip1 | null | null ip2 | DC1 | null | null | null | ip2 | 395ae73e-b8ab-300a-8f1e-fd25da9c8cf8 | null DC/Rack being null there may have caused this NPE.
    via by Vishy Kasar,
  • We see this NPE in our stress test. java.lang.NullPointerException at com.datastax.driver.core.ControlConnection.updateLocationInfo(ControlConnection.java:491) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:571) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:360) at com.datastax.driver.core.ControlConnection.onRemove(ControlConnection.java:681) at com.datastax.driver.core.Cluster$Manager.onRemove(Cluster.java:1840) at com.datastax.driver.core.Cluster$Manager.access$1300(Cluster.java:1103) at com.datastax.driver.core.Cluster$Manager$9.runMayThrow(Cluster.java:1819) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) 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) There was recent node replacement done on the cassandra 1.2.17 cluster. After the replacement, the old nodes did not go away from system.peers. peer | data_center | host_id | rack | release_version | rpc_address | schema_version | tokens ----------------+-------------+--------------------------------------+---------+-----------------+----------------+--------------------------------------+-------------------------- ip1 | null | null | null | null | ip1 | null | null ip2 | DC1 | null | null | null | ip2 | 395ae73e-b8ab-300a-8f1e-fd25da9c8cf8 | null DC/Rack being null there may have caused this NPE.
    via by Vishy Kasar,
  • JAVA-852 appears to have removed a null check on rpcAddress in ControlConnection.rpcAddressForPeerHost, this causes the driver to throw a nullpointer, which is caught during initialization, but hangs the driver if occurring after receiving gossip. An inspection of my peers table reveals a few nodes with null rpc_address, mostly nodes that are currently joining. https://github.com/datastax/java-driver/commit/d798fb9578934afaa32f727400662c71caa46e13#diff-eb34fd201fd693686e45b0857843ba1aL382 {code} [cluster1-worker-50] ERROR com.datastax.driver.core.ExceptionCatchingRunnable - Unexpected error while executing task java.lang.NullPointerException at com.datastax.driver.core.ControlConnection.rpcAddressForPeerHost(ControlConnection.java:386) at com.datastax.driver.core.ControlConnection.checkSchemaAgreement(ControlConnection.java:730) at com.datastax.driver.core.ControlConnection.waitForSchemaAgreement(ControlConnection.java:704) at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:2159) at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1699) at com.datastax.driver.core.Cluster$Manager.access$1100(Cluster.java:1293) at com.datastax.driver.core.Cluster$Manager$NodeRefreshRequestDeliveryCallback$3.runMayThrow(Cluster.java:2724) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}
    via by Dominic Chevalier,
  • JAVA-852 appears to have removed a null check on rpcAddress in ControlConnection.rpcAddressForPeerHost, this causes the driver to throw a nullpointer, which is caught during initialization, but hangs the driver if occurring after receiving gossip. An inspection of my peers table reveals a few nodes with null rpc_address, mostly nodes that are currently joining. https://github.com/datastax/java-driver/commit/d798fb9578934afaa32f727400662c71caa46e13#diff-eb34fd201fd693686e45b0857843ba1aL382 {code} [cluster1-worker-50] ERROR com.datastax.driver.core.ExceptionCatchingRunnable - Unexpected error while executing task java.lang.NullPointerException at com.datastax.driver.core.ControlConnection.rpcAddressForPeerHost(ControlConnection.java:386) at com.datastax.driver.core.ControlConnection.checkSchemaAgreement(ControlConnection.java:730) at com.datastax.driver.core.ControlConnection.waitForSchemaAgreement(ControlConnection.java:704) at com.datastax.driver.core.Cluster$Manager.prepareAllQueries(Cluster.java:2159) at com.datastax.driver.core.Cluster$Manager.onUp(Cluster.java:1699) at com.datastax.driver.core.Cluster$Manager.access$1100(Cluster.java:1293) at com.datastax.driver.core.Cluster$Manager$NodeRefreshRequestDeliveryCallback$3.runMayThrow(Cluster.java:2724) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) {code}
    via by Dominic Chevalier,
    • java.lang.NullPointerException at com.datastax.driver.core.ControlConnection.updateLocationInfo(ControlConnection.java:491) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:571) at com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:360) at com.datastax.driver.core.ControlConnection.onRemove(ControlConnection.java:681) at com.datastax.driver.core.Cluster$Manager.onRemove(Cluster.java:1840) at com.datastax.driver.core.Cluster$Manager.access$1300(Cluster.java:1103) at com.datastax.driver.core.Cluster$Manager$9.runMayThrow(Cluster.java:1819) at com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32) 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)
    No Bugmate found.