You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2015/04/04 02:45:54 UTC

[Bug 57788] NPE on session.addMessageHandler

https://bz.apache.org/bugzilla/show_bug.cgi?id=57788

Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All

--- Comment #1 from Konstantin Kolinko <kn...@gmail.com> ---
What are you trying to do here and what do you expect? Is it a real use case? 

(Source code =?)

My expectations are that such call is expected to fail.

For reference, WsSession.addMessageHandler(WsSession.java:198) method called
here is

[[[
    @Override
    public void addMessageHandler(MessageHandler listener) {
]]]

declared in javax.websocket.Session.

Use of that method is discouraged in favor of WebSocket 1.1 methods

Session.addMessageHandler(Class<T> clazz, MessageHandler.Partial<T> handler)
Session.addMessageHandler(Class<T> clazz, MessageHandler.Whole<T> handler)

-- 
You are receiving this mail because:
You are the assignee for the bug.

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