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

GitHub | jonpeterson | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Error when trying to deserialize BSON into a EXISTING_PROPERTY polymorphic class

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

    GitHub comment 67#244161836

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

    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