Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw exception after upgrade to 2.10 #2511

Closed
Jack84283 opened this issue Oct 18, 2019 · 1 comment
Closed

Throw exception after upgrade to 2.10 #2511

Jack84283 opened this issue Oct 18, 2019 · 1 comment

Comments

@Jack84283
Copy link

We got an exception after upgrading to 2.10.

Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/core/exc/InputCoercionException
at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.createMapDeserializer(BasicDeserializerFactory.java:1376)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer2(DeserializerCache.java:384)
at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:349)
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:476)
at com.fasterxml.jackson.databind.ObjectMapper._findRootDeserializer(ObjectMapper.java:4389)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:4198)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3205)
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3173)

It used to work in 2.09 release.

Add new exception type InputCoercionException to be used for failed coercions like overflow for int .

In our project, we just try to covert the json to Map<String, Object>. I cannot see any overflow here.

Could you please check the issue?

Thanks,
Jack

@cowtowncoder
Copy link
Member

This is wrong repo -- I will need to close Issue Tracker here as this seems confusing.

But what you have is a wrong version of jackson-core in classpath: something older than 2.10.
Make sure to use same minor version of jackson-core as jackson-databind, that is, 2.10.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants