Okay, trying to explain the following weird error:
I have the server down, so if someone access the application on another web server, a deployed flex application on my Apache Instance, I get the following error when trying to connect to the sfs2x instance:
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://myapacheurl/myapp/MyFlexApp.swf cannot load data from http://MySFS2XJettyInstance:8080/BlueBox/BlueBox.do.
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/getLoader()
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/sendRequest()
at com.smartfoxserver.v2.bitswarm.bbox::BBClient/connect()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/connect()
at com.smartfoxserver.v2::SmartFox/handleConnectionProblem()
at com.smartfoxserver.v2::SmartFox/onSocketSecurityError()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at com.smartfoxserver.v2.bitswarm::BitSwarmClient/onSocketSecurityError()
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()
Is there a way to better handle this error? It is not a security Exception, but, a failed connection attempt I guess!
Cheers,
NewJersey
BlueBox Sandbox Security Violation!
Re: BlueBox Sandbox Security Violation!
You don't seem to be using the latest API 1.0.x
Please double check and if necessary get the latest update.
Please double check and if necessary get the latest update.
Re: BlueBox Sandbox Security Violation!
Hello Lapo, unfortunately I am.
Here is the output of the code:
API Version: 1.0.2
Cheers,
NewJersey
Here is the output of the code:
API Version: 1.0.2
Cheers,
NewJersey
Re: BlueBox Sandbox Security Violation!
I've just got this on the debug part:
[SFS - WARN] A connection attempt is already in progress
## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"]
## BlueBox Error: Error #2032: Stream Error. URL: http://127.0.0.1:8080/BlueBox/BlueBox.do
## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///Users/me/Documents/Adobe Flash Builder 4.6/FlexProject/bin-debug/MyFlex.swf cannot load data from 127.0.0.1:9933."]
Any hints?
[SFS - WARN] A connection attempt is already in progress
## SocketError: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2031: Socket Error. URL: 127.0.0.1"]
## BlueBox Error: Error #2032: Stream Error. URL: http://127.0.0.1:8080/BlueBox/BlueBox.do
## SecurityError: [SecurityErrorEvent type="securityError" bubbles=false cancelable=false eventPhase=2 text="Error #2048: Security sandbox violation: file:///Users/me/Documents/Adobe Flash Builder 4.6/FlexProject/bin-debug/MyFlex.swf cannot load data from 127.0.0.1:9933."]
Any hints?
Re: BlueBox Sandbox Security Violation!
If SFS2X is down then the error is normal. All you have to do is handle the connection error in your code.
Example:
Example:
Code: Select all
private function onConnection(evt:SFSEvent):void
{
if (evt.params.success)
trace("Connection Success, Connection Mode = " + sfs.connectionMode)
else
trace("Connection Failure: " + evt.params.errorMessage)
}
Re: BlueBox Sandbox Security Violation!
Right, I did exactly as you've described, but it seems that because I have the flash debugger it pops out that sandbox error message.
Do you have the debugger as well?
If so, try logging in into a server with it disconnected and bluebox as true, see if you get the same sandbox violation message warning. This only happens in the flash debugger player.
Cheers,
NewJersey
Do you have the debugger as well?
If so, try logging in into a server with it disconnected and bluebox as true, see if you get the same sandbox violation message warning. This only happens in the flash debugger player.
Cheers,
NewJersey
Re: BlueBox Sandbox Security Violation!
Yeah, that's perfectly normal
Re: BlueBox Sandbox Security Violation!
Great, thanks Lapo...excellent support
Who is online
Users browsing this forum: No registered users and 136 guests