https://bz.apache.org/bugzilla/show_bug.cgi?id=68696
Bug ID: 68696
Summary: Tomcat throws ClientAbortException:
java.io.IOException: Broken pipe even the client
request is complete successfully
Product: Tomcat 9
Version: 9.0.83
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: -----
We are using async request. Occasionally, after out tomcat server finishes
processing the client request, it calls asyncResponse.resume() and we can
confirm that the client received response with http code 200. However, tomcat
throws:
* "Exception Processing ErrorPage[errorCode=0, location=/ext/error]
* org.apache.catalina.connector.ClientAbortException: java.io.IOException:
Broken pipe
* at
org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:309)
* at
org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:271)
* at
org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputStream.java:120)
* at
java.base/java.io.FilterOutputStream.flush(FilterOutputStream.java:153)
* at
com.fasterxml.jackson.core.json.UTF8JsonGenerator.flush(UTF8JsonGenerator.java:1205)
* at
com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:1063)
* at
org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.writeInternal(AbstractJackson2HttpMessageConverter.java:456)
Then:
* "Exception while processing an asynchronous request
* java.lang.IllegalStateException: Calling [asyncComplete()] is not valid for a
request with Async state [COMPLETING]
* at
org.apache.coyote.AsyncStateMachine.asyncComplete(AsyncStateMachine.java:343)
Then:
* :"Error reading request, ignored
* java.lang.NullPointerException: Cannot invoke
\"org.apache.catalina.Context.bind(boolean, java.lang.ClassLoader)\" because
\"this.context\" is null
* at
org.apache.catalina.core.AsyncContextImpl.fireOnComplete(AsyncContextImpl.java:101)
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]