Page 1 of 1

ShutDown error

Posted: 01 Nov 2010, 11:07
by Gaurav

Code: Select all

3:13:03.645 - [ INFO ] > -- Stopped!
03:13:03.651 - [ WARNING ] > Generic Exception in acceptNewConnections():java.nio.channels.ClosedSelectorException
03:13:03.653 - [ WARNING ] > Generic exception while shutting down: java.lang.NullPointerException
java.nio.channels.ClosedSelectorException
        at sun.nio.ch.SelectorImpl.selectedKeys(SelectorImpl.java:57)
        at it.gotoandplay.smartfoxserver.SmartFoxServer.acceptNewConnections(SmartFoxServer.java:706)
        at it.gotoandplay.smartfoxserver.SmartFoxServer.run(SmartFoxServer.java:652)
java.lang.NullPointerException
        at it.gotoandplay.smartfoxserver.SmartFoxServer.shutDown(SmartFoxServer.java:3265)
        at it.gotoandplay.smartfoxserver.SmartFoxServer.halt(SmartFoxServer.java:3147)
        at it.gotoandplay.smartfoxserver.admin.HaltTask.run(HaltTask.java:40)


This is the exception which I am getting. The server gets shut down but it might affect indirectly. When I restart the server from admin Panel it does stop but doesn't start. I am using Smart Fox Server 1.6.8 for Linux. Please help me out to debug this exception

Posted: 01 Nov 2010, 18:00
by BigFIsh

Posted: 02 Nov 2010, 03:47
by Gaurav
I had already seen that and my issue is that I am not able to restart my server using admin panel. Please let me know how to solve that. When I click on server restart button the server stops but never start. Please let me know about this...


Thanks,
Gaurav :D

Posted: 02 Nov 2010, 08:12
by Lapo
What you need is a "hard" restart instead of a soft one.
The restart performed from the Admin panel doesn't shut down the JVM and it can at times fail to clean up all the resources.

A "hard" restart is done by restarting the service. Under Windows you do it via the Service Console, under Linux you do it from terminal by issuing a sfs restart command