Testsuite: org.apache.tomcat.websocket.TestWsRemoteEndpoint Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 38.271 sec ------------- Standard Error ----------------- 30-Jul-2024 16:24:58.953 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterZeroLengthAnnotation] 30-Jul-2024 16:25:00.659 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 30-Jul-2024 16:25:00.767 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:00.768 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:00.952 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-43469"] 30-Jul-2024 16:25:01.145 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-43469"] 30-Jul-2024 16:25:01.166 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.192 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-43469"] 30-Jul-2024 16:25:01.207 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-43469"] 30-Jul-2024 16:25:01.214 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterAnnotation] 30-Jul-2024 16:25:01.216 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 30-Jul-2024 16:25:01.217 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.218 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.227 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-40013"] 30-Jul-2024 16:25:01.333 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-40013"] 30-Jul-2024 16:25:01.335 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.341 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [ROOT] appears to have started a thread named [http-nio-127.0.0.1-auto-2-exec-3] 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.LinkedBlockingQueue.take(LinkedBlockingQueue.java:435) app//org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:117) app//org.apache.tomcat.util.threads.TaskQueue.take(TaskQueue.java:33) app//org.apache.tomcat.util.threads.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1114) app//org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1175) 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.7/java.lang.Thread.run(Thread.java:833) 30-Jul-2024 16:25:01.343 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-40013"] 30-Jul-2024 16:25:01.346 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-40013"] 30-Jul-2024 16:25:01.349 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterProgrammatic] 30-Jul-2024 16:25:01.351 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-3"] 30-Jul-2024 16:25:01.352 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.353 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.369 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-3-43309"] 30-Jul-2024 16:25:01.440 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-3-43309"] 30-Jul-2024 16:25:01.441 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.445 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-3-43309"] 30-Jul-2024 16:25:01.450 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-3-43309"] 30-Jul-2024 16:25:01.458 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testStreamProgrammatic] 30-Jul-2024 16:25:01.459 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-4"] 30-Jul-2024 16:25:01.460 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.460 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.466 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-4-41649"] 30-Jul-2024 16:25:01.489 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-4-41649"] 30-Jul-2024 16:25:01.493 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.502 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-4-41649"] 30-Jul-2024 16:25:01.515 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-4-41649"] 30-Jul-2024 16:25:01.519 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterErrorProgrammatic] 30-Jul-2024 16:25:01.522 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-5"] 30-Jul-2024 16:25:01.524 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.525 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.537 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-5-46557"] 30-Jul-2024 16:25:01.552 SEVERE [http-nio-127.0.0.1-auto-5-exec-2] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError No error handling configured for [org.apache.tomcat.websocket.TesterEchoServer$WriterError] and the following error occurred java.lang.RuntimeException at org.apache.tomcat.websocket.TesterEchoServer$WriterError.echoTextMessage(TesterEchoServer.java:200) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase.onMessage(PojoMessageHandlerWholeBase.java:102) at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(WsFrameBase.java:390) at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(WsFrameServer.java:130) at org.apache.tomcat.websocket.WsFrameBase.processDataText(WsFrameBase.java:484) at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:284) at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:130) at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:85) at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(WsFrameServer.java:184) at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(WsFrameServer.java:164) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:152) at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:60) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:57) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) 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) 30-Jul-2024 16:25:01.553 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-5-46557"] 30-Jul-2024 16:25:01.556 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.558 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-5-46557"] 30-Jul-2024 16:25:01.562 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-5-46557"] 30-Jul-2024 16:25:01.564 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterZeroLengthProgrammatic] 30-Jul-2024 16:25:01.565 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-6"] 30-Jul-2024 16:25:01.566 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.566 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.571 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-6-41637"] 30-Jul-2024 16:25:01.580 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-6-41637"] 30-Jul-2024 16:25:01.581 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.582 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-6-41637"] 30-Jul-2024 16:25:01.584 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-6-41637"] 30-Jul-2024 16:25:01.586 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testStreamAnnotation] 30-Jul-2024 16:25:01.587 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-7"] 30-Jul-2024 16:25:01.587 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:01.587 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:01.594 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-7-46823"] 30-Jul-2024 16:25:01.620 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-7-46823"] 30-Jul-2024 16:25:01.622 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:01.625 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-7-46823"] 30-Jul-2024 16:25:36.678 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-7-46823"] 30-Jul-2024 16:25:36.679 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testWriterErrorAnnotation] 30-Jul-2024 16:25:36.681 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-8"] 30-Jul-2024 16:25:36.681 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 30-Jul-2024 16:25:36.682 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/10.1.28-dev] 30-Jul-2024 16:25:36.697 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-8-34909"] 30-Jul-2024 16:25:36.707 SEVERE [http-nio-127.0.0.1-auto-8-exec-2] org.apache.tomcat.websocket.pojo.PojoEndpointBase.onError No error handling configured for [org.apache.tomcat.websocket.TesterEchoServer$WriterError] and the following error occurred java.lang.RuntimeException at org.apache.tomcat.websocket.TesterEchoServer$WriterError.echoTextMessage(TesterEchoServer.java:200) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.apache.tomcat.websocket.pojo.PojoMessageHandlerWholeBase.onMessage(PojoMessageHandlerWholeBase.java:102) at org.apache.tomcat.websocket.WsFrameBase.sendMessageText(WsFrameBase.java:390) at org.apache.tomcat.websocket.server.WsFrameServer.sendMessageText(WsFrameServer.java:130) at org.apache.tomcat.websocket.WsFrameBase.processDataText(WsFrameBase.java:484) at org.apache.tomcat.websocket.WsFrameBase.processData(WsFrameBase.java:284) at org.apache.tomcat.websocket.WsFrameBase.processInputBuffer(WsFrameBase.java:130) at org.apache.tomcat.websocket.server.WsFrameServer.onDataAvailable(WsFrameServer.java:85) at org.apache.tomcat.websocket.server.WsFrameServer.doOnDataAvailable(WsFrameServer.java:184) at org.apache.tomcat.websocket.server.WsFrameServer.notifyDataAvailable(WsFrameServer.java:164) at org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.upgradeDispatch(WsHttpUpgradeHandler.java:152) at org.apache.coyote.http11.upgrade.UpgradeProcessorInternal.dispatch(UpgradeProcessorInternal.java:60) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:57) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:904) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1741) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52) 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) 30-Jul-2024 16:25:36.711 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-8-34909"] 30-Jul-2024 16:25:36.714 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 30-Jul-2024 16:25:36.715 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-8-34909"] 30-Jul-2024 16:25:36.717 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-8-34909"] ------------- ---------------- --------------- Testcase: testWriterZeroLengthAnnotation took 2.623 sec Testcase: testWriterAnnotation took 0.134 sec Testcase: testWriterProgrammatic took 0.106 sec Testcase: testStreamProgrammatic took 0.062 sec Testcase: testWriterErrorProgrammatic took 0.046 sec Testcase: testWriterZeroLengthProgrammatic took 0.022 sec Testcase: testStreamAnnotation took 35.094 sec Testcase: testWriterErrorAnnotation took 0.039 sec