error on server

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

Moderators: Lapo, Bax

snaip20
Posts: 4
Joined: 11 May 2009, 11:25

error on server

Postby snaip20 » 18 May 2009, 12:05

I have two exceptions in server log, when trying to connect through bluebox:


jvm 1 | java.net.ConnectException: Connection refused
jvm 1 | at sun.nio.ch.Net.connect(Native Method)
jvm 1 | at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
jvm 1 | at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
jvm 1 | at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
jvm 1 | at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:346)
jvm 1 | at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:209)
jvm 1 | at org.xsocket.stream.Connection.<init>(Connection.java:160)
jvm 1 | at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:394)
jvm 1 | at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209)
jvm 1 | at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:54)
jvm 1 | at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:29)
jvm 1 | at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
jvm 1 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
jvm 1 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
jvm 1 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
jvm 1 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
jvm 1 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
jvm 1 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
jvm 1 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
jvm 1 | at org.mortbay.jetty.Server.handle(Server.java:285)
jvm 1 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
jvm 1 | at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
jvm 1 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
jvm 1 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
jvm 1 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
jvm 1 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
jvm 1 | at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
jvm 1 | Invalid connection = null
jvm 1 | java.lang.NullPointerException

jvm 1 | at it.gotoandplay.utils.net.xmlsocket.XMLSocket.send(XMLSocket.java:93)
jvm 1 | at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:30)
jvm 1 | at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
jvm 1 | at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089)
jvm 1 | at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
jvm 1 | at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
jvm 1 | at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
jvm 1 | at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
jvm 1 | at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
jvm 1 | at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:211)
jvm 1 | at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
jvm 1 | at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
jvm 1 | at org.mortbay.jetty.Server.handle(Server.java:285)
jvm 1 | at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:502)
jvm 1 | at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:835)
jvm 1 | at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)
jvm 1 | at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)
jvm 1 | at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)
jvm 1 | at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:368)
jvm 1 | at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)
User avatar
Lapo
Site Admin
Posts: 20056
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 01 Jun 2009, 05:59

Hi,
sorry for the delay :oops:
Is this problem persisting?
Lapo
--
gotoAndPlay()
...addicted to flash games
0belisk
Posts: 3
Joined: 27 Oct 2009, 13:09
Location: Russia
Contact:

Postby 0belisk » 29 Jun 2010, 07:56

Hello!

We're encountering a similar problem. Here is the server log:

Code: Select all

INFO   | jvm 1    | 2010/06/28 19:59:52 | java.net.ConnectException: Connection refused
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at sun.nio.ch.Net.connect(Native Method)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at sun.nio.ch.SocketAdaptor.connect(Unknown Source)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:346)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:209)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.xsocket.stream.Connection.<init>(Connection.java:160)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:394)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:54)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:29)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.Server.handle(Server.java:324)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
INFO   | jvm 1    | 2010/06/28 19:59:52 | Invalid connection = null
INFO   | jvm 1    | 2010/06/28 19:59:52 | java.lang.NullPointerException
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.utils.net.xmlsocket.XMLSocket.send(XMLSocket.java:93)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.smartfoxserver.httpbox.util.SFSHandshake.<init>(SFSHandshake.java:30)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:114)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1148)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:387)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.Server.handle(Server.java:324)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:535)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:880)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
INFO   | jvm 1    | 2010/06/28 19:59:52 |       at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)


BlueBox (version 1.0.5) is running on port 8081. Our bluebox.properties:

Code: Select all

#:::::::::::::::::::::::::::::::::::::::::::::::::::::::
# {{ SmartFoxServer - BlueBox }}
# Configuration File
# version 1.0
#
# (c) 2004-2009 gotoAndPlay()
# www.smartfoxserver.com
# www.gotoandplay.it
#:::::::::::::::::::::::::::::::::::::::::::::::::::::::

log_level=FINER
log_folder=./logs/
log_max_size=100000
log_max_files=5

# Can be embedded or stand-alone
serverMode=embedded

# These 2 are available only in stand-alone mode
sfsAddr=127.0.0.1
sfsPort=9449

# This value should always be > 20. A value of 30 is recommended.
client_idle_time=30

#В Uncomment if you have set serverMode=stand-alone
client_idle_request_time=300

# Allows runtime debugging
# You can point the browser to -> http://hostname:port/BlueBox/HttpBox.do?debugCmd=main
debug_mode=true


SFS (version 1.6.8) is running on port 9449. Its config.xml:

Code: Select all

<ServerIP>*</ServerIP>
<ServerPort>9449</ServerPort>


We have no problems with our test windows server. The problem happens only on our production linux server.

Also I want to add that a client connects to the server not directly to port 9449 or to port 8081, but through another ip that forwards 443 to 9449 and 80 to 8081 to the smartfox server's ip.
0belisk
Posts: 3
Joined: 27 Oct 2009, 13:09
Location: Russia
Contact:

Postby 0belisk » 29 Jun 2010, 12:29

Solved by changing sfsAddr value :oops:

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 1 guest