https://bz.apache.org/bugzilla/show_bug.cgi?id=63816

            Bug ID: 63816
           Summary: java.lang.IllegalStateException: Calling
                    [asyncMustError()] is not valid for a request with
                    Async state [STARTING]
           Product: Tomcat 9
           Version: 9.0.22
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: a701...@gmail.com
  Target Milestone: -----

After starting async processing request.startAsync() for the request a
background thread invokes the response write functions. Sometimes when IO
errors happen I get the exception below.


java.lang.IllegalStateException: Calling [asyncMustError()] is not valid for a
request with Async state [STARTING]
java.lang.IllegalStateException: Calling [asyncMustError()] is not valid for a
request with Async state [STARTING]
        at
org.apache.coyote.AsyncStateMachine.asyncMustError(AsyncStateMachine.java:421)
        at
org.apache.coyote.AbstractProcessor.setErrorState(AbstractProcessor.java:118)
        at
org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:424)
        at org.apache.coyote.Response.action(Response.java:211)
        at
org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.doWrite(Http11OutputBuffer.java:546)
        at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:112)
        at
org.apache.coyote.http11.Http11OutputBuffer.doWrite(Http11OutputBuffer.java:190)
        at org.apache.coyote.Response.doWrite(Response.java:599)
        at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:329)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to