Skip to content

NoSuchMethodError org.codehaus.jackson.type.JavaType.<init> #78

Closed
mfirry opened this Issue Aug 28, 2012 · 3 comments

4 participants

@mfirry
mfirry commented Aug 28, 2012

I get when trying to test my push test class with a simple main Exception in thread "main" java.lang.NoSuchMethodError: org.codehaus.jackson.type.JavaType.<init>(Ljava/lang/Class;)V

I thought I had some dependency version conflict but I only depend on jackson-mapper-asl 1.4.0 through apns 0.1.6

@robsonximenes

Facing the same problem...

@matzew
Collaborator
matzew commented Mar 23, 2013

I had the same, e.g. when running with vert.x framework (which has a different version of jackson as its dependency)

In my pom I simple did this:

...
    <dependency>
      <groupId>de.et42</groupId>
      <artifactId>apns</artifactId>
      <version>0.2.2</version>
    <exclusions>
        <exclusion>
            <groupId>org.codehaus.jackson</groupId>
            <artifactId>jackson-mapper-asl</artifactId>
        </exclusion>
    </exclusions>      
    </dependency>
...

HTH

@froh42
Collaborator
froh42 commented May 21, 2014

I'm closing this as there seems to be a workaround. I'm also not agains #100 (remove jackson) but we'd need something lightweight instead.

@froh42 froh42 closed this May 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.