Exception during client disconnection: Null

You think you've found a bug? Please report it here.

Moderators: Lapo, Bax

Post Reply
Gamebrew
Posts: 57
Joined: 25 May 2007, 06:18

Exception during client disconnection: Null

Post by Gamebrew »

I've been running my server for quite a while this is the first real error I've seen in my logs. I'm using the latest Smartfox 1.6.5 and Linux.

[ WARNING ] > Exception during client disconnection: java.lang.NullPointerException
java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.SmartFoxServer.removeIpFromFilter(SmartFoxServer.java:2963)
at it.gotoandplay.smartfoxserver.SmartFoxServer.lostConnection(SmartFoxServer.java:1489)
at it.gotoandplay.smartfoxserver.SmartFoxServer.forceUserReconnection(SmartFoxServer.java:3645)
at it.gotoandplay.smartfoxserver.SmartFoxServer.canLogin(SmartFoxServer.java:2337)
at it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.canLogin(ExtensionHelper.java:152)
at com.gamebrew.smartfox.ZoneExtension.loginGuest(ZoneExtension.java:819)
at com.gamebrew.smartfox.ZoneExtension.handleInternalEvent(ZoneExtension.java:172)
at it.gotoandplay.smartfoxserver.controllers.MessageHandler.dispatchEvent(MessageHandler.java:147)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.handleLoginRequest(SystemHandler.java:475)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:218)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:143)
at java.lang.Thread.run(Unknown Source)
Gnoll
Posts: 128
Joined: 10 Mar 2009, 10:14

Post by Gnoll »

at com.gamebrew.smartfox.ZoneExtension.loginGuest(ZoneExtension.java:819)
Are you doing something in your extension after disconnection?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Unless you are getting many of those in a row I wouldn't worry about it.
Lapo
--
gotoAndPlay()
...addicted to flash games
Gamebrew
Posts: 57
Joined: 25 May 2007, 06:18

Post by Gamebrew »

No its the first time I've seen it. But there is always some little bits of warnings and errors every once in a while. I guess its the nature of a multiplayer system where anything can happen at anytime.
peterraq
Posts: 15
Joined: 17 Mar 2009, 09:39

Post by peterraq »

I have similar problems. On SFS 1.6.6 I get the following errors quite often:

Code: Select all

[ WARNING ] > Exception during client disconnection: java.lang.NullPointerException java.lang.NullPointerException
at it.gotoandplay.smartfoxserver.SmartFoxServer.removeIpFromFilter(SmartFoxServer.java:2968)
at it.gotoandplay.smartfoxserver.SmartFoxServer.lostConnection(SmartFoxServer.java:1487)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.kickUser(SystemHandler.java:2629)
at it.gotoandplay.smartfoxserver.extensions.ExtensionHelper.disconnectUser(ExtensionHelper.java:999)
at com.my.project.ZoneExtensionPoker.onServerEventLogin(MyZoneExtension.java:3842)
at com.my.project.ZoneExtensionPoker.handleInternalEvent(MyZoneExtension.java:600)
at it.gotoandplay.smartfoxserver.controllers.MessageHandler.dispatchEvent(MessageHandler.java:147)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.handleLoginRequest(SystemHandler.java:482)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.processEvent(SystemHandler.java:221)
at it.gotoandplay.smartfoxserver.controllers.SystemHandler.run(SystemHandler.java:146)
at java.lang.Thread.run(Unknown Source)
--> MyZoneExtension.java:3841

Code: Select all

if (kickUser != null) {
 eHelper.disconnectUser(kickUser);
}
I would guess, that in 1 out of 10 cases in MyZoneExtension, this error occurs.

Is there anything, I can check in advance, to prevent this error?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Is there anything, I can check in advance, to prevent this error?
No and there's not much to worry about it
Anyways this will be addressed in the next update, it's already in the todo list

Thanks for reporting
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply