java.lang.ClassCastException

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


Solutions on the web20030

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

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

Solution icon of github
via GitHub by aftnix
, 10 months ago
org.joda.time.DateTime cannot be cast to java.lang.String

Solution icon of github
via GitHub by mkhsueh
, 11 months ago
org.joda.time.DateTime cannot be cast to java.lang.Long

Solution icon of stackoverflow
java.lang.Long cannot be cast to org.joda.time.DateTime

Solution icon of grails
via Grails JIRA by Robert Fletcher, 1 year ago
org.joda.time.DateTime cannot be cast to groovy.lang.GroovyObject

Solution icon of stackoverflow
Cannot cast java.lang.String to java.util.List

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 stackoverflow
java.lang.String cannot be cast 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_111] at org.graylog2.plugin.Message.getFieldAs(Message.java:380)[graylog.jar:?] at org.graylog2.plugin.Message.getTimestamp(Message.java:178)[graylog.jar:?] at com.graylog.splunk.output.senders.TCPSender.send(TCPSender.java:151)[?:?] at com.graylog.splunk.output.SplunkOutput.write(SplunkOutput.java:87)[?:?] 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_111] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_111] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_111] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_111]

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

Once, 1 month ago
2 times, 2 months ago
7 times, 4 months ago
8 times, 5 months ago
64 times, 9 months ago
24 more bugmates