java.lang.ClassCastException: Cannot cast com.fasterxml.jackson.databind.node.TextNode to java.lang.String

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 lennartkoopmann
, 1 year ago
Cannot cast com.fasterxml.jackson.databind.node.TextNode to java.lang.String
via Stack Overflow by KurdTt-
, 10 months ago
Cannot cast com.google.gson.internal.LinkedTreeMap to com.entity.model.WeatherParameter
via GitHub by joaoe
, 7 months ago
Cannot cast java.lang.Boolean to [Ljava.lang.String;
via GitHub by wiedenhoeft
, 4 months ago
Cannot cast java.lang.Boolean to [Ljava.lang.String;
via Google Groups by Frank, 10 months ago
Cannot cast java.lang.String to org.joda.time.DateTime
via GitHub by patcable
, 10 months ago
Cannot cast java.lang.String to org.joda.time.DateTime
java.lang.ClassCastException: Cannot cast com.fasterxml.jackson.databind.node.TextNode to java.lang.String
at java.lang.Class.cast(Class.java:3369)
at org.graylog2.plugin.Message.getFieldAs(Message.java:371)
at org.graylog2.plugin.Message.getMessage(Message.java:287)
at org.graylog2.indexer.messages.Messages.bulkIndex(Messages.java:116)
at org.graylog2.indexer.messages.Messages.bulkIndex(Messages.java:106)
at org.graylog2.outputs.ElasticSearchOutput.write(ElasticSearchOutput.java:98)
at org.graylog2.outputs.BlockingBatchedESOutput.flush(BlockingBatchedESOutput.java:128)
at org.graylog2.periodical.BatchedElasticSearchOutputFlushThread.doRun(BatchedElasticSearchOutputFlushThread.java:88)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

2 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 month ago
Once, 4 months ago
7 times, 7 months ago
25 more bugmates

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