Facing java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/exc/StreamConstraintsException #4239
Replies: 4 comments 5 replies
-
You have a version mismatch between |
Beta Was this translation helpful? Give feedback.
-
These are the version in lib folder, Am I missing anything here? |
Beta Was this translation helpful? Give feedback.
-
It is possible to understand which JAR is being used is being used at runtime ? |
Beta Was this translation helpful? Give feedback.
-
Thanks @cowtowncoder @JooHyukKim |
Beta Was this translation helpful? Give feedback.
-
java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/exc/StreamConstraintsException
at com.fasterxml.jackson.databind.node.JsonNodeFactory.objectNode(JsonNodeFactory.java:353)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:100)
at com.fasterxml.jackson.databind.deser.std.JsonNodeDeserializer.deserialize(JsonNodeDeserializer.java:25)
at com.fasterxml.jackson.databind.deser.DefaultDeserializationContext.readRootValue(DefaultDeserializationContext.java:323)
at com.fasterxml.jackson.databind.ObjectMapper._readTreeAndClose(ObjectMapper.java:4867)
at com.fasterxml.jackson.databind.ObjectMapper.readTree(ObjectMapper.java:3252)
Can you please let me know what can be the reason for it and how can I avoid this issue ?
Suspected Code
ObjectMapper mapper = new ObjectMapper();
mapper.readTree(new File(path)
Beta Was this translation helpful? Give feedback.
All reactions