dev@jersey.java.net

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

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 21 Apr 2010 20:57:00 +0200

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.