quality@glassfish.java.net

Re: [Question] How to use Servlet3.0 with JavaEE6]

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Wed, 14 Jan 2009 09:07:48 -0800

Hi Jack,

On 01/13/09 22:08, Captain Jack Sparrow wrote:
> Hi Judy and Jan
>
> Thank you for your information.
>
>
>>> This has been fixed. Fix will be available in tomorrow's promotion.
>>>
> That sounds great!!
> I can can hardly wait tomorrow. :-)
>
> And Judy gives me a information of Java SE6 for Mac OS X.
>
> What a wonderful day for me, today is!
>
> Drink up hier tie's Yo- Ho- !
>

I would like to point out that the StackOverflowError was seen
only when using this variant of

    ServletRequest#startAsync(ServletRequest, ServletResponse)

as you did in your code, but not when using its zero-arg version.

The intent of

    ServletRequest#startAsync(ServletRequest, ServletResponse)

is to preserve any request/response wrappers that may have been
applied by filters "on the way in" for the duration of the async
operation, but since this does not seem to be case with your webapp,
you might as well use the zero-arg version.

Just thought I'd point this out.

Thanks!

Jan