Bluebox working in debug but not in browser

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

Moderators: Lapo, Bax

preecep
Posts: 49
Joined: 01 Aug 2007, 10:28

Bluebox working in debug but not in browser

Postby preecep » 14 Feb 2008, 12:20

I have blocked port 9339 on my local firewall.

I run the connection code locally in Flash and it connects via BlueBox ok.

When I run the swf from a website it does not connect. The site is on a different sub-domain than SFS.

I am wondering if this is a problem with:

Code: Select all

System.security.loadPolicyFile("xmlsocket://subdomain.website.com:9339");


As that call would be blocked?
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 14 Feb 2008, 22:14

Correct.
Make sure you have the same crossdomain policy that you send via socket also available in the root folder of the web server.

(Server/webserver/webapps/root)
Lapo
--
gotoAndPlay()
...addicted to flash games
preecep
Posts: 49
Joined: 01 Aug 2007, 10:28

Postby preecep » 14 Feb 2008, 23:05

I commented out the loadPolicyFile and it now works on our test SFS as it has the crosspolicy file already on it :) But does not work on the production SFS. When I go to /BlueBox/HttpBox.do i get the following page:


HTTP ERROR: 500

it/gotoandplay/smartfoxserver/httpbox/util/SFSHandshake

RequestURI=/BlueBox/HttpBox.do
Caused by:

java.lang.NoClassDefFoundError: it/gotoandplay/smartfoxserver/httpbox/util/SFSHandshake
at it.gotoandplay.smartfoxserver.httpbox.filter.SessionIDFilter.doFilter(SessionIDFilter.java:113)
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)
User avatar
Lapo
Site Admin
Posts: 20917
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 15 Feb 2008, 05:31

There is a missing class. You seem to have a non valid installation.
Check your versions: SFS should be at least 1.6.0 (recommended 1.6.1) and BlueBox 1.0.2 or higher
Lapo

--

gotoAndPlay()

...addicted to flash games
preecep
Posts: 49
Joined: 01 Aug 2007, 10:28

Postby preecep » 16 Feb 2008, 00:09

Wierd, I did a normal install for both. Fixed now thanks.

Return to “BlueBox”

Who is online

Users browsing this forum: No registered users and 1 guest