My socket handler class uses public variables for the host and port, set from the outside. hence,
public var port : Number; Remember this was a 1.5 -> 2.0 port; I hadn't changed the type declaration to int, but probably since port in the socket class is an int it defaulted to that anyway (shouldn't it throw a warning without an explicit cast, though?) since the default in AS3 for int is zero, not 'null', failing to pass in the port number would probably result in the Localhost:0 error.... --- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > Do you have more of a stack trace on the error? You're using sockets > separately or you're using sockets to reach the RemoteObject? Best to > isolate the networking and see what's failing. Maybe there's a config > error somewhere? Localhost:0 looks like some concatenation of domain > and port, where port wasn't assigned and it instead 0. > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of fuad_kamal > Sent: Wednesday, November 15, 2006 2:05 PM > To: [email protected] > Subject: [flexcoders] strange security sanbox error > > > > anyone ever see anything like this before: > > *** Security Sandbox Violation *** > Connection to localhost:0 halted - not permitted from > http://localhost:8080/flex/ces-webMigration01/channel1-debug.swf > <http://localhost:8080/flex/ces-webMigration01/channel1-debug.swf> > securityErrorHandler: [SecurityErrorEvent type="securityError" > bubbles=false cancelable=false eventPhase=2 text="Error #2048: > Security sandbox violation: > http://localhost:8080/flex/ces-webMigration01/channel1-debug.swf > <http://localhost:8080/flex/ces-webMigration01/channel1-debug.swf> > cannot load data from localhost:0."] > > I have no clue what "localhost:0." is or why my app would be trying to > connect to it. My environment is: > > -FDS2 > -Tomcat 5.5 (that's localhost:8080) > -JRE 1.4.2 > > While we are using Hibernate and Spring on the back-end, actually > currently I'm connecting to plain-old java (delegate) classes using > Remote Object; I'm not connecting to Spring Beans directly. Also I'm > using Sockets. > > Also, my swf still loads, and I am getting at least some of the data > out of the back-end. So I'm not really sure what this sandbox error > means... >

