Testsuite: org.apache.coyote.http11.upgrade.TestUpgrade Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.053 sec ------------- Standard Error ----------------- 05-Jul-2024 18:31:30.609 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testMessagesBlocking] 05-Jul-2024 18:31:31.028 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 05-Jul-2024 18:31:31.105 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:31.105 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:31.241 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34677"] 05-Jul-2024 18:31:31.791 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34677"] 05-Jul-2024 18:31:31.791 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:31.804 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34677"] 05-Jul-2024 18:31:31.806 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-34677"] 05-Jul-2024 18:31:31.812 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSimpleUpgradeBlocking] 05-Jul-2024 18:31:31.814 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 05-Jul-2024 18:31:31.821 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:31.821 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:31.825 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46645"] 05-Jul-2024 18:31:31.828 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46645"] 05-Jul-2024 18:31:31.828 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:31.831 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46645"] 05-Jul-2024 18:31:31.831 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-46645"] 05-Jul-2024 18:31:31.834 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testMessagesNonBlocking] 05-Jul-2024 18:31:31.836 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 05-Jul-2024 18:31:31.838 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:31.839 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:31.842 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-3-41427"] 05-Jul-2024 18:31:32.348 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-3-41427"] 05-Jul-2024 18:31:32.348 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.351 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-3-41427"] 05-Jul-2024 18:31:32.352 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3-41427"] 05-Jul-2024 18:31:32.354 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetWriteListenerTwice] 05-Jul-2024 18:31:32.356 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 05-Jul-2024 18:31:32.358 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.358 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.361 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36095"] 05-Jul-2024 18:31:32.364 SEVERE [http-nio2-127.0.0.1-auto-4-exec-2] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored java.lang.IllegalArgumentException: It is illegal to call setWriteListener() more than once for the same upgraded connection at org.apache.coyote.http11.upgrade.UpgradeServletOutputStream.setWriteListener(UpgradeServletOutputStream.java:112) at org.apache.coyote.http11.upgrade.TestUpgrade$SetWriteListenerTwice.init(TestUpgrade.java:449) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:982) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1734) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1335) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:341) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:481) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:417) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129) at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.365 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36095"] 05-Jul-2024 18:31:32.365 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.367 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-6] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.368 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36095"] 05-Jul-2024 18:31:32.368 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-36095"] 05-Jul-2024 18:31:32.371 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testFirstCallToOnWritePossible] 05-Jul-2024 18:31:32.373 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 05-Jul-2024 18:31:32.378 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.378 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.381 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-35739"] 05-Jul-2024 18:31:32.390 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-35739"] 05-Jul-2024 18:31:32.390 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.392 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-8] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.392 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-35739"] 05-Jul-2024 18:31:32.394 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-35739"] 05-Jul-2024 18:31:32.396 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetNullReadListener] 05-Jul-2024 18:31:32.398 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 05-Jul-2024 18:31:32.400 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.400 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.403 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-46587"] 05-Jul-2024 18:31:32.406 SEVERE [http-nio2-127.0.0.1-auto-6-exec-2] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored java.lang.IllegalArgumentException: It is illegal to pass null to setReadListener() at org.apache.coyote.http11.upgrade.UpgradeServletInputStream.setReadListener(UpgradeServletInputStream.java:96) at org.apache.coyote.http11.upgrade.TestUpgrade$SetNullReadListener.init(TestUpgrade.java:379) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:982) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1734) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1335) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:341) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:481) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:417) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129) at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.406 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-46587"] 05-Jul-2024 18:31:32.407 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.408 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-46587"] 05-Jul-2024 18:31:32.409 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-46587"] 05-Jul-2024 18:31:32.410 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetNullWriteListener] 05-Jul-2024 18:31:32.412 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 05-Jul-2024 18:31:32.414 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.414 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.417 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-7-37933"] 05-Jul-2024 18:31:32.423 SEVERE [http-nio2-127.0.0.1-auto-7-exec-3] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored java.lang.IllegalArgumentException: It is illegal to pass null to setWriteListener() at org.apache.coyote.http11.upgrade.UpgradeServletOutputStream.setWriteListener(UpgradeServletOutputStream.java:108) at org.apache.coyote.http11.upgrade.TestUpgrade$SetNullWriteListener.init(TestUpgrade.java:399) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:982) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1734) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1335) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:645) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:621) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129) at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.424 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-7-37933"] 05-Jul-2024 18:31:32.424 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.426 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-7-37933"] 05-Jul-2024 18:31:32.427 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7-37933"] 05-Jul-2024 18:31:32.430 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSimpleUpgradeNonBlocking] 05-Jul-2024 18:31:32.431 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 05-Jul-2024 18:31:32.434 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.434 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.438 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38153"] 05-Jul-2024 18:31:32.441 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38153"] 05-Jul-2024 18:31:32.441 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.443 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-13] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.7/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341) java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:506) java.base@17.0.7/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3463) java.base@17.0.7/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3434) java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1623) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1170) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.444 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38153"] 05-Jul-2024 18:31:32.445 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-38153"] 05-Jul-2024 18:31:32.447 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetReadListenerTwice] 05-Jul-2024 18:31:32.449 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 05-Jul-2024 18:31:32.453 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 05-Jul-2024 18:31:32.453 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 05-Jul-2024 18:31:32.456 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41415"] 05-Jul-2024 18:31:32.460 SEVERE [http-nio2-127.0.0.1-auto-9-exec-3] org.apache.coyote.AbstractProtocol$ConnectionHandler.process Error reading request, ignored java.lang.IllegalArgumentException: It is illegal to call setReadListener() more than once for the same upgraded connection at org.apache.coyote.http11.upgrade.UpgradeServletInputStream.setReadListener(UpgradeServletInputStream.java:100) at org.apache.coyote.http11.upgrade.TestUpgrade$SetReadListenerTwice.init(TestUpgrade.java:424) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:982) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1734) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1335) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:341) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:481) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:417) at java.base/sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:129) at java.base/sun.nio.ch.Invoker$2.run(Invoker.java:221) at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113) at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) at java.base/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.460 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41415"] 05-Jul-2024 18:31:32.461 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 05-Jul-2024 18:31:32.462 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-15] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.7/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.7/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) java.base@17.0.7/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1672) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182) java.base@17.0.7/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.7/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.7/java.lang.Thread.run(Thread.java:833) 05-Jul-2024 18:31:32.463 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41415"] 05-Jul-2024 18:31:32.464 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-41415"] ------------- ---------------- --------------- Testcase: testMessagesBlocking took 1.36 sec Testcase: testSimpleUpgradeBlocking took 0.022 sec Testcase: testMessagesNonBlocking took 0.52 sec Testcase: testSetWriteListenerTwice took 0.017 sec Testcase: testFirstCallToOnWritePossible took 0.025 sec Testcase: testSetNullReadListener took 0.014 sec Testcase: testSetNullWriteListener took 0.019 sec Testcase: testSimpleUpgradeNonBlocking took 0.018 sec Testcase: testSetReadListenerTwice took 0.019 sec