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
A NullPointerException occurs because the JsonCreator is returning null. This should be handled more gracefully by throwing a Jackson-specific exception that details the deserialized bean is being returned as null.
java.lang.NullPointerException
at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:342)
at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1071)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:268)
at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:124)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2098)
at com.test.JsonTest.testJsonEntityWithBlankType(JsonTest.java:19)
The text was updated successfully, but these errors were encountered:
Using jackson-databind-2.3.3...
Created a Jackson annotated POJO that uses a JsonCreator to deserialize from JSON to the Java object.
Next, I attempted to deserialize a JSON string using the creator above.
A NullPointerException occurs because the JsonCreator is returning null. This should be handled more gracefully by throwing a Jackson-specific exception that details the deserialized bean is being returned as null.
The text was updated successfully, but these errors were encountered: