com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: [B@460ebd80; line: 1, column: 17] (through reference chain: com.amazonaws.services.lambda.invoke.LambdaFunctionError["stackTrace"]->java.util.ArrayList[0])

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 GitHub by ecdavis
, 1 year ago
Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: [B@460ebd80; line: 1, column: 17] (through reference chain: com.amazonaws.services.lambda.invoke.LambdaFunctionError["stackTrace"]->java.util.ArrayList[0])
via GitHub by rfkrocktk
, 2 years ago
Can not deserialize instance of java.util.Date out of VALUE_EMBEDDED_OBJECT token at [Source: de.undercouch.bson4jackson.io.LittleEndianInputStream@5a4bb836; pos: 71] (through reference chain: org.tkassembled.example.bson.data.Article["date"])
via GitHub by david-bakin
, 1 year ago
Could not find creator property with name 'value' (in class com.bakins_bits.TestJacksonModuleParameterNames$D) at [Source: "abc:def"; line: 1, column: 1]
via GitHub by skizzybiz
, 7 months ago
Can not deserialize instance of com.[...]$CameraPathFrame$Builder out of null token at [Source: { "type": "[...]" } ; line: 3, column: 1]
via Stack Overflow by Ashish Patel
, 1 year ago
Can not deserialize instance of java.util.HashMap out of START_ARRAY token at [Source: [B@34ce8af7; line: 1, column: 1]
via GitHub by kgignatyev
, 2 years ago
Could not find creator property with name 'label' (in class kgi.repro.jacksonscala.LabeledValue) at [Source: {"label":"aaaaa","value":"bbbbb"}; line: 1, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_ARRAY token at [Source: [B@460ebd80; line: 1, column: 17] (through reference chain: com.amazonaws.services.lambda.invoke.LambdaFunctionError["stackTrace"]->java.util.ArrayList[0])
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.StdDeserializer._parseString(StdDeserializer.java:846)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:190)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:161)
at com.fasterxml.jackson.databind.deser.std.StringCollectionDeserializer.deserialize(StringCollectionDeserializer.java:19)
at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeWithErrorWrapping(BeanDeserializer.java:463)
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:378)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1099)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:296)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:133)
at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1511)
at com.amazonaws.services.lambda.invoke.LambdaInvokerFactory$LambdaInvocationHandler.getObjectFromPayload(LambdaInvokerFactory.java:331)
at com.amazonaws.services.lambda.invoke.LambdaInvokerFactory$LambdaInvocationHandler.getObjectFromPayload(LambdaInvokerFactory.java:320)
at com.amazonaws.services.lambda.invoke.LambdaInvokerFactory$LambdaInvocationHandler.getExceptionFromPayload(LambdaInvokerFactory.java:238)
at com.amazonaws.services.lambda.invoke.LambdaInvokerFactory$LambdaInvocationHandler.processInvokeResult(LambdaInvokerFactory.java:205)
at com.amazonaws.services.lambda.invoke.LambdaInvokerFactory$LambdaInvocationHandler.invoke(LambdaInvokerFactory.java:123)

Users with the same issue

2 times, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 1 month ago
8 times, 4 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
144 more bugmates

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