dev@jersey.java.net

Re: [Jersey] null pointer exception on resource class access HttpServletRequest?

From: James Russo <jr_at_halo3.net>
Date: Wed, 21 Apr 2010 15:05:25 -0400

Paul,

        I've logged 514. Not sure of fix though, perhaps if null the request should stop right there with a WebApplicationException 500?

https://jersey.dev.java.net/issues/show_bug.cgi?id=514

Thanks!

-jr

On Apr 21, 2010, at 2:57 PM, Paul Sandoz wrote:

>
> On Apr 21, 2010, at 8:22 PM, James Russo wrote:
>
>>
>> On Apr 21, 2010, at 10:46 AM, Paul Sandoz wrote:
>>
>>> Hi James,
>>>
>>> First time i have seen that type of error. Not sure why it occurs. It is rather fundamental and implies that Jersey's context is set up with a null request and I do not see how that can happen (see the code at the end of the email).
>>
>> My fault. I figured it out. I was inadvertently returning null from a resourceFilter. Perhaps having some assertion or a log message if that happens?
>>
>
> Ah yes, my fault too! Can you log an issue and i will fix it?
>
> Paul.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: dev-help_at_jersey.dev.java.net
>