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.

  • 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}
    via by Anthony Cozzie,
  • 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}
    via by Anthony Cozzie,
    • 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)
    No Bugmate found.