com.fasterxml.jackson.databind.JsonMappingException: Class java.lang.Long not subtype of [simple type, class long] (through reference chain: java.util.HashMap["longAsField"]->com.pinkmatter.bean.serialization.Data["key"])

Stack Overflow | ughzan | 2 months ago
  1. 0

    Deserialize primitive long field while using TypeResolverBuilder of Jackson

    Stack Overflow | 2 months ago | ughzan
    com.fasterxml.jackson.databind.JsonMappingException: Class java.lang.Long not subtype of [simple type, class long] (through reference chain: java.util.HashMap["longAsField"]->com.pinkmatter.bean.serialization.Data["key"])
  2. 0

    Problems deserializing primitive `long` field while using `TypeResolverBuilder`

    GitHub | 2 months ago | UghZan3
    com.fasterxml.jackson.databind.JsonMappingException: Class java.lang.Long not subtype of [simple type, class long] (through reference chain: java.util.HashMap["longAsField"]->com.pinkmatter.bean.serialization.Data["key"])
  3. 0

    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class java.time.LocalDateTime] from String

    Stack Overflow | 6 months ago | Ratha
    com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class java.time.LocalDateTime] from String value ('2016-06-02T00:08:25.605Z'); no single-String constructor/factory method at [Source: io.undertow.servlet.spec.ServletInputStreamImpl@396d1714; line: 2, column: 3] (through reference chain: com.leightonobrien.core.model.base.Company["created"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Serialization on annotated polymorph types not as expected

    GitHub | 3 years ago | galan
    com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'Turtle' into a subtype of [simple type, class mypackage.Animal] at [Source: N/A; line: -1, column: -1] (through reference chain: mypackage.Zoo["animals"])
  6. 0

    How to fail on serialization when type was not annotated

    Stack Overflow | 3 years ago | Dag
    com.fasterxml.jackson.databind.JsonMappingException: Could not resolve type id 'Turtle' into a subtype of [simple type, class mypackage.Animal] at [Source: N/A; line: -1, column: -1] (through reference chain: mypackage.Zoo["animals"])

    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

      Class java.lang.Long not subtype of [simple type, class long] (through reference chain: java.util.HashMap["longAsField"]->com.pinkmatter.bean.serialization.Data["key"])

      at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath()
    2. Jackson
      BeanDeserializer.vanillaDeserialize
      1. com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:379)
      2. com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:339)
      3. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1591)
      4. com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:278)
      4 frames