java.lang.IllegalStateException: The WebSocket session has been closed and no method (apart from close()) may be called on a closed session

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via tomcat-dev by Rainer Jung, 1 year ago
The WebSocket session has been closed and no method (apart from close()) may be called on a closed session
via tomcat-dev by Rainer Jung, 1 year ago
The WebSocket session has been closed and no method (apart from close()) may be called on a closed session
via Stack Overflow by Dheerendra
, 1 year ago
The WebSocket session has been closed and no method (apart from close()) may be called on a closed session
via dahuatu.com by Unknown author, 2 years ago
The WebSocket session has been closed and no method (apart from close()) may be called on a closed session
via apache.org by Unknown author, 1 year ago
The WebSocket session [0] has been closed and no method (apart from close()) may be called on a closed session
via Stack Overflow by Runar Halse
, 2 years ago
The WebSocket session [0] has been closed and no method (apart from close()) may be called on a closed session
java.lang.IllegalStateException: The WebSocket session has been closed and no method (apart from close()) may be called on a closed session
at org.apache.tomcat.websocket.WsSession.checkState(WsSession.java:607)
at org.apache.tomcat.websocket.WsSession.getUserProperties(WsSession.java:556)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.getBlockingSendTimeout(WsRemoteEndpointImplBase.java:360)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:195)
at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendString(WsRemoteEndpointImplBase.java:155)
at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:37)
at org.apache.tomcat.websocket.TestWsWebSocketContainer.doMaxMessageSize(TestWsWebSocketContainer.java:859)

Users with the same issue

Samebug visitor profile picture
Unknown user
2 times, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.