com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (START_OBJECT), expected VALUE_STRING: Expected array or string. at ...

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

Samebug tips

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

,

You are trying to deserialize a type for which Jackson does not provide a default mapper. You should create your custom mapper for this type.

Solutions on the web

via Stack Overflow by Dr Dave
, 10 months ago
via GitHub by priyatam
, 2 years ago
Unexpected token (START_OBJECT), expected START_ARRAY: expected JSON Array, String or Number at Source: org.mortbay.jetty.HttpParser$Input@d297c0; line: 1, column: 51
via Stack Overflow by priyatam
, 1 year ago
Unexpected token (START_OBJECT), expected START_ARRAY: expected JSON Array, String or Number at Source: org.mortbay.jetty.HttpParser$Input@d297c0; line: 1, column: 51
via Stack Overflow by user3212350
, 1 year ago
Unexpected token (START_OBJECT), expected START_ARRAY: Expected array or string. at [Source: N/A; line: -1, column: -1] (through reference chain: xxx.Delegation["start"])
via Stack Overflow by Christoph
, 2 years ago
No content to map due to end-of-input at [Source: org.apache.catalina.connector.CoyoteInputStream@1286ec89; line: 1, column: 559]
via GitHub by cemo
, 2 years ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property '@class' that is to contain type id (for class com.fasterxml.jackson.databind.JsonNode) at [Source: java.io.StringReader@b240236; line: 1, column: 193]
com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (START_OBJECT), expected VALUE_STRING: Expected array or string. at ...
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:270)
at com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer.deserialize(LocalDateTimeDeserializer.java:118)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
3 times, 1 day ago
6 times, 1 week ago
135 more bugmates

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