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

            Bug ID: 66276
           Summary: Intermittent ClassCastException with HTTP/2 streams
           Product: Tomcat 9
           Version: 9.0.55
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: -----

Overview: When Tomcat is configured to use HTTP/2, the following errors will
occasionally be seen in the application logs:

2022-09-04 09:28:59.481 FATAL   [http-exec-36] Unhandled exception in thread
"http-exec-36": java.lang.ClassCastException:
org.apache.coyote.http2.RecycledStream cannot be cast to
org.apache.coyote.http2.Stream
java.lang.ClassCastException: org.apache.coyote.http2.RecycledStream cannot be
cast to org.apache.coyote.http2.Stream
        at
org.apache.coyote.http2.AbstractNonZeroStream.rePrioritise(AbstractNonZeroStream.java:79)
        at
org.apache.coyote.http2.Http2UpgradeHandler.reprioritise(Http2UpgradeHandler.java:1651)
        at
org.apache.coyote.http2.Http2AsyncUpgradeHandler.reprioritise(Http2AsyncUpgradeHandler.java:41)
        at
org.apache.coyote.http2.Http2Parser.readPriorityFrame(Http2Parser.java:299)
        at
org.apache.coyote.http2.Http2AsyncParser$FrameCompletionHandler.completed(Http2AsyncParser.java:254)
        at
org.apache.coyote.http2.Http2AsyncParser$FrameCompletionHandler.completed(Http2AsyncParser.java:164)
        at
org.apache.tomcat.util.net.SocketWrapperBase$VectoredIOCompletionHandler.completed(SocketWrapperBase.java:1113)
        at
org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper$NioOperationState.run(NioEndpoint.java:1634)
        at
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
        at
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
        at
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:750)


Steps to reproduce: Enable HTTP/2 connections, and view the application logs
after it has been running for a period of time.

Actual Results: No obvious affect on the application. Appears to be an
intermittent error.

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

Reply via email to