com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of VALUE_FALSE token at [Source: /Users/Pepejson/Desktop/Development/PokemonGoBot/./bot-settings/default.json; line: 18, column: 21] (through reference chain: ink.abb.pogo.scraper.Settings["followStreets"])

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.

,

The easiest solution is to provide a default constructor for the class you want to convert from/to json.

Solutions on the web

via GitHub by Pepejson
, 1 year ago
Can not deserialize instance of java.util.ArrayList out of VALUE_FALSE token at [Source: /Users/Pepejson/Desktop/Development/PokemonGoBot/./bot-settings/default.json; line: 18, column: 21] (through reference chain: ink.abb.pogo.scraper.Settings["followStreets"])
via GitHub by Jacopo1891
, 1 year ago
Can not deserialize instance of java.util.ArrayList out of VALUE_TRUE token at [Source: /home/jacopo/PokemonGoBot/./bot-settings/default.json; line: 18, column: 21] (through reference chain: ink.abb.pogo.scraper.Settings["followStreets"])
via Stack Overflow by Sathish Kumar
, 1 week ago
Can not deserialize instance of java.util.ArrayList out of VALUE_NUMBER_INT token at [Source: 1 2 3; line: 1, column: 1]
via Stack Overflow by James O'Reilly
, 7 months ago
Can not deserialize instance of file.readers.TestAcceptanceCriteria out of START_ARRAY token at [Source: results\acceptanceCriteria.json; line: 1, column: 1]
via Stack Overflow by Chris Bouchard
, 1 year ago
Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: {"fooMap":{"a":"b","c":"d"},"barMap":{"e":"f","g":"h"}}; line: 1, column: 11] (through reference chain: test.TestMapSerialize$TestMap["fooMap"])
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of VALUE_FALSE token at [Source: /Users/Pepejson/Desktop/Development/PokemonGoBot/./bot-settings/default.json; line: 18, column: 21] (through reference chain: ink.abb.pogo.scraper.Settings["followStreets"])
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:261)
at com.fasterxml.jackson.databind.DeserializationContext.reportMappingException(DeserializationContext.java:1233)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1121)
at com.fasterxml.jackson.databind.DeserializationContext.handleUnexpectedToken(DeserializationContext.java:1074)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.handleNonArray(CollectionDeserializer.java:328)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:259)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:249)
at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:26)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:490)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:511)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:396)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1194)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:314)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)
at ink.abb.pogo.scraper.services.BotService.load(BotService.kt:69)
at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$$inlined$forEach$lambda$1.invoke(PokemonGoBotApplication.kt:85)
at ink.abb.pogo.scraper.PokemonGoBotApplication$BotRunner$run$$inlined$forEach$lambda$1.invoke(PokemonGoBotApplication.kt:67)
at kotlin.concurrent.ThreadsKt$thread$thread$1.run(Thread.kt:18)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 year ago
160 more bugmates

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