com.fasterxml.jackson.databind.JsonMappingException: Class JacksonSubclassCollectionTest$SomeBaseClass not subtype of [simple type, class JacksonSubclassCollectionTest$SomeSubClass] at [Source: {"collection":[{"type":"SUBCLASS","field":7}]}; line: 1, column: 1]

GitHub | michaelaberman | 4 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Parameter names module gets confused with delegate creator which is a static method

    GitHub | 1 year ago | david-bakin
    com.fasterxml.jackson.databind.JsonMappingException: Could not find creator property with name 'value' (in class com.bakins_bits.TestJacksonModuleParameterNames$D) at [Source: "abc:def"; line: 1, column: 1]
  2. 0

    `@JsonProperty(access = READ_ONLY)` together with generated constructor (lombok) causes JsonMappingException: Could not find creator property with name [...]

    GitHub | 8 months ago | Raniz85
    com.fasterxml.jackson.databind.JsonMappingException: Could not find creator property with name 's' (in class LombokObject) at [Source: {"s":"test"}; line: 1, column: 1]
  3. 0

    Unable to have two @JsonUnwrapped annotated object of same type within one constructor

    GitHub | 2 years ago | smil2k
    com.fasterxml.jackson.databind.JsonMappingException: Duplicate creator property "@JsonUnwrapped" (index 18 vs 19)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to deserialize collection of concrete subclass when using defaultImpl

    GitHub | 4 months ago | michaelaberman
    com.fasterxml.jackson.databind.JsonMappingException: Class JacksonSubclassCollectionTest$SomeBaseClass not subtype of [simple type, class JacksonSubclassCollectionTest$SomeSubClass] at [Source: {"collection":[{"type":"SUBCLASS","field":7}]}; line: 1, column: 1]
  6. 0

    Duplicate property '' for [simple type, on Deserialization

    Stack Overflow | 2 years ago | DominikAngerer
    com.fasterxml.jackson.databind.JsonMappingException: Duplicate property '' for [simple type, class com.example.jackson.model.Product]

  1. Axelo 1 times, last 3 weeks ago
  2. tyson925 14 times, last 3 weeks ago
  3. stigkj 1 times, last 4 weeks ago
  4. rp 1 times, last 1 month ago
  5. iferca 3 times, last 2 months ago
19 more registered users
76 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. java.lang.IllegalArgumentException

    Class JacksonSubclassCollectionTest$SomeBaseClass not subtype of [simple type, class JacksonSubclassCollectionTest$SomeSubClass]

    at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType()
  2. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:359)
    2. com.fasterxml.jackson.databind.jsontype.impl.StdTypeResolverBuilder.buildTypeDeserializer(StdTypeResolverBuilder.java:118)
    3. com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findTypeDeserializer(BasicDeserializerFactory.java:1363)
    4. com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findPropertyContentTypeDeserializer(BasicDeserializerFactory.java:1526)
    5. com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.resolveMemberAndTypeAnnotations(BasicDeserializerFactory.java:1841)
    6. com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.constructSettableProperty(BeanDeserializerFactory.java:735)
    7. com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.addBeanProps(BeanDeserializerFactory.java:520)
    8. com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:226)
    9. com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:141)
    10. com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:406)
    11. com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:352)
    12. com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
    13. com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
    14. com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
    15. com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:475)
    16. com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:3890)
    17. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3785)
    18. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2833)
    18 frames
  3. Unknown
    JacksonSubclassCollectionTest.main
    1. JacksonSubclassCollectionTest.main(JacksonSubclassCollectionTest.java:20)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
    1 frame