Hi there,

I see sporadic NullPointerExceptions when running the new unit test in org.apache.tomcat.websocket.TestWsSessionSuspendResume:

Testcase: testSuspendThenClose took 1.952 sec
        Caused an ERROR
Cannot invoke "org.apache.tomcat.websocket.WsSession.isClosed()" because "org.apache.tomcat.websocket.TestWsSessionSuspendResume$SuspendCloseEndpoint.serverSession" is null java.lang.NullPointerException: Cannot invoke "org.apache.tomcat.websocket.WsSession.isClosed()" because "org.apache.tomcat.websocket.TestWsSessionSuspendResume$SuspendCloseEndpoint.serverSession" is null at org.apache.tomcat.websocket.TestWsSessionSuspendResume$SuspendCloseEndpoint.isServerSessionFullyClosed(TestWsSessionSuspendResume.java:229) at org.apache.tomcat.websocket.TestWsSessionSuspendResume.testSuspendThenClose(TestWsSessionSuspendResume.java:173) 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)

It happen ed 22 times in 714 different combinations of Java versions, JDK vendors, JSSE or tcnative connectors and Linux versions.

They do not seem to depend on the Java version, experiencing them for Java 11 and 17 (21 not yet tested). Most of the exceptions happen during tests with tcnative 1.3.0 or 2.0.7, but at least once also with JSSE.

The specific test is new in this version.

Best regards,

Rainer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to