users@jersey.java.net

[Jersey] Re: Need help with weird error with jersey and jackson

From: Tatu Saloranta <tsaloranta_at_gmail.com>
Date: Thu, 25 Oct 2012 16:53:13 -0700

On Thu, Oct 25, 2012 at 3:50 PM, Saroj Kumar <sarojk_at_gmail.com> wrote:
> Thanks Glen for your inputs
>
> Problem is random. I have not been able to reproduce it consistently.
> Sometimes, we get this error but not all the time.
>
> We are using JAXB for converting Java objects into JSON. I don't know if
> jaxb support will use Jackson or Jettison/
>
> Our web.xml is like this
>
> <servlet>
> <servlet-name>Jersey Spring Web Application</servlet-name>
>
> <servlet-class>com.sun.jersey.spi.spring.container.servlet.SpringServlet</servlet-class>
>
> <init-param>
>
> <param-name>com.sun.ws.rest.config.property.resourceConfigClass</param-name>
>
> <param-value>com.sun.ws.rest.api.core.PackagesResourceConfig</param-value>
> </init-param>
> <load-on-startup>2</load-on-startup>
> </servlet>

By default I think Jersey uses Jettison, for what that is worth.

The problem does not ring a bell, i.e. it is not a known problem for Jackson.
However, Jersey 1.1.5 probably uses a rather old versions of libraries
so there is also a possibility that upgrade would help here. I would
guess that the first suggestion by Jersey team would also be upgrade.

-+ Tatu +-