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"])

GitHub | Fraid | 1 month ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    GitHub comment 334#272356412

    GitHub | 1 month ago | Fraid
    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"])
  2. 0

    Deserializing JSON Map using Jackson does not give correct Map back

    Stack Overflow | 3 years ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.FixedLengthInputStream@43822760; line: 1, column: 17] (through reference chain: com.example.model.Contact["attributes"])
  3. 0

    Deserializing JSON Map using Jackson does not give correct Map back

    dolinked.com | 2 years ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.FixedLengthInputStream@43822760; line: 1, column: 17] (through reference chain: com.example.model.Contact["attributes"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to ignore a specific field while parsing a JSON into map

    Stack Overflow | 2 years ago | Samuel Alexander
    com.fasterxml.jackson.databind.JsonMappingException: 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"])
  6. 0

    Deserializing JSON Map using Jackson does not give correct Map back - codeotel.com

    widecodes.com | 2 years ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: libcore.net.http.FixedLengthInputStream@43822760; line: 1, column: 17] (through reference chain: com.example.model.Contact["attributes"])
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
    2. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:857)
    3. com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:62)
    4. com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)
    5. com.fasterxml.jackson.databind.deser.std.MapDeserializer._readAndBindStringMap(MapDeserializer.java:495)
    6. com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:341)
    7. com.fasterxml.jackson.databind.deser.std.MapDeserializer.deserialize(MapDeserializer.java:26)
    8. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3736)
    9. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2764)
    9 frames
  3. org.mycontroller.restclient
    DefaultClientResponse.getEntity
    1. org.mycontroller.restclient.core.DefaultClientResponse.parse(DefaultClientResponse.java:74)
    2. org.mycontroller.restclient.core.DefaultClientResponse.getEntity(DefaultClientResponse.java:105)
    2 frames
  4. org.mycontroller.standalone
    PhilipsHueGatewayPoller.run
    1. org.mycontroller.standalone.gateway.philipshue.PhilipsHueGatewayPoller.run(PhilipsHueGatewayPoller.java:105)
    1 frame
  5. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame