userLost null user
Posted: 12 Aug 2010, 18:28
This is a strange error and hard to reproduce but I am unable to pull any data from the InternalEventObject when a user is lost in a specif way.
What I mean by that is it only happens to users who have been kicked due to extended idle time because their flash client/browser has crashed. Because this only happens to users who's flash player/browser has crashed it is not easy to reproduce. But under all other circumstances the userLost works perfectly fine, including when a user is kicked for being idle( without client crash ).
Relative server logs:
INFO | jvm 1 | 2010/08/12 11:16:22 | [EVENT NAME] : userLost
INFO | jvm 1 | 2010/08/12 11:16:22 | 11:16:22.410 - [ WARNING ] > Exception during userLost event handling: java.lang.NullPointerException
INFO | jvm 1 | 2010/08/12 11:16:22 | 11:16:22.410 - [ INFO ] > User Guest5 has been kicked.
As a result of this I am unable to clear certain data related to the user because I am unable to get to the userId. I'm sure someone else has come across something similar to this by now or maybe I'm totally missing something but I'm just stuck on this at the moment and would appreciate any help.
What I mean by that is it only happens to users who have been kicked due to extended idle time because their flash client/browser has crashed. Because this only happens to users who's flash player/browser has crashed it is not easy to reproduce. But under all other circumstances the userLost works perfectly fine, including when a user is kicked for being idle( without client crash ).
Relative server logs:
INFO | jvm 1 | 2010/08/12 11:16:22 | [EVENT NAME] : userLost
INFO | jvm 1 | 2010/08/12 11:16:22 | 11:16:22.410 - [ WARNING ] > Exception during userLost event handling: java.lang.NullPointerException
INFO | jvm 1 | 2010/08/12 11:16:22 | 11:16:22.410 - [ INFO ] > User Guest5 has been kicked.
Code: Select all
if ( evtName.equals( "userLost" )){
//_pRemovePlayer.removeFromServer( ( User ) ieo.getObject( "user" ) );
_pRemovePlayer.removeFromServerById( Integer.valueOf( ieo.getParam( "uid" ) ).intValue() );
}