com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: java.io.PushbackInputStream@55f8669d; line: 1, column: 1]

Stack Overflow | Tyler Whalen | 6 months 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

    How would I parse this JSON, looks like an array but no "[]"s

    Stack Overflow | 6 months ago | Tyler Whalen
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: java.io.PushbackInputStream@55f8669d; line: 1, column: 1]
  2. 0

    How do I write a JUnit test to consume a PagedResources<T> in Spring Boot?

    Stack Overflow | 2 years ago | Maximilian Wollnik
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.springframework.hateoas.PagedResources<consumer.model.Product>] from String value ('_links'); no single-String constructor/factory method at [Source: java.io.ByteArrayInputStream@1966492; line: 1, column: 1]
  3. 0

    Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT token(very simple Object)

    Stack Overflow | 1 year ago | martin cremona
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@259bdd7c).inputStream(); line: 1, column: 1]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to read subtype?

    GitHub | 3 years ago | gaydenko
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate abstract type [simple type, class scala.runtime.Nothing$] (need to add/enable type information?) at [Source: {"i":42}; line: 1, column: 2]
  6. 0

    Deserializing nested json's with jackson

    Stack Overflow | 5 years ago | labbyfrost
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class JsonPath.Cpld] from JSON String; no single-String constructor/factory method (through reference chain: JsonPath.mainbean["clientPayload"])

  1. iferca 3 times, last 3 weeks ago
  2. Alireza Mohamadi 5 times, last 3 weeks ago
  3. Andreas Häber 1 times, last 4 weeks ago
  4. SteVio1989 2 times, last 2 months ago
  5. rp 2 times, last 2 months ago
17 more registered users
78 unregistered visitors
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.util.ArrayList out of START_OBJECT token at [Source: java.io.PushbackInputStream@55f8669d; line: 1, column: 1]

    at com.fasterxml.jackson.databind.JsonMappingException.from()
  2. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:261)[jackson-databind-2.8.1.jar:2.8.1]
    2. com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1233)[jackson-databind-2.8.1.jar:2.8.1]
    3. com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1121)[jackson-databind-2.8.1.jar:2.8.1]
    4. com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1074)[jackson-databind-2.8.1.jar:2.8.1]
    5. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.handleNonArray(CollectionDeserializer.java:328)[jackson-databind-2.8.1.jar:2.8.1]
    6. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:259)[jackson-databind-2.8.1.jar:2.8.1]
    7. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:249)[jackson-databind-2.8.1.jar:2.8.1]
    8. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:26)[jackson-databind-2.8.1.jar:2.8.1]
    9. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)[jackson-databind-2.8.1.jar:2.8.1]
    10. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2913)[jackson-databind-2.8.1.jar:2.8.1]
    10 frames
  3. Spring
    RestTemplate.exchange
    1. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:225)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    2. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:228)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    3. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.read(AbstractJackson2HttpMessageConverter.java:213)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    4. org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:95)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    5. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:884)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    6. org.springframework.web.client.RestTemplate$ResponseEntityResponseExtractor.extractData(RestTemplate.java:868)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    7. org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:622)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    8. org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    9. org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:526)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE]
    9 frames
  4. com.tjwhalen.game
    Application$AppConfig.run
    1. com.tjwhalen.game.service.dao.ItemSummaryURLConsumer.consumeItems(ItemSummaryURLConsumer.java:25)[classes/:na]
    2. com.tjwhalen.game.service.impl.ItemSummaryRestServiceImpl.getItems(ItemSummaryRestServiceImpl.java:25)[classes/:na]
    3. com.tjwhalen.game.loader.LoadItems.load(LoadItems.java:38)[classes/:na]
    4. com.tjwhalen.game.loader.LoaderRunner.execute(LoaderRunner.java:26)[classes/:na]
    5. com.tjwhalen.game.Application$AppConfig.run(Application.java:78)[classes/:na]
    5 frames
  5. Spring Boot
    SpringApplication.callRunner
    1. org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:798)[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
    1 frame