I hope anyone could help me in my problem
server version: 2.12.0
the problem happens when user disconnect for any reason, the following exception appeared
Code: Select all
10:17:47,645 INFO [SocketReader] sessions.DefaultSessionManager - Session removed: { Id: 1, Type: DEFAULT, Logged: Yes, IP: 192.168.1.1:65074 }
10:17:47,655 WARN [SFSWorker:Sys:1] v2.SmartFoxServer - java.lang.NullPointerException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
+--- --- ---+
Stack Trace:
+--- --- ---+
java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)
java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)
com.smartfoxserver.v2.entities.managers.SFSUserManager.removeUser(SFSUserManager.java:118)
com.smartfoxserver.v2.entities.managers.SFSUserManager.disconnectUser(SFSUserManager.java:257)
com.smartfoxserver.v2.entities.SFSZone.removeUser(SFSZone.java:1270)
com.smartfoxserver.v2.api.SFSApi.disconnectUser(SFSApi.java:305)
com.smartfoxserver.v2.api.SFSApi.disconnect(SFSApi.java:214)
com.smartfoxserver.v2.SmartFoxServer.onSessionClosed(SmartFoxServer.java:1002)
com.smartfoxserver.v2.SmartFoxServer.access$2(SmartFoxServer.java:1000)
com.smartfoxserver.v2.SmartFoxServer$EventDelegate.run(SmartFoxServer.java:1109)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
and when user login again, the following exception appeared
Code: Select all
10:17:52,320 INFO [SFSWorker:Ext:4] scala.DefLI - User already logged in. Disconnecting previous instance : ( User Name: null, Id: 0, Priv: 0, Sess: 192.168.1.1:65074 )
10:17:52,321 WARN [SFSWorker:Ext:4] managers.SFSExtensionManager - java.lang.NullPointerException:
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Exception: java.lang.NullPointerException
Message: *** Null ***
Description: Error during event handling: java.lang.NullPointerException, Listener: { Ext: __lib__, Type: JAVA, Lev: ZONE, { Zone: saudi }, {} }
+--- --- ---+
Stack Trace:
+--- --- ---+
java.util.concurrent.ConcurrentHashMap.replaceNode(ConcurrentHashMap.java:1106)
java.util.concurrent.ConcurrentHashMap.remove(ConcurrentHashMap.java:1097)
com.smartfoxserver.v2.entities.managers.SFSUserManager.removeUser(SFSUserManager.java:118)
com.smartfoxserver.v2.entities.managers.SFSUserManager.disconnectUser(SFSUserManager.java:257)
com.smartfoxserver.v2.entities.SFSZone.removeUser(SFSZone.java:1270)
com.smartfoxserver.v2.api.SFSApi.disconnectUser(SFSApi.java:305)
com.smartfoxserver.v2.scala.DefLI.applyForceLogin(w:516)
com.smartfoxserver.v2.scala.DefLI.doLogin(w:118)
com.smartfoxserver.v2.entities.SFSZone.login(SFSZone.java:1358)
com.smartfoxserver.v2.api.SFSApi.login(SFSApi.java:486)
com.smartfoxserver.v2.controllers.system.Login.execute(Login.java:244)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.executeEventCommand(SFSExtensionManager.java:1035)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchEvent(SFSExtensionManager.java:776)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.dispatchZoneLevelEvent(SFSExtensionManager.java:689)
com.smartfoxserver.v2.entities.managers.SFSExtensionManager.handleServerEvent(SFSExtensionManager.java:886)
com.smartfoxserver.v2.core.SFSEventManager$SFSEventRunner.run(SFSEventManager.java:65)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
java.lang.Thread.run(Thread.java:745)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::