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 2014/07/17 10:15:47 UTC
[Bug 56736] New: IllegalStateException after calling
AsyncContext.dispatch
https://issues.apache.org/bugzilla/show_bug.cgi?id=56736
Bug ID: 56736
Summary: IllegalStateException after calling
AsyncContext.dispatch
Product: Tomcat 8
Version: 8.0.9
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: marko.asplund@gmail.com
Requests timeout occasionally with the following error after calling
AsyncContext.dispatch:
10-Jul-2014 01:40:33.145 SEVERE [http-nio-8080-exec-2]
org.apache.catalina.connector.CoyoteAdapter.asyncDispatch Exception while
processing an asynchronous request
java.lang.IllegalStateException: Calling [asyncTimeout()] is not valid for a
request with Async state [DISPATCHING]
at
org.apache.coyote.AsyncStateMachine.asyncTimeout(AsyncStateMachine.java:267)
...
Happens also with the Java Blocking Connector (Http11Protocol).
Could not reproduce on Tomcat 7.0.54.
Can be reproduced with the sample project with the following request:
http://localhost:8080/servlet3-async/error2?fail=true
Sample code and more information about the test can be found here:
https://github.com/marko-asplund/servlet3-async
Verified on:
Ubuntu 14.04 / OpenJDK 1.7.0_55
Mac OS X 10.8.5 / Oracle Java 1.7.0_55
--
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
[Bug 56736] IllegalStateException after calling
AsyncContext.dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56736
marko asplund <ma...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marko.asplund@gmail.com
--
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
[Bug 56736] IllegalStateException after calling
AsyncContext.dispatch
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=56736
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
This has been fixed in 8.0.x for 8.0.11 onwards.
There were actually two problems here. The first was that calls to dispatch()
from threads started with AsyncContext.start(Runnable) were not being processed
until the AsyncContext timed out. The second was a rare timing issue made much
more likely by the previous bug.
The timing issue has also been fixed in 7.0.x for 7.0.56 onwards.
--
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