Getting error in jackson library code

馋奶兔 提交于 2019-12-08 17:03:47

问题


We are using dropwizard version 0.6.3. When we try to upgrade version 0.7.0, we are getting this error on service start.

Exception in thread "main" java.lang.VerifyError: class com.fasterxml.jackson.module.afterburner.deser.SuperSonicBeanDeserializer overrides final method deserialize.(Lcom/fasterxml/jackson/core/JsonParser;Lcom/fasterxml/jackson/databind/DeserializationContext;)Ljava/lang/Object;

Tried searching, didn't get any solution. When i looked into SuperSonicBeanDeserializer class, it has one override method. But the class SuperSonicBeanDeserializer is final. I'm not sure how to resolve this problem. Any solution/suggestion, will help us lot.


回答1:


A look at the maven dependency tree should help find where the problem is:

mvn dependency:tree -Dverbose

Look for "omitted for conflict" within the results. You likely have a version of jackson-databind older than 2.3.0 that is overriding the version in Dropwizard 0.7.



来源:https://stackoverflow.com/questions/23720251/getting-error-in-jackson-library-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!