https://bz.apache.org/bugzilla/show_bug.cgi?id=67235
Bug ID: 67235
Summary: NPE (NullPointerException) occurs in
AsyncContextImpl.decrementInProgressAsyncCount after
version 10.1.12.
Product: Tomcat 10
Version: unspecified
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Servlet
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ------
The error log "java.lang.NullPointerException: Cannot invoke
'org.apache.catalina.Context.decrementInProgressAsyncCount()' because
'this.context' is null" occurs in
AsyncContextImpl.decrementInProgressAsyncCount when using Tomcat version
10.1.12 and later. This issue occurs when using SSE (Server-Sent Events).
Specifically, it always happens when the client terminates the connection
first, and the server then tries to send data. The issue occurs in both
versions 10.1.12 and 10.1.13, but it does not occur in version 10.1.11.
Below is the attached stack trace.
```
java.lang.NullPointerException: Cannot invoke
"org.apache.catalina.Context.decrementInProgressAsyncCount()" because
"this.context" is null
at
org.apache.catalina.core.AsyncContextImpl.decrementInProgressAsyncCount(AsyncContextImpl.java:441)
at
org.apache.coyote.AsyncStateMachine.asyncPostProcess(AsyncStateMachine.java:295)
at
org.apache.coyote.AbstractProcessor.asyncPostProcess(AbstractProcessor.java:197)
at
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:78)
at
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:894)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1740)
at
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
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.base/java.lang.Thread.run(Thread.java:833)
```
--
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]