users@jersey.java.net

VerifyError when using Jackson JSON support <was> Re: [Jersey] Jersey Web Application threw exception

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 23 Apr 2009 09:59:13 +0200

On Apr 22, 2009, at 7:59 PM, Patel, Sanjay wrote:

> I am getting following error. Anybody have any idea? Thanks.
>

What version of Jackson are you using?

My guess is the version of Jackson you are using is not the version
required by the Jersey json module.

This is the dependency in the jersey-json module:

                <dependency>
                        <groupId>org.codehaus.jackson</groupId>
                        <artifactId>jackson-asl</artifactId>
                        <version>0.9.4</version>
                        <scope>compile</scope>
                </dependency>

Paul.

>
> Servlet.service() for servlet MyProject Jersey Web Application threw
> exception
> java.lang.VerifyError: class
> com.sun.jersey.json.impl.writer.JacksonRootStrippingGenerator
> overrides
> final method setFeature.(Lorg/codehaus/jackson/JsonGenerator
> $Feature;Z)V
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>