ShutDown error

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Gaurav
Posts: 24
Joined: 19 Apr 2010, 07:09

ShutDown error

Post 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
BigFIsh
Posts: 1698
Joined: 25 Feb 2008, 19:26
Location: New Zealand

Post by BigFIsh »

Smartfox's forum is my daily newspaper.
Gaurav
Posts: 24
Joined: 19 Apr 2010, 07:09

Post 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
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post 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
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply