Manikandan
Manikandan

Reputation: 3165

Getting error in jackson library code

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.

Upvotes: 8

Views: 3781

Answers (1)

alindsey
alindsey

Reputation: 101

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.

Upvotes: 10

Related Questions