3

I've this error:

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;

I'm upgrading dropwizard from 0.6.2 to 0.7.1 version.

I'm able to compile without errors but when I run my app, I've the error above. I've already read this post: Getting error in jackson library code but without success.

How can I solve?

Community
  • 1
  • 1
CeccoCQ
  • 3,746
  • 12
  • 50
  • 81
  • Are you using any other libraries that include the `com.fasterxml.jackson.core` library? Such as aws-sdk, etc. – Xinzz Jul 16 '14 at 14:38
  • 1
    What does your POM look like? What was the result of running `mvn dependency:tree -Dverbose`? – condit Jul 16 '14 at 14:38
  • I've found the error, there is a conflict with AWS Amazon library. I've excluded jackson-annotation into my maven repository. – CeccoCQ Jul 17 '14 at 08:20

1 Answers1

4

As said in my comment, if you use any other libraries that include com.fasterxml.jackson.core, the versions may conflict. To resolve this, put an exclude statement around the conflicting library. Using the aws-sdk library I mentioned in my comment, the exclude would look roughly something like this:

<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>aws-java-sdk</artifactId>
    <version>1.7.12</version>
    <exclusions>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
        </exclusion>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
        </exclusion>
        <exclusion>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
        </exclusion>
    </exclusions>
</dependency>
Xinzz
  • 2,242
  • 1
  • 13
  • 26