java.lang.NullPointerException

DataStax JIRA | Vishy Kasar | 2 years ago
  1. 0

    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.

    DataStax JIRA | 2 years ago | Vishy Kasar
    java.lang.NullPointerException
  2. 0

    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.

    DataStax JIRA | 2 years ago | Vishy Kasar
    java.lang.NullPointerException
  3. 0

    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}

    DataStax JIRA | 6 months ago | Dominic Chevalier
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    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}

    DataStax JIRA | 6 months ago | Dominic Chevalier
    java.lang.NullPointerException
  6. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    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. java.lang.NullPointerException

      No message provided

      at com.datastax.driver.core.ControlConnection.updateLocationInfo()
    2. DataStax Java Driver for Apache Cassandra - Core
      ExceptionCatchingRunnable.run
      1. com.datastax.driver.core.ControlConnection.updateLocationInfo(ControlConnection.java:491)
      2. com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:571)
      3. com.datastax.driver.core.ControlConnection.refreshNodeListAndTokenMap(ControlConnection.java:360)
      4. com.datastax.driver.core.ControlConnection.onRemove(ControlConnection.java:681)
      5. com.datastax.driver.core.Cluster$Manager.onRemove(Cluster.java:1840)
      6. com.datastax.driver.core.Cluster$Manager.access$1300(Cluster.java:1103)
      7. com.datastax.driver.core.Cluster$Manager$9.runMayThrow(Cluster.java:1819)
      8. com.datastax.driver.core.ExceptionCatchingRunnable.run(ExceptionCatchingRunnable.java:32)
      8 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.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames