com.fasterxml.jackson.databind.JsonMappingException: Problem deserializing property 'c' (expected type: [simple type, class com.fasterxml.jackson.failing.Polymorphic1311Test$C]; actual type: com.fasterxml.jackson.failing.Polymorphic1311Test$B), problem: Can not set com.fasterxml.jackson.failing.Polymorphic1311Test$C field com.fasterxml.jackson.failing.Polymorphic1311Test$X.c to com.fasterxml.jackson.failing.Polymorphic1311Test$B at [Source: {"c":{ }}; line: 1, column: 8] (through reference chain: com.fasterxml.jackson.failing.X["c"])

GitHub | cowtowncoder | 4 months ago
  1. 0

    GitHub comment 1311#239256109

    GitHub | 4 months ago | cowtowncoder
    com.fasterxml.jackson.databind.JsonMappingException: Problem deserializing property 'c' (expected type: [simple type, class com.fasterxml.jackson.failing.Polymorphic1311Test$C]; actual type: com.fasterxml.jackson.failing.Polymorphic1311Test$B), problem: Can not set com.fasterxml.jackson.failing.Polymorphic1311Test$C field com.fasterxml.jackson.failing.Polymorphic1311Test$X.c to com.fasterxml.jackson.failing.Polymorphic1311Test$B at [Source: {"c":{ }}; line: 1, column: 8] (through reference chain: com.fasterxml.jackson.failing.X["c"])
  2. 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"])
  3. 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"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    How to reference an entity with inheritance in Spring Data REST when POSTing new entity?

    Stack Overflow | 2 years ago | tewe
    com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (VALUE_STRING), expected FIELD_NAME: missing property 'supporterType' that is to contain type id (for class com.facer.domain.supporter.SupporterEntity) at [Source: HttpInputOverHTTP@4321c221; line: 1, column: 2] (through reference chain: com.facer.domain.supporter.ContactEntity["supporter"])
  6. 0

    Jackson使い方メモ - Qiita

    qiita.com | 5 months ago
    com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of sample.jackson.AbstractClass, problem: abstract types either need to be mapped to concrete types, have custom deserializer, or be instantiated with additional type information at [Source: java.io.StringReader@2ef5e5e3; line: 1, column: 10] (through reference chain: sample.jackson.Dto["list"])

    3 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

      Problem deserializing property 'c' (expected type: [simple type, class com.fasterxml.jackson.failing.Polymorphic1311Test$C]; actual type: com.fasterxml.jackson.failing.Polymorphic1311Test$B), problem: Can not set com.fasterxml.jackson.failing.Polymorphic1311Test$C field com.fasterxml.jackson.failing.Polymorphic1311Test$X.c to com.fasterxml.jackson.failing.Polymorphic1311Test$B at [Source: {"c":{ }}; line: 1, column: 8] (through reference chain: com.fasterxml.jackson.failing.X["c"])

      at com.fasterxml.jackson.databind.JsonMappingException.from()
    2. Jackson
      JsonMappingException.from
      1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:262)
      1 frame