Page 1 of 1

Bluebox working in debug but not in browser

Posted: 14 Feb 2008, 12:20
by preecep
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?

Posted: 14 Feb 2008, 22:14
by Lapo
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)

Posted: 14 Feb 2008, 23:05
by preecep
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)

Posted: 15 Feb 2008, 05:31
by Lapo
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

Posted: 16 Feb 2008, 00:09
by preecep
Wierd, I did a normal install for both. Fixed now thanks.