org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String[] out of START_OBJECT token at [Source: java.io.StringReader@2cdea607; line: 1, column: 1]

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

Types used for deserialization should be used in the way such that the annotation @JsonTypeInfo is visible.

Solutions on the web

via GitHub by ansell
, 11 months ago
Can not deserialize instance of java.lang.String[] out of START_OBJECT token at [Source: java.io.StringReader@2cdea607; line: 1, column: 1]
via Stack Overflow by msiles
, 1 year ago
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: java.io.StringReader@314ed053; line: 2, column: 1]
via Atlassian JIRA by Peter Obara [Atlassian], 1 year ago
Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token at [Source: org.apache.catalina.connector.CoyoteInputStream@8576a2; line: 1, column: 1]
via Atlassian JIRA by Peter Obara [Atlassian], 1 year ago
Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token at [Source: org.apache.catalina.connector.CoyoteInputStream@8576a2; line: 1, column: 1]
via xluat.com by Unknown author, 2 years ago
Can not deserialize instance of java.util.ArrayList out of START_OBJECT token at [Source: java.io.StringReader@10b61ad; line: 1, column: 580] (through reference chain: org.ull.etsii.client.dto.DatosIndicadoresSVclaveDTO["ideologicoVox"])
via Stack Overflow by crockpotveggies
, 2 years ago
Can not deserialize instance of com.threetierlogic.AccountService.models.User out of START_ARRAY token at [Source: java.io.StringReader@39494ff0; line: 1, column: 2]
org.codehaus.jackson.map.JsonMappingException: Can not deserialize instance of java.lang.String[] out of START_OBJECT token at [Source: java.io.StringReader@2cdea607; line: 1, column: 1]
at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
at org.codehaus.jackson.map.deser.StdDeserializationContext.mappingException(StdDeserializationContext.java:219)
at org.codehaus.jackson.map.deser.StdDeserializationContext.mappingException(StdDeserializationContext.java:212)
at org.codehaus.jackson.map.deser.std.PrimitiveArrayDeserializers$StringDeser.handleNonArray(PrimitiveArrayDeserializers.java:153)
at org.codehaus.jackson.map.deser.std.PrimitiveArrayDeserializers$StringDeser.deserialize(PrimitiveArrayDeserializers.java:119)
at org.codehaus.jackson.map.deser.std.PrimitiveArrayDeserializers$StringDeser.deserialize(PrimitiveArrayDeserializers.java:107)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
at au.org.ala.biocache.util.Json$.toArray(Json.scala:91)
at au.org.ala.biocache.poso.POSO$class.setProperty(POSO.scala:62)
at au.org.ala.biocache.model.Occurrence.setProperty(Occurrence.scala:11)
at au.org.ala.biocache.poso.CompositePOSO$class.setNestedProperty(CompositePOSO.scala:123)
at au.org.ala.biocache.model.FullRecord.setNestedProperty(FullRecord.scala:15)
at au.org.ala.biocache.poso.CompositePOSO$class.setProperty(CompositePOSO.scala:97)
at au.org.ala.biocache.model.FullRecord.setProperty(FullRecord.scala:15)
at au.org.ala.biocache.load.FullRecordMapper$$anonfun$createFullRecord$4.apply(FullRecordMapper.scala:189)
at au.org.ala.biocache.load.FullRecordMapper$$anonfun$createFullRecord$4.apply(FullRecordMapper.scala:145)
at scala.collection.Iterator$class.foreach(Iterator.scala:727)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1157)
at au.org.ala.biocache.load.FullRecordMapper$.createFullRecord(FullRecordMapper.scala:145)
at au.org.ala.biocache.dao.OccurrenceDAOImpl$$anonfun$pageOverRawProcessed$1.apply(OccurrenceDAOImpl.scala:420)
at au.org.ala.biocache.dao.OccurrenceDAOImpl$$anonfun$pageOverRawProcessed$1.apply(OccurrenceDAOImpl.scala:417)
at au.org.ala.biocache.persistence.CassandraPersistenceManager$$anonfun$pageOver$1.apply(CassandraPersistenceManager.scala:344)
at au.org.ala.biocache.persistence.CassandraPersistenceManager$$anonfun$pageOver$1.apply(CassandraPersistenceManager.scala:336)
at au.org.ala.biocache.persistence.CassandraPersistenceManager.pageOver(CassandraPersistenceManager.scala:336)
at au.org.ala.biocache.persistence.CassandraPersistenceManager.pageOverAll(CassandraPersistenceManager.scala:482)
at au.org.ala.biocache.dao.OccurrenceDAOImpl.pageOverRawProcessed(OccurrenceDAOImpl.scala:417)
at au.org.ala.biocache.index.ProcessRecordsRunner.run(IndexRecordMultiThreaded.scala:392)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

Once, 1 month ago
22 times, 2 months ago
10 times, 6 months ago
177 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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