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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via incubator-storm-dev by vishnu rao (JIRA), 1 year ago
java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number
via Apache's JIRA Issue Tracker by Jackson Chung, 1 year ago
java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number
via Stack Overflow by Guy
, 2 years ago
java.lang.ClassCastException: storm.trident.state.map.SnapshottableMap cannot be cast to com.hmsonline.storm.cassandra.trident.CassandraState
via storm-user by shane.lisy@gmail.com, 4 months ago
java.lang.ClassCastException: java.lang.Long cannot be cast to backtype.storm.transactional.TransactionAttempt
via Stack Overflow by user-4870385
, 1 year ago
java.lang.ClassCastException: [B cannot be cast to java.lang.String**
java.lang.RuntimeException: java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.Number
at com.test.metric.storm.NewRelicMetricConsumer.handleDataPoints(NewRelicMetricConsumer.java:55)
at backtype.storm.metric.MetricsConsumerBolt.execute(MetricsConsumerBolt.java:55)
at backtype.storm.daemon.executor$fn__7014$tuple_action_fn__7016.invoke(executor.clj:670)
at backtype.storm.daemon.executor$mk_task_receiver$fn__6937.invoke(executor.clj:426)
at backtype.storm.disruptor$clojure_handler$reify__6513.onEvent(disruptor.clj:58)
at backtype.storm.utils.DisruptorQueue.consumeBatchToCursor(DisruptorQueue.java:125)
at backtype.storm.utils.DisruptorQueue.consumeBatchWhenAvailable(DisruptorQueue.java:99)
at backtype.storm.disruptor$consume_batch_when_available.invoke(disruptor.clj:80)
at backtype.storm.daemon.executor$fn__7014$fn__7027$fn__7078.invoke(executor.clj:808)
at backtype.storm.util$async_loop$fn__545.invoke(util.clj:475)
at clojure.lang.AFn.run(AFn.java:22)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.