users@jersey.java.net

Re: [Jersey] jersey 1.1.5.1 Servlet Request Illegal State

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Wed, 14 Apr 2010 16:53:57 +0200

Hi Patrick

Can you send a reproducible test case? Have you tried on Tomcat 6?

What methods were you calling on ServletRequest?

I just tried with Tomcat 6 and i can access the
ServletRequest.getMethod from the error page mapped to an exception
without any error.

Paul.

On Apr 14, 2010, at 3:48 PM, Patrick Sauts wrote:

> We might have found an issue with Jersey 1.1.5.1.
>
> Our Tomcat 5.5.x web.xml specify :
> <error-page>
> <exception-type>java.lang.Exception</exception-type>
> <location>/exceptionGesture/index.jsp</location>
> </error-page>
> Our rest resources throw exceptions that have to be processed in the
> jsp declared above.
> Tha jsp does some operations that test the content of the
> ServletRequest.
> But with jersey 1.1.5.1 the ServletRequest is in an Illegal State.
> It works fine with Jersey 1.1.3ea.
>
> Thank you.
>
> Patrick.
>
>
>