java.lang.ClassCastException: Cannot cast java.lang.String to org.joda.time.DateTime


Solutions on the web174

Solution icon of github
Cannot cast java.lang.String to org.joda.time.DateTime

Solution icon of googlegroups
via Google Groups by Frank, 9 months ago
Cannot cast java.lang.String to org.joda.time.DateTime

Solution icon of github
Cannot cast java.lang.String to java.lang.Integer

Solution icon of github
Cannot cast java.lang.String to java.lang.Integer

Solution icon of github
Cannot cast java.lang.String to com.example.FeedSubscription

Solution icon of web
via knowcoding.com by Unknown author, 1 year ago
Cannot cast com.ikbiz.gastroscope.model.Country to java.lang.String

Solution icon of web
via knowcoding.com by Unknown author, 1 year ago
Cannot cast com.ikbiz.gastroscope.model.Country to java.lang.String

Solution icon of web
Cannot cast java.util.Date to java.lang.String

Solution icon of web
Cannot cast java.lang.Long to java.lang.String

Solution icon of github
Cannot cast com.fasterxml.jackson.databind.node.TextNode to java.lang.String

Stack trace

java.lang.ClassCastException: Cannot cast java.lang.String to org.joda.time.DateTime
	at java.lang.Class.cast(Class.java:3369)[?:1.8.0_102]
	at org.graylog2.plugin.Message.getFieldAs(Message.java:380)[graylog.jar:?]
	at org.graylog2.plugin.Message.getTimestamp(Message.java:178)[graylog.jar:?]
	at org.graylog2.plugins.slack.output.SlackMessageOutput.buildMessage(SlackMessageOutput.java:97)[?:?]
	at org.graylog2.plugins.slack.output.SlackMessageOutput.write(SlackMessageOutput.java:67)[?:?]
	at org.graylog2.buffers.processors.OutputBufferProcessor$1.run(OutputBufferProcessor.java:189)[graylog.jar:?]
	at com.codahale.metrics.InstrumentedExecutorService$InstrumentedRunnable.run(InstrumentedExecutorService.java:176)[graylog.jar:?]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[?:1.8.0_102]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_102]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_102]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_102]
	at java.lang.Thread.run(Thread.java:745)[?:1.8.0_102]

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

Samebug visitor profile picture
Unknown user
Once, 1 week ago
Once, 3 months ago
2 times, 4 months ago
7 times, 6 months ago
8 times, 7 months ago
25 more bugmates