bluebox crash

Submit all your BlueBox related questions or report a bug here!

Moderators: Lapo, Bax

no-one
Posts: 35
Joined: 01 Sep 2007, 16:42

bluebox crash

Postby no-one » 01 Nov 2007, 14:08

!problem solved!
hehe stupid me i had forgotten to change port in bluebox.properties :P



i have used bluebox for a while now and it used to work fine but now every time i restart and some one connects using bluebox it crashes. here's the log, hope you find anything useful in it, i am going to reinstall everything to hopefully get it working again.



log:
--- [ Server Starting ] ---------------------------------

Server address: 208.78.99.114
Server port : 80

14:31:44.702 - [ INFO ] > [EventWriter] ..... started :: 200 thread(s)
14:31:44.702 - [ INFO ] > [SystemHandler] ... started :: 1 thread(s)
14:31:44.702 - [ INFO ] > [ExtensionHandler]. started :: 20 thread(s)
14:31:44.702 - [ INFO ] > [DeadChannelsPolicy: strict]
14:31:44.703 - [ INFO ] > Server is up and running!
java.net.ConnectException: Connection refused
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:346)
at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:209)
at org.xsocket.stream.Connection.<init>(Connection.java:160)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:394)
at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209)
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:54)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.handleConnectionHandshake(SessionIDFilter.java:1
57)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:112)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Invalid connection = null
java.lang.NullPointerException
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.send(XMLSocket.java:93)
at it.gotoandplay.smartfoxserver.httpbox.data.SFSClient.sendMessageToSfs(SFSClient.java:150)
at it.gotoandplay.smartfoxserver.httpbox.HttpBox.doPost(HttpBox.java:180)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:125)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:285)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
Exception in thread "__evictor__" java.lang.NullPointerException
at it.gotoandplay.utils.net.xmlsocket.XMLSocket.close(XMLSocket.java:73)
at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.removeClient(ConnectionManager.java:126)
at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.disposeClients(ConnectionManager.java:102)
at it.gotoandplay.smartfoxserver.httpbox.util.ClientActivityMonitor.run(ClientActivityMonitor.java:74)
at java.lang.Thread.run(Unknown Source)[/b]
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Nov 2007, 07:33

The error indicates that the bluebox can't talk to SFS... are you sure the server is running ok?

I noticed strange values in your config:
14:31:44.702 - [ INFO ] > [EventWriter] ..... started :: 200 thread(s)
14:31:44.702 - [ INFO ] > [SystemHandler] ... started :: 1 thread(s)
14:31:44.702 - [ INFO ] > [ExtensionHandler]. started :: 20 thread(s)


200 threads for the event writer? :shock: Why?
Watch out, this setting will just make SFS run slower and won't add any performance benefit.

Same thing goes for the ExtensionHandler threads ... 20 is too much. Use ONE! Make sure you read the "Performance Settings" sections in chapter 2.2 of our docs
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 02 Nov 2007, 07:42

You said the problem comes out when you restart the server... so when you start SFS this is NOT happening?
How do you restart the server? From the Admin tool?

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 1 guest