java.lang.NullPointerException

DataStax JIRA | Anthony Cozzie | 1 year ago
  1. 0

    When we update the speculative executions metric, we should check if metrics are enabled first. This produces an NPE in {{RequestHandler#newExeutionTask}}. ----- _Initial report:_ The driver throws NPEs if the speculative execution threshold is sufficiently low on cassandra-stress runs. Steps to reproduce: launch a VM with the DSP-5488 branch and run a write test: {code} automaton@i-6d57d8aac:~/bdp/build/dist/resources/cassandra/tools/bin$ ./cassandra-stress write -node specExecThreshold=100 Connected to cluster: coztest Datatacenter: Cassandra; Host: localhost/127.0.0.1; Rack: rack1 Created keyspaces. Sleeping 1s for propagation. Sleeping 2s... Warming up WRITE with 50000 iterations... Exception in thread "cluster1-worker-1" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-2" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-0" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-4" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) {code}

    DataStax JIRA | 1 year ago | Anthony Cozzie
    java.lang.NullPointerException
  2. 0

    When we update the speculative executions metric, we should check if metrics are enabled first. This produces an NPE in {{RequestHandler#newExeutionTask}}. ----- _Initial report:_ The driver throws NPEs if the speculative execution threshold is sufficiently low on cassandra-stress runs. Steps to reproduce: launch a VM with the DSP-5488 branch and run a write test: {code} automaton@i-6d57d8aac:~/bdp/build/dist/resources/cassandra/tools/bin$ ./cassandra-stress write -node specExecThreshold=100 Connected to cluster: coztest Datatacenter: Cassandra; Host: localhost/127.0.0.1; Rack: rack1 Created keyspaces. Sleeping 1s for propagation. Sleeping 2s... Warming up WRITE with 50000 iterations... Exception in thread "cluster1-worker-1" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-2" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-0" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) 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) Exception in thread "cluster1-worker-4" java.lang.NullPointerException at com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) {code}

    DataStax JIRA | 1 year ago | Anthony Cozzie
    java.lang.NullPointerException
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.RequestHandler$1$1.run()
    2. DataStax Java Driver for Apache Cassandra - Core
      RequestHandler$1$1.run
      1. com.datastax.driver.core.RequestHandler$1$1.run(RequestHandler.java:138)
      1 frame
    3. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      2 frames