java.lang.RuntimeException

java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2

  • via Unknown by Jackson Chung,
  • via Unknown by vishnu rao (JIRA),
  • Stack trace

    • java.lang.RuntimeException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:128)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:99)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:80)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.daemon.executor$fn__7014$fn__7027$fn__7078.invoke(executor.clj:808)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.util$async_loop$fn__545.invoke(util.clj:475)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at clojure.lang.AFn.run(AFn.java:22)[clojure-1.6.0.jar:na] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_40] Caused by: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number at com.pocketmath.nebula.metric.storm.NewRelicMetricConsumer.handleDataPoints(NewRelicMetricConsumer.java:55)[stormjar.jar:na] at backtype.storm.metric.MetricsConsumerBolt.execute(MetricsConsumerBolt.java:55)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.daemon.executor$fn__7014$tuple_action_fn__7016.invoke(executor.clj:670)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.daemon.executor$mk_task_receiver$fn__6937.invoke(executor.clj:426)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.disruptor$clojure_handler$reify__6513.onEvent(disruptor.clj:58)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:125)[storm-core-0.10.0.2.3.0.0-2557.jar:0.10.0.2.3.0.0-2557] ... 6 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.