com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"lastscan":"2017-01-04T02:21:33","7":{"name":"Kitchen door"},"8":{"name":"Kitchen table"}}; line: 1, column: 34] (through reference chain: java.util.LinkedHashMap["7"])

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

,

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.

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

Solutions on the web

via GitHub by Fraid
, 9 months ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"lastscan":"2017-01-04T02:21:33","7":{"name":"Kitchen door"},"8":{"name":"Kitchen table"}}; line: 1, column: 34] (through reference chain: java.util.LinkedHashMap["7"])
via Stack Overflow by Georg Unterberger
, 2 years ago
Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: java.io.StringReader@7b02e036; line: 1, column: 12]
via Stack Overflow by Samuel Alexander
, 2 years ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: [B@66fdec9; line: 1, column: 40] (through reference chain: com.sample.json.Result["records"])
via Stack Overflow by user3484044
, 1 year ago
Can not deserialize instance of java.lang.String out of START_ARRAY token** at [Source: (through reference chain: java.util.LinkedHashMap["MediaURLs"])
via GitHub by timukas
, 2 years ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"types":{"org.graylog2.inputs.gelf.http.GELFHttpInput":{"name":"GELF HTTP","requested_configuration":{"port":{"additional_info":{},"default_value":12201
via Stack Overflow by Premek
, 2 years ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: java.io.StringReader@1b2c5e58; line: 7, column: 41] (through reference chain: com.ofg.underwriter.us.mappers.ClarityResponse["exception-descriptions"])
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"lastscan":"2017-01-04T02:21:33","7":{"name":"Kitchen door"},"8":{"name":"Kitchen table"}}; line: 1, column: 34] (through reference chain: java.util.LinkedHashMap["7"])
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:857)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:62)
at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:495)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:341)
at com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)
at org.mycontroller.restclient.core.DefaultClientResponse.parse(DefaultClientResponse.java:74)
at org.mycontroller.restclient.core.DefaultClientResponse.getEntity(DefaultClientResponse.java:105)
at org.mycontroller.standalone.gateway.philipshue.PhilipsHueGatewayPoller.run(PhilipsHueGatewayPoller.java:105)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

276 times, 1 year ago
3 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
3 times, 1 year ago
Once, 1 month ago

Write tip

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