Banning users by IP bug
Posted: 01 Sep 2011, 01:35
There seems to be a bug with banning users on our site by IP address. For some reason, on our live site, it triggers an error message in the logs when banning by IP.
However, on development / staging servers, the functionality works as expected.
There are at least 1800 banned users in our ban list, and unfortunately due to the nature of our clients' needs, this number of bans is necessary. Banning by username works fine, however ban by ip, does not.
Anybody know what's causing this ? Here is the log :
This is the code that executes the ban (the message is tailored on clientside due to multilingual capability):
Would be great if this can be resolved soon. Thanks.
However, on development / staging servers, the functionality works as expected.
There are at least 1800 banned users in our ban list, and unfortunately due to the nature of our clients' needs, this number of bans is necessary. Banning by username works fine, however ban by ip, does not.
Anybody know what's causing this ? Here is the log :
Code: Select all
INFO | jvm 1 | 2011/09/01 05:36:08 | Error: java.lang.NullPointerException
INFO | jvm 1 | 2011/09/01 05:36:08 | Handler: it.gotoandplay.smartfoxserver.tasks.BanUserTaskHandler@4c5d143a
INFO | jvm 1 | 2011/09/01 05:36:08 | java.lang.NullPointerException
INFO | jvm 1 | 2011/09/01 05:36:08 | at it.gotoandplay.smartfoxserver.SmartFoxServer.addBannedUser(SmartFoxServer.java:2683)
INFO | jvm 1 | 2011/09/01 05:36:08 | at it.gotoandplay.smartfoxserver.tasks.BanUserTaskHandler.doTask(BanUserTaskHandler.java:47)
INFO | jvm 1 | 2011/09/01 05:36:08 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.executeTasks(Scheduler.java:314)
INFO | jvm 1 | 2011/09/01 05:36:08 | at it.gotoandplay.smartfoxserver.util.scheduling.Scheduler.run(Scheduler.java:223)
INFO | jvm 1 | 2011/09/01 05:36:08 | at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
INFO | jvm 1 | 2011/09/01 05:36:08 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
INFO | jvm 1 | 2011/09/01 05:36:08 | at java.lang.Thread.run(Unknown Source)
Code: Select all
_server.banUser(u, 0, "#ERR3", _server.BAN_BY_IP);