6 Replies Latest reply on May 5, 2009 1:02 AM by SriramNatesan

    I am gettin an error

    SriramNatesan

      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'"]

        • 1. Re: I am gettin an error
          Michael Borbor Level 4

          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

          • 2. Re: I am gettin an error
            Gregory Lafrance Level 6

            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.

            • 3. Re: I am gettin an error
              SriramNatesan Level 1

              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()

               

              • 4. Re: I am gettin an error
                SriramNatesan Level 1

                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()

                 

                • 5. Re: I am gettin an error
                  Michael Borbor Level 4

                  Does that channel definition exist?

                  • 6. Re: I am gettin an error
                    SriramNatesan Level 1

                    yes i does exist...