I am gettinga the following error when i deploy my file in tomcat
Error #2048: Security sandbox violation:
can some one help me: http://localhost:8080/answers-homepage/Main.swf cannot load data from https://localhost:8080/answers-homepage/messagebroker/amfsecure. url: 'https://localhost:8080/answers-homepage/messagebroker/amfsecure'"]
Views
Replies
Total Likes
That is a security sandbox violation, the url root where yout swf is called isn't the same that your services are, http!=https.
You could change your channels definition to not use secure amf , or write a cross domain file
Views
Replies
Total Likes
Also keep in mind that sub-domains are considered different domains, so mySub.myCompany.com is considered different from www.myCompany.com, and a crossdomain.xml file is necessary.
Views
Replies
Total Likes
Hey Thanks! But now i am facing different problem. Now i am able to get a correct re-direction but still facing a problem. I have put my error below. Let me know if you have any idea on this..
did the following changes in the service-config.xml
<default-channels>
<channel ref="my-secure-amf"/> <!-- This code needs to be UNCOMMENTED when using SSL -->
<!--channel ref="my-amf"/--> <!-- This code needs to be COMMENTED when using SSL -->
</default-channels>
I also hardcoded the URL that is to be redirected in this service-config.xml file
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://ido-dev.nielsen.com/homepg/answers-homepage/messagebroker/amfsecure" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
The changes made in remoting-config.xml
<default-channels>
<channel ref="my-secure-amf"/> <!-- This code needs to be UNCOMMENTED when using SSL -->
<!--channel ref="my-amf"/--> <!-- This code needs to be COMMENTED when using SSL -->
</default-channels>
After making these changes I did the build and redeployed the application. And I found the following error
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'https://ido-dev.nielsen.com/homepg/answers-homepage/messagebroker/amfsecure'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Chaninel/connectFailed()
at mx.messaging.channels::PollingChannel/connectFailed()
at mx.messaging.channels::AMFChannel/statuisHandler()
Views
Replies
Total Likes
Hey Thanks! But now i am facing different problem. Now i am able to get a correct re-direction but still facing a problem. I have put my error below. Let me know if you have any idea on this..
did the following changes in the service-config.xml
<default-channels>
<channel ref="my-secure-amf"/> <!-- This code needs to be UNCOMMENTED when using SSL -->
<!--channel ref="my-amf"/--> <!-- This code needs to be COMMENTED when using SSL -->
</default-channels>
I also hardcoded the URL that is to be redirected in this service-config.xml file
<channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">
<endpoint url="https://ido-dev.nielsen.com/homepg/answers-homepage/messagebroker/amfsecure" class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
</properties>
</channel-definition>
The changes made in remoting-config.xml
<default-channels>
<channel ref="my-secure-amf"/> <!-- This code needs to be UNCOMMENTED when using SSL -->
<!--channel ref="my-amf"/--> <!-- This code needs to be COMMENTED when using SSL -->
</default-channels>
After making these changes I did the build and redeployed the application. And I found the following error
[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 500: url: 'https://ido-dev.nielsen.com/homepg/answers-homepage/messagebroker/amfsecure'"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Chaninel/connectFailed()
at mx.messaging.channels::PollingChannel/connectFailed()
at mx.messaging.channels::AMFChannel/statuisHandler()
Views
Replies
Total Likes
Does that channel definition exist?
Views
Replies
Total Likes
yes i does exist...
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies