How to catch BlueBox security sandbox error?

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

User avatar
copet80
Posts: 42
Joined: 27 Apr 2010, 22:23
Location: Australia
Contact:

How to catch BlueBox security sandbox error?

Postby copet80 » 10 Oct 2011, 00:28

Hi guys,

We chose not to use BlueBox for the moment in a project, my question is how to handle the BlueBox security sandbox error (if users are behind firewalls, or ports are blocked, etc.):

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://[ip]/[app.swf]?ver=1 cannot load data from http://[ip]/BlueBox/BlueBox.do.
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/getLoader()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/bitswarm/bbox/BBClient.as:231]
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/sendRequest()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/bitswarm/bbox/BBClient.as:224]
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/connect()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/bitswarm/bbox/BBClient.as:114]
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/connect()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.as:249]
at com.smartfoxserver.v2::SmartFox/handleConnectionProblem()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/SmartFox.as:1928]
at com.smartfoxserver.v2::SmartFox/onSocketSecurityError()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/SmartFox.as:1785]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketSecurityError()[/Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer2X/API/AS3/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.as:451]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::Socket/onTimeout()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()

What I'm trying to do is to handle the error myself and present a custom instruction or FAQ link to the players. I've tried the following without any luck, it still throws the error:

_socket.addEventListener( SecurityErrorEvent.SECURITY_ERROR, onSecurityError );
_socket.addEventListener( SFSEvent.SOCKET_ERROR, onSocketError );

I apologise if this has been posted or answered in other post, in which case would you please tell me the link to the post?

Thank you.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 10 Oct 2011, 07:10

Please, which client API are you using? (The exact version)
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
copet80
Posts: 42
Joined: 27 Apr 2010, 22:23
Location: Australia
Contact:

Postby copet80 » 10 Oct 2011, 20:56

It's SFS2X_API_AS3__0.9.17. Let me know if this is not what you're looking for.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 13 Oct 2011, 15:08

Added to the bug reports for further investigation.
Stay tuned.
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
copet80
Posts: 42
Joined: 27 Apr 2010, 22:23
Location: Australia
Contact:

Postby copet80 » 18 Oct 2011, 21:07

Hi Lapo, just wondering if there's any news yet? Thanks.
User avatar
copet80
Posts: 42
Joined: 27 Apr 2010, 22:23
Location: Australia
Contact:

Postby copet80 » 01 Dec 2011, 01:23

Hi Lapo,

It's been 2 months now, is there any news yet?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 01 Dec 2011, 09:09

We are working on a new release with lots of improvements, we'll keep you updated.
Lapo

--

gotoAndPlay()

...addicted to flash games
interestbird
Posts: 4
Joined: 27 Dec 2011, 06:14

Postby interestbird » 04 Jan 2012, 15:37

This bug drive me nearly crazy...Seems I'm not the only one who encountered the problem.
Is there a schedule of this release?
I really can't wait because our game is about to go online....
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 04 Jan 2012, 15:55

Could you explain what the problem is? Do you use the BlueBox or not?
Please send the details to reproduce the issue, it will help us expedite the support case.
Read here:
http://smartfoxserver.com/support.php
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
copet80
Posts: 42
Joined: 27 Apr 2010, 22:23
Location: Australia
Contact:

Re: How to catch BlueBox security sandbox error?

Postby copet80 » 15 Oct 2012, 05:43

Hi Lapo, is there any news on this yet? I've been following closely the patches and we are running SFS 2.3.0. Is there a way to catch the BlueBox Errors yet?

## BlueBox Error: Error #2032: Stream Error. URL: http://xxx.xxx.xxx.xxx:8080/BlueBox/BlueBox.do
## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///D|/test.swf cannot load data from xxx.xxx.xxx.xxx:9933."]
## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///D|/test.swf cannot load data from xxx.xxx.xxx.xxx:9933."]

Thank you.
User avatar
Lapo
Site Admin
Posts: 23008
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to catch BlueBox security sandbox error?

Postby Lapo » 15 Oct 2012, 09:20

Lots of time has passed since your last post.
Error 2048 should never be a concern, if it happens you will be receiving a connection error.

Can you give me more details about what happens, when, etc...
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 80 guests