java.lang.ClassCastException: java.lang.String 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 GitHub by faxm0dem
, 1 year ago
java.lang.String cannot be cast to java.lang.Number
via GitHub by faxm0dem
, 1 year ago
java.lang.String cannot be cast to java.lang.Iterable
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Number
at riemann.codec$encode_pb_event.invoke(codec.clj:81)
at clojure.core$map$fn__4245.invoke(core.clj:2559)
at clojure.lang.LazySeq.sval(LazySeq.java:40)
at clojure.lang.LazySeq.seq(LazySeq.java:49)
at clojure.lang.LazySeq.iterator(LazySeq.java:184)
at com.google.protobuf.AbstractMessageLite$Builder.checkForNullValues(AbstractMessageLite.java:336)
at com.aphyr.riemann.Proto$Msg$Builder.addAllEvents(Proto.java:5123)
at riemann.codec$encode_pb_msg.invoke(codec.clj:113)
at riemann.transport$msg_encoder$fn__11277.invoke(transport.clj:81)
at riemann.transport.proxy$org.jboss.netty.handler.codec.oneone.OneToOneEncoder$ff19274a.encode(Unknown Source)
at riemann.transport.proxy$org.jboss.netty.handler.codec.oneone.OneToOneEncoder$ff19274a.doEncode(Unknown Source)
at riemann.transport.proxy$org.jboss.netty.handler.codec.oneone.OneToOneEncoder$ff19274a.handleDownstream(Unknown Source)
at riemann.transport.tcp.proxy$org.jboss.netty.channel.SimpleChannelHandler$ff19274a.writeRequested(Unknown Source)
at riemann.transport.tcp.proxy$org.jboss.netty.channel.SimpleChannelHandler$ff19274a.handleDownstream(Unknown Source)
at org.jboss.netty.channel.Channels.write(Channels.java:704)
at org.jboss.netty.channel.Channels.write(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)
at org.jboss.netty.channel.Channels.write(Channels.java:671)
at org.jboss.netty.channel.AbstractChannel.write(AbstractChannel.java:248)
at riemann.transport.tcp$tcp_handler.invoke(tcp.clj:84)
at riemann.transport.tcp$gen_tcp_handler$fn__11316.invoke(tcp.clj:65)
at riemann.transport.tcp.proxy$org.jboss.netty.channel.SimpleChannelHandler$ff19274a.messageReceived(Unknown Source)
at riemann.transport.tcp.proxy$org.jboss.netty.channel.SimpleChannelHandler$ff19274a.handleUpstream(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at riemann.transport.proxy$org.jboss.netty.handler.codec.oneone.OneToOneDecoder$ff19274a.handleUpstream(Unknown Source)
at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.jboss.netty.handler.codec.oneone.OneToOneDecoder.handleUpstream(OneToOneDecoder.java:70)
at org.jboss.netty.handler.execution.ChannelUpstreamEventRunnable.doRun(ChannelUpstreamEventRunnable.java:43)
at org.jboss.netty.handler.execution.ChannelEventRunnable.run(ChannelEventRunnable.java:67)
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)

Users with the same issue

You are the first who have seen this exception.

Write tip

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