Ah.. thanks. I thought 1.1.0-ea should be newer than 1.1.0-ea-SNAPSHOT :)
Paul Sandoz wrote:
>
> Hi,
>
> This is fixed in 1.1.0-ea-SNAPSHOT.
>
> See issue 298:
>
> https://jersey.dev.java.net/issues/show_bug.cgi?id=298
>
> Paul.
>
> On Jun 26, 2009, at 9:02 AM, testn wrote:
>
>>
>> I got this exception from time to time when trying to serialize
>> List<Person>.
>> Is it possible that there are some concurrency issue? It seems to
>> happen
>> only when there are more than one threads accessing Jersey.
>>
>>
>> java.lang.NullPointerException
>> at
>> com.sun.jersey.core.impl.provider.entity.Inflector
>> $Replacer.replacement(Inflector.java:851)
>> at
>> com
>> .sun
>> .jersey.core.impl.provider.entity.Inflector.pluralize(Inflector.java:
>> 519)
>> at
>> com
>> .sun
>> .jersey
>> .core
>> .provider
>> .jaxb
>> .AbstractListElementProvider
>> .getRootElementName(AbstractListElementProvider.java:252)
>> at
>> com
>> .sun
>> .jersey
>> .core
>> .impl
>> .provider
>> .entity.XMLListElementProvider.writeList(XMLListElementProvider.java:
>> 107)
>> at
>> com
>> .sun
>> .jersey
>> .core
>> .provider
>> .jaxb
>> .AbstractListElementProvider
>> .writeTo(AbstractListElementProvider.java:144)
>> at
>> com
>> .sun
>> .jersey.spi.container.ContainerResponse.write(ContainerResponse.java:
>> 254)
>> at
>> com
>> .sun
>> .jersey
>> .server
>> .impl
>> .application
>> .WebApplicationImpl._handleRequest(WebApplicationImpl.java:693)
>> at
>> com
>> .sun
>> .jersey
>> .server
>> .impl
>> .application
>> .WebApplicationImpl.handleRequest(WebApplicationImpl.java:616)
>> at
>> com
>> .sun
>> .jersey
>> .server
>> .impl
>> .application
>> .WebApplicationImpl.handleRequest(WebApplicationImpl.java:607)
>> at
>> com
>> .sun
>> .jersey.spi.container.servlet.WebComponent.service(WebComponent.java:
>> 309)
>> at
>> com
>> .sun
>> .jersey
>> .spi
>> .container.servlet.ServletContainer.service(ServletContainer.java:425)
>> at
>> com
>> .sun
>> .jersey
>> .spi
>> .container.servlet.ServletContainer.service(ServletContainer.java:590)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>> at
>> com
>> .sun
>> .grizzly.http.servlet.FilterChainImpl.doFilter(FilterChainImpl.java:
>> 188)
>> at
>> com
>> .sun
>> .grizzly
>> .http.servlet.FilterChainImpl.invokeFilterChain(FilterChainImpl.java:
>> 137)
>> at
>> com
>> .sun.grizzly.http.servlet.ServletAdapter.service(ServletAdapter.java:
>> 350)
>> at
>> com
>> .sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:
>> 165)
>> at
>> com
>> .sun
>> .grizzly
>> .tcp.http11.GrizzlyAdapterChain.service(GrizzlyAdapterChain.java:180)
>> at
>> com
>> .sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:
>> 165)
>> at
>> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
>> 749)
>> at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:
>> 657)
>> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:908)
>> at
>> com
>> .sun
>> .grizzly
>> .http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:161)
>> at
>> com
>> .sun
>> .grizzly
>> .DefaultProtocolChain
>> .executeProtocolFilter(DefaultProtocolChain.java:135)
>> at
>> com
>> .sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
>> 102)
>> at
>> com
>> .sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
>> 88)
>> at
>> com
>> .sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
>> at
>> com
>> .sun
>> .grizzly
>> .ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
>> at
>> com
>> .sun
>> .grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
>> at com.sun.grizzly.NIOContext.execute(NIOContext.java:510)
>> at
>> com
>> .sun
>> .grizzly
>> .SelectorHandlerRunner.handleSelectedKey(SelectorHandlerRunner.java:
>> 357)
>> at
>> com
>> .sun
>> .grizzly
>> .SelectorHandlerRunner.handleSelectedKeys(SelectorHandlerRunner.java:
>> 257)
>> at
>> com
>> .sun
>> .grizzly.SelectorHandlerRunner.doSelect(SelectorHandlerRunner.java:
>> 194)
>> at
>> com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:
>> 129)
>> at
>> com.sun.grizzly.util.FixedThreadPool
>> $BasicWorker.dowork(FixedThreadPool.java:379)
>> at
>> com.sun.grizzly.util.FixedThreadPool
>> $BasicWorker.run(FixedThreadPool.java:360)
>> at java.lang.Thread.run(Thread.java:619)
>>
>> --
>> View this message in context:
>> http://n2.nabble.com/Concurrency-issue--tp3160075p3160075.html
>> Sent from the Jersey mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
>> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
>
--
View this message in context: http://n2.nabble.com/Concurrency-issue--tp3160075p3160178.html
Sent from the Jersey mailing list archive at Nabble.com.