bluebox problem

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 problem

Postby no-one » 20 Dec 2007, 14:38

Hi
I am having a little problem with bluebox after i updated to 1.6.

when i block the normal port to test bluebox. my client sends connect and receives status 200 ,but after that nothing happens.
(status 200 should indicate that the request was successful right?)

this is the output that my client generates:

Code: Select all

** Socket connection failed. Trying BlueBox **
[ Send ]: connect
---> Status received: 200

i have tested to do the same with the AdvancedChat example but i get almost the same result there. the only difference is that the status message don't appear

Code: Select all

** Socket connection failed. Trying BlueBox **
[ Send ]: connect


so what have i done wrong ?
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 20 Dec 2007, 22:29

(I have moved the post in the right place)
Are you running the test locally? or online?
What ports are being used for SFS and BlueBox?

This is the latest API update -> http://www.smartfoxserver.com/products/ ... d.php?d=41
We've released them today, they fix a connection bug.

Let me know how it goes
Lapo
--
gotoAndPlay()
...addicted to flash games
no-one
Posts: 35
Joined: 01 Sep 2007, 16:42

Postby no-one » 20 Dec 2007, 23:34

i downloaded the latest API and tried again this time i didn't receive the status 200 it just stopped at send connect.

anyway after some testing i figured out that it when i ran it on my local computer everything worked fine but when i tested it on my server it did not.

i tested the debug URL that was written in one of the config files and it gave me a 500 error i don't know what it means but hopefully you do :P

you can check it out here :
http://208.78.99.114/BlueBox/HttpBox.do?debugCmd=main

when i ran it locally i only got a small page with the header BlueBox Debugging Page

I also want to add that the reloading of java extension is not working for me. the only way to reload a java extension is to restart the server and that's pretty annoying since i am trying to test out some new extensions i am making
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 21 Dec 2007, 05:42

Hi, this problem was also notified by another client. We investigated and found a possible problem that makes this exception intermittent
You have an update in your mail box

Let us know if it's all ok
Lapo

--

gotoAndPlay()

...addicted to flash games
no-one
Posts: 35
Joined: 01 Sep 2007, 16:42

Postby no-one » 21 Dec 2007, 12:15

that new file solved 1 of the 2 errors that the debugger showed now there only one but i still don't have a clue about what is causing it, and how to fix it. Here's the link and error:

http://208.78.99.114/BlueBox/HttpBox.do?debugCmd=main

i might also add that now my client alteast gets a error message :)

** Socket connection failed. Trying BlueBox **
[ Send ]: connect
Error opening URL "http://208.78.99.114:80/BlueBox/HttpBox.do"

Code: Select all

HTTP ERROR: 500

INTERNAL_SERVER_ERROR

RequestURI=/BlueBox/HttpBox.do
Caused by:

java.lang.NullPointerException
   at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:110)
   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.headerComplete(HttpConnection.java:821)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
   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)

Powered by Jetty://
macrotools
Posts: 24
Joined: 16 Nov 2007, 16:18

Postby macrotools » 28 Dec 2007, 21:41

I have the same problem on remote.
On my local smart server everything seems ok.

What is the problem about the bluebox?

I think everyone should be notified about the issue...
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 29 Dec 2007, 07:52

Did you try this patch? -> viewtopic.php?t=2252

Let us know
Lapo

--

gotoAndPlay()

...addicted to flash games
macrotools
Posts: 24
Joined: 16 Nov 2007, 16:18

Postby macrotools » 31 Dec 2007, 05:44

Yes, I tried the patch. But I will try it again and post the result here.
-----------
I tried the patch (new .war file and API's), HttpBox.do file still gives the error specified below.

Code: Select all

---------------------------
HTTP ERROR: 500

java.lang.NumberFormatException: null

RequestURI=/BlueBox/HttpBox.do
Caused by:

javax.servlet.ServletException: java.lang.NumberFormatException: null
   at it.gotoandplay.smartfoxserver.httpbox.HttpBox.init(HttpBox.java:84)
   at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
   at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:342)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
   at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:184)
   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.headerComplete(HttpConnection.java:821)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
   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)
Caused by: java.lang.NumberFormatException: null
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at it.gotoandplay.smartfoxserver.httpbox.util.ClientActivityMonitor.(ClientActivityMonitor.java:40)
   at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.(ConnectionManager.java:62)
   at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.getInstance(ConnectionManager.java:50)
   at it.gotoandplay.smartfoxserver.httpbox.HttpBox.init(HttpBox.java:73)
   ... 22 more

Caused by:

java.lang.NumberFormatException: null
   at java.lang.Integer.parseInt(Unknown Source)
   at java.lang.Integer.parseInt(Unknown Source)
   at it.gotoandplay.smartfoxserver.httpbox.util.ClientActivityMonitor.(ClientActivityMonitor.java:40)
   at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.(ConnectionManager.java:62)
   at it.gotoandplay.smartfoxserver.httpbox.ConnectionManager.getInstance(ConnectionManager.java:50)
   at it.gotoandplay.smartfoxserver.httpbox.HttpBox.init(HttpBox.java:73)
   at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:433)
   at org.mortbay.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:342)
   at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:463)
   at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1098)
   at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:184)
   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.headerComplete(HttpConnection.java:821)
   at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
   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)

Powered by Jetty://


When i try it on my local machine there is no problem.
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 03 Jan 2008, 08:42

Let me know if the solution provided here -> viewtopic.php?p=9329#9329
works for you
Lapo

--

gotoAndPlay()

...addicted to flash games
macrotools
Posts: 24
Joined: 16 Nov 2007, 16:18

Postby macrotools » 04 Jan 2008, 08:22

Lapo wrote:Let me know if the solution provided here -> viewtopic.php?p=9329#9329
works for you


Yes, it worked for me. But this time I am dealing with this security error (only in remote, not standalone or in local browser). I try to configure crossdomain.xml but I have almost tried every configuration (even connected to SFS with domain instead of IP). The security error that flash debugger shows is located below.)

Code: Select all

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://www.xxxx.com/bluebox/bluebox.swf cannot load data from www.xxxx.com:443.


My crossdomain.xml file includes

Code: Select all

<cross-domain-policy>
  <site-control permitted-cross-domain-policies="master-only"/>
  <allow-access-from domain="xxxx.com" to-ports="443" />
 </cross-domain-policy>


By the way I use port 443 for SFS. I'll change it to 9339 again for another trial.

If I do something wrong please let me know Lapo.
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 04 Jan 2008, 17:37

Please check the version of the flash player in your broswer here -> http://www.macromedia.com/software/flash/about/

What version is it?
Lapo

--

gotoAndPlay()

...addicted to flash games
macrotools
Posts: 24
Joined: 16 Nov 2007, 16:18

Postby macrotools » 04 Jan 2008, 22:01

it is 9.0.115.0 latest debugger version.

i noticed that if i put the crossdomain file to the root of the site' the working version (without bluebox) also gives a sandbox error.

Lapo, also i want to share my basic problem.

some of the visitors of the site are behind firewalls so they could not connect to SFS over 9339 or any other port. their system only allows 80 or 8080.

i try to get over this problem by bluebox to have these visitors connected to the SFS' othwerwise the project will be a real failure.

i want to mention again that i am able to connect bluebox (by avoiding my SFS port 9339 from the dsl modem) when i view the swf in Flash and in local html file.

i think the the main problem is caused by the new security additions to the latest flash player version, but if it is, i really do not know what to do as i tried almost every configuration of the cross domain file.

thanks for your attention.
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 05 Jan 2008, 13:43

We have started doing the first tests with the latest policy changes.
As of now it looks like the crossdomain.xml served via http works okay in most cases.

Test Page


Check this post and let me know if the connection test works for you.
If it does you should try to replicate the "configuration" we have used.

Additionally the BlueBox is active, so if you can temporarily block port 9339 on your side, you can also check it.
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 1 guest