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)
Exception during client disconnection: Null
I have similar problems. On SFS 1.6.6 I get the following errors quite often:
--> MyZoneExtension.java:3841
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?
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)Code: Select all
if (kickUser != null) {
eHelper.disconnectUser(kickUser);
}
Is there anything, I can check in advance, to prevent this error?