Bug 65571 - ClientAbortException in Tomcat 9.0.50 and 9.0.52
Summary: ClientAbortException in Tomcat 9.0.50 and 9.0.52
Status: RESOLVED WONTFIX
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Util (show other bugs)
Version: 9.0.50
Hardware: PC All
: P2 normal (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-14 19:08 UTC by sutharvismay
Modified: 2022-03-29 18:20 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sutharvismay 2021-09-14 19:08:22 UTC
Hi, I am getting below exception when I upgrade to 9.0.50 or 9.0.52.
I have looked at this bug https://bz.apache.org/bugzilla/show_bug.cgi?id=65368
I wonder if the fix is also needed on the server side too. 
Also, If I revert back to 9.0.48 then I'm not seeing this exception.

Caused by: java.io.IOException: Unable to wrap data, invalid status [CLOSED]
at org.apache.tomcat.util.net.SecureNioChannel.write(SecureNioChannel.java:819) ~[tomcat-coyote.jar:9.0.50]
at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioEndpoint.java:1364) ~[tomcat-coyote.jar:9.0.50]
at org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBase.java:766) ~[tomcat-coyote.jar:9.0.50]
at org.apache.tomcat.util.net.SocketWrapperBase.flushBlocking(SocketWrapperBase.java:719) ~[tomcat-coyote.jar:9.0.50]
at org.apache.tomcat.util.net.SocketWrapperBase.flush(SocketWrapperBase.java:709) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.http11.Http11OutputBuffer$SocketOutputBuffer.flush(Http11OutputBuffer.java:573) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.http11.filters.IdentityOutputFilter.flush(IdentityOutputFilter.java:117) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.http11.Http11OutputBuffer.flush(Http11OutputBuffer.java:221) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.http11.Http11Processor.flush(Http11Processor.java:1205) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.AbstractProcessor.action(AbstractProcessor.java:402) ~[tomcat-coyote.jar:9.0.50]
at org.apache.coyote.Response.action(Response.java:209) ~[tomcat-coyote.jar:9.0.50]
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:306) ~[catalina.jar:9.0.50]

Regards,
Vismay
Comment 1 Mark Thomas 2021-09-16 07:47:01 UTC
There is not enough information provided in this report for the Tomcat community to investigate.

As a minimum we need:
- the full stack trace
- a description of what triggered the issue
- the steps to reproduce this issue from a clean install of the latest 9.0.x release (9.0.53 as I write this).

Without the above information this issue will eventually be resolved as WONTFIX.
Comment 2 sutharvismay 2021-10-05 21:33:02 UTC
I'm working on reproducing this behavior. I have a following question.

https://github.com/apache/tomcat/blob/main/java/org/apache/tomcat/util/net/SecureNioChannel.java#L794

This line check for whether line is closed or not. Shouldn't we receive IOException for closing string and not wrap fail string. As per the stack trace we had status is CLOSED.
Comment 3 Mark Thomas 2021-10-06 06:39:52 UTC
(In reply to sutharvismay from comment #2)
> Shouldn't we receive
> IOException for closing string and not wrap fail string. As per the stack
> trace we had status is CLOSED.

No. The closing and closed flags track the status of a normal, server initiated close. You are seeing the result of what looks like an unexpected - possibly client initiated - close.
Comment 4 Mark Thomas 2021-11-24 18:32:04 UTC
Ping. We still need the information listed in comment #1
Comment 5 sutharvismay 2021-12-07 15:01:27 UTC
I'm still working on reproducing this error. It's very important for us to reproduce and report it to you.
Comment 6 Mark Thomas 2022-03-15 07:56:47 UTC
It has now been six months since this report was opened and none of the information requested in comment #1 has been provided. Therefore, I intend to resolve this issue as WONTFIX when I next review the open bugs prior to a release.
Comment 7 Mark Thomas 2022-03-29 18:20:18 UTC
Resolving as WONTFIX as per my previous comment.

Please feel free to re-open this issue once you have the steps to reproduce it from a clean install of the latest version of a supported Tomcat branch.