<< Back to previous view

[TYRUS-73] Session object coming as the parameter in @WebSocketClose annotated method is null Created: 26/Jan/13  Updated: 22/Feb/13  Resolved: 22/Feb/13

Status: Resolved
Project: tyrus
Component/s: None
Affects Version/s: None
Fix Version/s: 1.0-b12

Type: Bug Priority: Major
Reporter: neilghosh Assignee: Pavel Bucek
Resolution: Fixed Votes: 1
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

glassfish 4 build 70


Tags:
Participants: neilghosh and Pavel Bucek

 Description   

I realized that the session object in the following method is coming
out to be null

@WebSocketClose
public void onClose(Session peer) { peers.remove(peer) }

Hence the session could not be removed from the list of connected
users.

This method is when I refresh/close the browser or I call websocket.close(); from the client JavaScript.



 Comments   
Comment by Pavel Bucek [ 21/Feb/13 05:24 PM ]

cannot reproduce with tyrus trunk.

can you please post complete reproducible testcase?

Thanks!

Comment by Pavel Bucek [ 22/Feb/13 10:14 AM ]

seems like this issue is already fixed; confirmed with neilghosh.

feel free to comment/reopen with reproducible testcase.

Generated at Sat Apr 19 16:31:21 UTC 2014 using JIRA 4.0.2#472.