Project: Tomcat
Bug 55174 [jsr 356][websocket] MessageHandler never gets notified again after it throws exception
Reported: 2013-07-01 12:14:30 | Status: resolved fixed

I have a test which adds a MessageHandler which gets notified on text messages. If its implementation method onMessage(String text) throws some exception (e.g. runtime exception), this MessageHandler will never ever be notified again for any new text messages received by the session. I suppose this happens because the exception actually kills the underlying thread in which the notification has happened. I think the client side implementation shall be more robust and expect and be prepared for exceptions coming from calls to user code.

Files changed in fix:
java/org/apache/tomcat/websocket/WsFrameBase.java