com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator

GitHub | jonpeterson | 3 months ago
  1. 0

    Error when trying to deserialize BSON into a EXISTING_PROPERTY polymorphic class

    GitHub | 3 months ago | jonpeterson
    com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator
  2. 0

    GitHub comment 67#244161836

    GitHub | 3 months ago | cowtowncoder
    com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator
  3. 0

    Combination of JsonUnwrapped and JsonTypeInfo(include=As.WRAPPER_OBJECT) fails

    GitHub | 4 years ago | pgelinas
    com.fasterxml.jackson.core.JsonGenerationException: Can not start an object, expecting field name
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    @JsonTypeInfo (de)serialization fails for polymorphic array types and external property

    GitHub | 2 years ago | dashorst
    com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value
  6. 0

    GitHub comment 21872#263716278

    GitHub | 5 days ago | jasontedor
    com.fasterxml.jackson.core.JsonGenerationException: Can not write a field name, expecting a value

    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.core.JsonGenerationException

      BsonSerializer can only be used with BsonGenerator

      at de.undercouch.bson4jackson.serializers.BsonSerializer.serialize()
    2. bson4jackson
      BsonSerializer.serialize
      1. de.undercouch.bson4jackson.serializers.BsonSerializer.serialize(BsonSerializer.java:37)
      1 frame
    3. Jackson
      ObjectMapper$readValue$1.call
      1. com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)
      2. com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2436)
      3. com.fasterxml.jackson.databind.util.TokenBuffer.writeObject(TokenBuffer.java:849)
      4. com.fasterxml.jackson.databind.util.TokenBuffer.copyCurrentEvent(TokenBuffer.java:1006)
      5. com.fasterxml.jackson.databind.util.TokenBuffer.copyCurrentStructure(TokenBuffer.java:1048)
      6. com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:97)
      7. com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:142)
      8. com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:42)
      9. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3788)
      10. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2872)
      11. com.fasterxml.jackson.databind.ObjectMapper$readValue$1.call(Unknown Source)
      11 frames
    4. Unknown
      so.run
      1. so.run(so.groovy:27)
      1 frame