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 14:22:48 -0400

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?

thanks!

-jr