You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/11/28 00:04:56 UTC

DO NOT REPLY [Bug 50353] Calling asyncContext.getResponse() returns null after async timeout

https://issues.apache.org/bugzilla/show_bug.cgi?id=50353

--- Comment #1 from Sylvain Laurent <sy...@gmail.com> 2010-11-27 18:04:53 EST ---
Same behavior with getRequest() : it returns null. 
This leads to a NPE if asyncContext.dispatch() is called after the timeout :


java.lang.NullPointerException
    at
org.apache.catalina.core.AsyncContextImpl.dispatch(AsyncContextImpl.java:127)
    at test.MyServlet$1.run(MyServlet.java:42)
    at
org.apache.catalina.core.AsyncContextImpl$RunnableWrapper.run(AsyncContextImpl.java:439)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:680)

(with a variation of the above example)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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