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/01/23 23:49:14 UTC

[Bug 56042] java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a request with Async state [MUST_DISPATCH]

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

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
The problem was in the ErrorReportValve. It was taking over if the response had
an error state and async had been started. As part of this it called
complete().

The issue was that if dispatch had been called (e.g. to generate a custom error
page in the app) the ErrorReportValve didn't let that happen. IN this case the
ErrorReportValve no longer takes over so the dispatch() target can handle the
error reporting. It will need to commit the response to stop the
ErrorReportValve taking over after the dispatch.

-- 
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