Testsuite: org.apache.coyote.http11.upgrade.TestUpgrade Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.044 sec ------------- Standard Error ----------------- 09-Nov-2024 10:06:06.829 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testMessagesBlocking] 09-Nov-2024 10:06:07.306 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-1"] 09-Nov-2024 10:06:07.342 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:07.342 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:07.421 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42855"] 09-Nov-2024 10:06:07.995 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42855"] 09-Nov-2024 10:06:07.995 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.008 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42855"] 09-Nov-2024 10:06:08.010 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-1-42855"] 09-Nov-2024 10:06:08.015 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSimpleUpgradeBlocking] 09-Nov-2024 10:06:08.016 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-2"] 09-Nov-2024 10:06:08.020 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.020 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.027 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34139"] 09-Nov-2024 10:06:08.035 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34139"] 09-Nov-2024 10:06:08.036 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.038 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34139"] 09-Nov-2024 10:06:08.038 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-2-34139"] 09-Nov-2024 10:06:08.041 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testMessagesNonBlocking] 09-Nov-2024 10:06:08.043 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-3"] 09-Nov-2024 10:06:08.049 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.049 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.053 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-3-44679"] 09-Nov-2024 10:06:08.559 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-3-44679"] 09-Nov-2024 10:06:08.559 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.562 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-3-44679"] 09-Nov-2024 10:06:08.563 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-3-44679"] 09-Nov-2024 10:06:08.565 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetWriteListenerTwice] 09-Nov-2024 10:06:08.567 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-4"] 09-Nov-2024 10:06:08.569 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.569 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.573 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37349"] 09-Nov-2024 10:06:08.577 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:107) at org.apache.coyote.http11.upgrade.TestUpgrade$SetWriteListenerTwice.init(TestUpgrade.java:450) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:951) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1685) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1266) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:330) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:470) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:406) 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:840) 09-Nov-2024 10:06:08.578 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37349"] 09-Nov-2024 10:06:08.581 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.582 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.12/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.12/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) java.base@17.0.12/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1674) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 09-Nov-2024 10:06:08.583 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37349"] 09-Nov-2024 10:06:08.584 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-4-37349"] 09-Nov-2024 10:06:08.586 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testFirstCallToOnWritePossible] 09-Nov-2024 10:06:08.588 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-5"] 09-Nov-2024 10:06:08.599 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.600 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.603 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34725"] 09-Nov-2024 10:06:08.605 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34725"] 09-Nov-2024 10:06:08.608 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.609 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.12/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.12/java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252) java.base@17.0.12/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:1674) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1182) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 09-Nov-2024 10:06:08.610 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34725"] 09-Nov-2024 10:06:08.611 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-5-34725"] 09-Nov-2024 10:06:08.614 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetNullReadListener] 09-Nov-2024 10:06:08.616 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-6"] 09-Nov-2024 10:06:08.626 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.626 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.639 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43159"] 09-Nov-2024 10:06:08.643 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:92) at org.apache.coyote.http11.upgrade.TestUpgrade$SetNullReadListener.init(TestUpgrade.java:380) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:951) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1685) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1266) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:330) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:470) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:406) 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:840) 09-Nov-2024 10:06:08.644 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43159"] 09-Nov-2024 10:06:08.647 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.648 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43159"] 09-Nov-2024 10:06:08.649 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-6-43159"] 09-Nov-2024 10:06:08.663 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetNullWriteListener] 09-Nov-2024 10:06:08.665 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-7"] 09-Nov-2024 10:06:08.680 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.681 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.685 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-7-46025"] 09-Nov-2024 10:06:08.688 SEVERE [http-nio2-127.0.0.1-auto-7-exec-6] 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:104) at org.apache.coyote.http11.upgrade.TestUpgrade$SetNullWriteListener.init(TestUpgrade.java:400) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:951) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1685) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1266) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:330) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:470) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:406) 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:840) 09-Nov-2024 10:06:08.689 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-7-46025"] 09-Nov-2024 10:06:08.689 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.692 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-7-46025"] 09-Nov-2024 10:06:08.693 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-7-46025"] 09-Nov-2024 10:06:08.697 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSimpleUpgradeNonBlocking] 09-Nov-2024 10:06:08.699 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-8"] 09-Nov-2024 10:06:08.715 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.715 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.719 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35609"] 09-Nov-2024 10:06:08.723 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35609"] 09-Nov-2024 10:06:08.723 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] java.io.EOFException at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:620) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:610) 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:840) java.io.EOFException at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:620) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:610) 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:840) java.io.EOFException at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:620) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2SocketWrapper$2.completed(Nio2Endpoint.java:610) 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:840) 09-Nov-2024 10:06:08.728 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [http-nio2-127.0.0.1-auto-8-exec-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.12/java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1115) java.base@17.0.12/java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1102) java.base@17.0.12/java.util.concurrent.ConcurrentHashMap$KeySetView.remove(ConcurrentHashMap.java:4626) app//org.apache.coyote.AbstractProtocol.removeWaitingProcessor(AbstractProtocol.java:447) app//org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:844) app//org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1685) app//org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1190) app//org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659) app//org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:63) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 09-Nov-2024 10:06:08.729 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35609"] 09-Nov-2024 10:06:08.730 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-8-35609"] 09-Nov-2024 10:06:08.733 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSetReadListenerTwice] 09-Nov-2024 10:06:08.735 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio2-127.0.0.1-auto-9"] 09-Nov-2024 10:06:08.741 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 09-Nov-2024 10:06:08.741 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.34-dev] 09-Nov-2024 10:06:08.748 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43675"] 09-Nov-2024 10:06:08.751 SEVERE [http-nio2-127.0.0.1-auto-9-exec-2] 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:95) at org.apache.coyote.http11.upgrade.TestUpgrade$SetReadListenerTwice.init(TestUpgrade.java:425) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:951) at org.apache.tomcat.util.net.Nio2Endpoint$SocketProcessor.doRun(Nio2Endpoint.java:1685) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) at org.apache.tomcat.util.net.AbstractEndpoint.processSocket(AbstractEndpoint.java:1266) at org.apache.tomcat.util.net.Nio2Endpoint.setSocketOptions(Nio2Endpoint.java:330) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:470) at org.apache.tomcat.util.net.Nio2Endpoint$Nio2Acceptor.completed(Nio2Endpoint.java:406) 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:840) 09-Nov-2024 10:06:08.751 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43675"] 09-Nov-2024 10:06:08.753 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 09-Nov-2024 10:06:08.755 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [Thread-14] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.base@17.0.12/jdk.internal.misc.Unsafe.park(Native Method) java.base@17.0.12/java.util.concurrent.locks.LockSupport.park(LockSupport.java:341) java.base@17.0.12/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionNode.block(AbstractQueuedSynchronizer.java:506) java.base@17.0.12/java.util.concurrent.ForkJoinPool.unmanagedBlock(ForkJoinPool.java:3465) java.base@17.0.12/java.util.concurrent.ForkJoinPool.managedBlock(ForkJoinPool.java:3436) java.base@17.0.12/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:1625) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1170) java.base@17.0.12/java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:899) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1062) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1122) java.base@17.0.12/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) java.base@17.0.12/java.lang.Thread.run(Thread.java:840) 09-Nov-2024 10:06:08.756 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43675"] 09-Nov-2024 10:06:08.758 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio2-127.0.0.1-auto-9-43675"] ------------- ---------------- --------------- Testcase: testMessagesBlocking took 1.257 sec Testcase: testSimpleUpgradeBlocking took 0.026 sec Testcase: testMessagesNonBlocking took 0.524 sec Testcase: testSetWriteListenerTwice took 0.021 sec Testcase: testFirstCallToOnWritePossible took 0.028 sec Testcase: testSetNullReadListener took 0.04 sec Testcase: testSetNullWriteListener took 0.042 sec Testcase: testSimpleUpgradeNonBlocking took 0.037 sec Testcase: testSetReadListenerTwice took 0.03 sec