com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of scala.collection.Seq out of START_OBJECT token at [Source: java.io.StringReader@4d157493; line: 1, column: 1]

GitHub | JoshRosen | 4 weeks ago
  1. 0

    GitHub comment 233#187804075

    GitHub | 11 months ago | mancvso
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of scala.collection.immutable.Map out of START_OBJECT token at [Source: {"weekdayMap":{"Mon":"Boo","Fri":"Hooray!"}}; line: 1, column: 15] (through reference chain: com.fasterxml.jackson.module.scala.deser.HolderImpl["weekdayMap"])
  2. 0

    Deserialization into List subtype with JsonCreator no longer works

    GitHub | 1 year ago | adamjoeldavis
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.util.ArrayList out of VALUE_STRING token at [Source: "[{"deleted":false,"data":{}}]"; line: 1, column: 1]

  1. rp 1 times, last 10 months ago
1 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 scala.collection.Seq out of START_OBJECT token at [Source: java.io.StringReader@4d157493; line: 1, column: 1]

    at com.fasterxml.jackson.databind.JsonMappingException.from()
  2. Jackson
    CollectionDeserializer.deserialize
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
    2. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:835)
    3. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:831)
    4. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.handleNonArray(CollectionDeserializer.java:288)
    5. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:227)
    6. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
    6 frames
  3. jackson-module-scala
    SeqDeserializer.deserialize
    1. com.fasterxml.jackson.module.scala.deser.SeqDeserializer.deserialize(SeqDeserializerModule.scala:76)
    2. com.fasterxml.jackson.module.scala.deser.SeqDeserializer.deserialize(SeqDeserializerModule.scala:59)
    2 frames
  4. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3562)
    2. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2616)
    2 frames
  5. jackson-module-scala
    ScalaObjectMapper$class.readValue
    1. com.fasterxml.jackson.module.scala.experimental.ScalaObjectMapper$class.readValue(ScalaObjectMapper.scala:184)
    1 frame
  6. sbtdatabricks
    DatabricksPlugin$$anonfun$19.apply
    1. sbtdatabricks.DatabricksHttp$$anon$1.readValue(DatabricksHttp.scala:57)
    2. sbtdatabricks.DatabricksHttp.fetchClusters(DatabricksHttp.scala:353)
    3. sbtdatabricks.DatabricksPlugin$$anonfun$19.apply(DatabricksPlugin.scala:327)
    4. sbtdatabricks.DatabricksPlugin$$anonfun$19.apply(DatabricksPlugin.scala:327)
    4 frames
  7. Scala
    Function1$$anonfun$compose$1.apply
    1. scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
    1 frame
  8. SBT
    $tilde$greater$$anonfun$$u2219$1.apply
    1. sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
    1 frame
  9. sbt Task system
    Transform$$anon$4.work
    1. sbt.std.Transform$$anon$4.work(System.scala:64)
    1 frame
  10. SBT
    CompletionService$$anon$2.call
    1. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    2. sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
    3. sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
    4. sbt.Execute.work(Execute.scala:244)
    5. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    6. sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
    7. sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
    8. sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
    8 frames
  11. Java RT
    Thread.run
    1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    2. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    3. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    4. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    5. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    6. java.lang.Thread.run(Thread.java:745)
    6 frames