tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Violeta Georgieva <violet...@apache.org>
Subject Re: asyncError() is not valid while in Async state DISPATCHING
Date Mon, 26 Jun 2017 13:58:38 GMT
2017-06-26 16:35 GMT+03:00 Mark Thomas <markt@apache.org>:
>
> On 26/06/17 14:18, Violeta Georgieva wrote:
> > 2017-06-26 16:13 GMT+03:00 Mark Thomas <markt@apache.org>:
> >>
> >> On 23/06/17 14:47, Violeta Georgieva wrote:
> >>> 2017-06-13 15:44 GMT+03:00 Mark Thomas <markt@apache.org>:
> >>>> On 13/06/17 11:05, Violeta Georgieva wrote:
> >>>>> 2017-06-13 13:04 GMT+03:00 Violeta Georgieva <violetagg@apache.org>:
> >>
> >> <snip/>
> >>
> >>>>>> java.lang.NullPointerException: null
> >>>>
> >>>> Appears to be the same cause as above, but triggered at a different
> > point.
> >>>>
> >>>
> >>> What about at least not throw NPE?
> >>
> >> Which object is null? Since the stack trace is from a dev version, I'm
> >> not exactly sure where the null is in this case.
> >
> > The first thread makes a dispatch and clears the request and response
> >
https://github.com/apache/tomcat/blob/trunk/java/org/apache/catalina/core/AsyncContextImpl.java#L209
> >
> > the second thread handles the error and tries to set a status code
> >
https://github.com/apache/tomcat/blob/trunk/java/org/apache/catalina/core/AsyncContextImpl.java#L411
>
> This should be fixed in trunk. If this is sufficient, we can back-port.
>

I just tested it. I did not see any NPEs. Please back-port it.

Thanks,
Violeta

> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message