Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by jonpeterson
, 1 year ago
via GitHub by cowtowncoder
, 1 year ago
BsonSerializer can only be used with BsonGenerator
com.fasterxml.jackson.core.JsonGenerationException: BsonSerializer can only be used with BsonGenerator	at de.undercouch.bson4jackson.serializers.BsonSerializer.serialize(BsonSerializer.java:37)	at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)	at com.fasterxml.jackson.databind.ObjectMapper.writeValue(ObjectMapper.java:2436)	at com.fasterxml.jackson.databind.util.TokenBuffer.writeObject(TokenBuffer.java:849)	at com.fasterxml.jackson.databind.util.TokenBuffer.copyCurrentEvent(TokenBuffer.java:1006)	at com.fasterxml.jackson.databind.util.TokenBuffer.copyCurrentStructure(TokenBuffer.java:1048)	at com.fasterxml.jackson.databind.jsontype.impl.AsPropertyTypeDeserializer.deserializeTypedFromObject(AsPropertyTypeDeserializer.java:97)	at com.fasterxml.jackson.databind.deser.AbstractDeserializer.deserializeWithType(AbstractDeserializer.java:142)	at com.fasterxml.jackson.databind.deser.impl.TypeWrappedDeserializer.deserialize(TypeWrappedDeserializer.java:42)	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3788)	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2872)	at com.fasterxml.jackson.databind.ObjectMapper$readValue$1.call(Unknown Source)	at so.run(so.groovy:27)