Testsuite: org.apache.tomcat.websocket.TestWsSessionSuspendResume Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 44.569 sec ------------- Standard Error ----------------- 08-Jul-2024 15:20:23.838 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSuspendThenClose] 08-Jul-2024 15:20:24.543 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-1"] 08-Jul-2024 15:20:24.586 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Jul-2024 15:20:24.586 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 08-Jul-2024 15:20:24.801 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-1-44643"] 08-Jul-2024 15:20:28.005 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-1-44643"] 08-Jul-2024 15:20:28.010 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 08-Jul-2024 15:20:28.025 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-1-44643"] 08-Jul-2024 15:20:28.032 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-1-44643"] 08-Jul-2024 15:20:28.038 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testSuspendResume] 08-Jul-2024 15:20:28.040 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-127.0.0.1-auto-2"] 08-Jul-2024 15:20:28.041 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 08-Jul-2024 15:20:28.041 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.92-dev] 08-Jul-2024 15:20:28.067 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-127.0.0.1-auto-2-44635"] 08-Jul-2024 15:20:28.157 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-nio-127.0.0.1-auto-2-44635"] 08-Jul-2024 15:20:28.158 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] java.io.IOException: java.nio.channels.ClosedChannelException at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlockInternal(WsRemoteEndpointImplBase.java:325) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:265) at org.apache.tomcat.websocket.WsSession.sendCloseMessage(WsSession.java:872) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:672) at org.apache.tomcat.websocket.WsSession.doClose(WsSession.java:639) at org.apache.tomcat.websocket.WsSession.close(WsSession.java:627) at org.apache.tomcat.websocket.WsWebSocketContainer.destroy(WsWebSocketContainer.java:1016) at org.apache.tomcat.websocket.server.WsContextListener.contextDestroyed(WsContextListener.java:46) at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4053) at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:4674) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1219) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1208) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:814) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1219) at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1208) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:814) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231) at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231) at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:923) at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:231) at org.apache.catalina.startup.Tomcat.stop(Tomcat.java:448) at org.apache.tomcat.websocket.WebSocketBaseTest.checkBackgroundProcessHasStopped(WebSocketBaseTest.java:48) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56) at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:61) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63) at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:329) at org.junit.runners.ParentRunner.access$100(ParentRunner.java:66) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:293) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.runners.ParentRunner$3.evaluate(ParentRunner.java:306) at org.junit.runners.ParentRunner.run(ParentRunner.java:413) at junit.framework.JUnit4TestAdapter.run(JUnit4TestAdapter.java:50) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1197) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1042) Caused by: java.nio.channels.ClosedChannelException at org.apache.tomcat.util.net.NioChannel$1.write(NioChannel.java:291) at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper$NioOperationState.run(NioEndpoint.java:1682) at org.apache.tomcat.util.net.SocketWrapperBase$OperationState.start(SocketWrapperBase.java:1077) at org.apache.tomcat.util.net.SocketWrapperBase.vectoredOperation(SocketWrapperBase.java:1496) at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:1422) at org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase.java:1393) at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doWrite(WsRemoteEndpointImplServer.java:171) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:520) at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlockInternal(WsRemoteEndpointImplBase.java:312) ... 58 more 08-Jul-2024 15:20:28.164 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-nio-127.0.0.1-auto-2-44635"] 08-Jul-2024 15:21:08.220 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-nio-127.0.0.1-auto-2-44635"] ------------- ---------------- --------------- Testcase: testSuspendThenClose took 4.347 sec Testcase: testSuspendResume took 40.184 sec