Failing to run the example

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
FireAphis
Posts: 5
Joined: 29 May 2010, 20:43

Failing to run the example

Post 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.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post 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.
Paolo Bax
The SmartFoxServer Team
FireAphis
Posts: 5
Joined: 29 May 2010, 20:43

Post 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
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Well, first of all you should check if you have client-side or server-side errors reported.
Paolo Bax
The SmartFoxServer Team
FireAphis
Posts: 5
Joined: 29 May 2010, 20:43

Post 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
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Which version of SmartFoxServer are you using? No errors reported on startup?
Paolo Bax
The SmartFoxServer Team
FireAphis
Posts: 5
Joined: 29 May 2010, 20:43

Post 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 :(
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

OpenSpace 2 requires SmartFoxServer 1.6.8 or higher.
Paolo Bax
The SmartFoxServer Team
Post Reply