You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I'm trying to deserialize JSON into TreeNode, I'm getting this exception:
java.lang.NullPointerException
at com.fasterxml.jackson.databind.type.ResolvedRecursiveType.getBindings(ResolvedRecursiveType.java:42)
at com.fasterxml.jackson.databind.type.TypeFactory._fromAny(TypeFactory.java:1243)
at com.fasterxml.jackson.databind.type.TypeFactory._fromParamType(TypeFactory.java:1452)
at com.fasterxml.jackson.databind.type.TypeFactory._fromAny(TypeFactory.java:1221)
at com.fasterxml.jackson.databind.type.TypeFactory._resolveSuperInterfaces(TypeFactory.java:1367)
at com.fasterxml.jackson.databind.type.TypeFactory._fromClass(TypeFactory.java:1314)
at com.fasterxml.jackson.databind.type.TypeFactory.constructSpecializedType(TypeFactory.java:364)
at com.fasterxml.jackson.databind.module.SimpleAbstractTypeResolver.findTypeMapping(SimpleAbstractTypeResolver.java:80)
at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory._mapAbstractType2(BasicDeserializerFactory.java:230)
at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.mapAbstractType(BasicDeserializerFactory.java:205)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:322)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:264)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:244)
at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:142)
at com.fasterxml.jackson.databind.DeserializationContext.findRootValueDeserializer(DeserializationContext.java:477)
at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:4191)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4006)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3043)
at ....................
The text was updated successfully, but these errors were encountered:
First of all, thank you for reporting this. And second, yes, this looks like a dup of #2395.
Unfortunately only observable when a module is included that sets TypeModifier (and resolved a recursive type variable), which is why test suite of jackson-databind did not catch it -- and secondly, because micro-patch only built of jackson-databind, test suites of modules that would have caught it (java8), were not exercised either.
Versions:
jackson-databind
: 2.9.9.2Java: 8
I have Jackson module like this:
When I'm trying to deserialize JSON into
TreeNode
, I'm getting this exception:The text was updated successfully, but these errors were encountered: