Page 1 of 1

Failing to run the example

Posted: 29 May 2010, 20:53
by FireAphis
Hello,

It is quite embarrassing, but I cannot make the examples run. I didn't have any problems with v1 examples but I do with v2.

Here's the error message:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://<my IP address>:8080/openspace/osExampleFlash.swf cannot load data from http://127.0.0.1:8080/BlueBox/HttpBox.do.
at it.gotoandplay.smartfoxserver.http::LoaderFactory()
at it.gotoandplay.smartfoxserver.http::HttpConnection()
at it.gotoandplay.smartfoxserver::SmartFoxClient()
at it.gotoandplay.smartfoxbits.bits::Connector$cinit()
at global$init()

What is a security sandbox violation and how do I solve it?

Also, I see that it looks for something on 127.0.0.1:8080. I remember that in v1 I had to edit sfsClient.xml to configure the server address. Should I do it in v2 too? I didn't see any mentions of it in the documentation. I tried to put the old sfsClient.xml into the config directory, but it didn't have any effect.

Thanks you.

Posted: 31 May 2010, 06:54
by Bax
You have to configure the Connector instance so that it connects to the right IP address. In Flash, click on the connection led on the stage, then go to the Properties panel and enter the right IP/port.

Posted: 03 Jun 2010, 13:11
by FireAphis
Thanks,

It indeed solved the issue. Maybe you should update it in the example installation documentation. I'm afraid this isn't obvious. Thanks for help.

But although I manage to connect I still don't see the map. That is, I hit the connect button, it turns green and I get a list of maps to the left of the screen. From this point on nothing happens. Clicking the maps doesn't help either. Any ideas what should I do?

Thanks again

Posted: 03 Jun 2010, 16:22
by Bax
Well, first of all you should check if you have client-side or server-side errors reported.

Posted: 06 Jun 2010, 19:12
by FireAphis
Thanks Bax for the guidance, I've checked the error logs and found the following in the SFS logs:

Code: Select all

12:25:51.398 - [ INFO ] > [OpenSpace] Map load request received from user falcon3 [0]
12:25:51.398 - [ INFO ] > [OpenSpace] Joining user falcon3 [0] to Room 'House1Inside' [1]
Exception in thread "ExtensionHandler-1" java.lang.NoSuchMethodError: it.gotoandplay.smartfoxserver.data.UserVariable.<init>(Ljava/lang/String;)V
 	at com.smartfoxserver.openspace.utils.Utility.setUserAvatarPosition(Utility.java:68)
	 at com.smartfoxserver.openspace.commands.LoadMapCommand.execute(LoadMapCommand.java:74)
 	at com.smartfoxserver.openspace.OpenSpaceExtension.handleRequest(OpenSpaceExtension.java:209)
 	at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.processEvent(ExtensionHandler.java:500)
 	at it.gotoandplay.smartfoxserver.controllers.ExtensionHandler.run(ExtensionHandler.java:344)
 	at java.lang.Thread.run(Unknown Source)
Any ideas?
Thanks a lot

Posted: 07 Jun 2010, 08:06
by Bax
Which version of SmartFoxServer are you using? No errors reported on startup?

Posted: 08 Jun 2010, 12:31
by FireAphis
I'm running SFS Pro 1.6.2 and I didn't see any other errors in the logs, except the one I posted :(

Posted: 08 Jun 2010, 13:25
by Bax
OpenSpace 2 requires SmartFoxServer 1.6.8 or higher.