9 Replies Latest reply on Jan 2, 2011 3:52 AM by sugo2006

    Security Error ?

    mirazero Level 1

      Hi,

       

      I met this error after upgrading to Flash Player 10.1.

       

      I attached Dump Image file for this error.

       

      Please help me. It is very urgent....

       

      Thanks,

      errordump.PNG

        • 1. Re: Security Error ?
          mirazero Level 1

          and, my crossdomain.xml is like below.

           

          <?xml version="1.0"?>
          <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
          <cross-domain-policy>
            <allow-access-from domain="*" secure="true"/>
              <site-control permitted-cross-domain-policies="master-only" />
          </cross-domain-policy>

          • 2. Re: Security Error ?
            BhaskerChari Level 4

            Hi mirazero,

             

            Try with the below crossdomain file instead...

             

            <?xml version="1.0"?>
            <!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
            <cross-domain-policy>
            <site-control permitted-cross-domain-policies="all"/>
            <allow-access-from domain="*" secure="false"/>
            <allow-http-request-headers-from domain="*" headers="*" secure="false"/>
            </cross-domain-policy>

             

            Thanks,

            Bhasker

            • 3. Re: Security Error ?
              mirazero Level 1

              Thanks, Bhasker

               

              I had tried as your instruction.

               

              but, It's show up same error...

               

              Do you have Another suggestion?

              • 4. Re: Security Error ?
                Devtron Level 3

                Nice looking app...Good job.


                • 5. Re: Security Error ?
                  BhaskerChari Level 4

                  Hi mirazero,

                   

                  What kind of service you are using to connect to the server and in which case you are getting the Error..??

                   

                  Is your Flex application and your service both are hosted in the same domain or in the different domain..??

                   

                   

                  Thanks,

                  Bhasker

                  • 6. Re: Security Error ?
                    mirazero Level 1

                    What kind of service you are using to connect to the server and in which case you are getting the Error..??

                     

                    Ans. In Dashboard UI, we tried to execute Topology map and occured this error.

                            It was worked fine in previous FP version, this error occured after update FP 10.1.xx.

                     

                    Is your Flex application and your service both are hosted in the same domain or in the different domain..??

                     

                    Ans. in the same domain

                     

                     

                    in addition to, The error information is below:

                     

                    (mx.messaging.messages::ErrorMessage)#0
                    body = (null)
                    clientId = "DirectHTTPChannel0"
                    correlationId = "78E14A90-F19E-760C-BD1B-E1A90D0F91D8"
                    destination = ""
                    extendedData = (null)
                    faultCode = "Channel.Security.Error"
                    faultDetail = "Destination: DefaultHTTP"
                    faultString = "Security error accessing url"
                    headers = (Object)#1
                    DSStatusCode = 0
                    messageId = "AC9D95EB-A84C-40F4-2D99-E1A90D3EE993"
                    rootCause = (flash.events::SecurityErrorEvent)#2
                    bubbles = false
                    cancelable = false
                    currentTarget = (flash.net::URLLoader)#3
                    bytesLoaded = 0
                    bytesTotal = 0
                    data = (null)
                    dataFormat = "text"
                    eventPhase = 2
                    target = (flash.net::URLLoader)#3
                    text = "Error #2048"
                    type = "securityError"
                    timestamp = 0
                    timeToLive = 0

                    • 7. Re: Security Error ?
                      BhaskerChari Level 4

                      @mirazero ,

                       

                      Are you sing UrlLoader class to load the data..?? Which kind of service are you using WebSerice, HttpService, RemoteObject..etc;

                       

                       

                      Thanks,

                      Bhasker

                      • 8. Re: Security Error ?
                        mirazero Level 1

                        It's using HTTPService.

                         

                        Sorry, this is not my code. so late for response...

                         

                        ...

                        <mx:HTTPService id="getXML" showBusyCursor="true" resultFormat="e4x" result="ResultHandler(event)" fault="FaultHandler(event)"/>

                        ...

                         

                        and I can't find UrlLoader class in Flex Source.

                         

                        but, can find in Error message

                         

                        (mx.messaging.messages::ErrorMessage)#0
                        body = (null)
                        clientId = "DirectHTTPChannel0"
                        correlationId = "78E14A90-F19E-760C-BD1B-E1A90D0F91D8"
                        destination = ""
                        extendedData = (null)
                        faultCode = "Channel.Security.Error"
                        faultDetail = "Destination: DefaultHTTP"
                        faultString = "Security error accessing url"
                        headers = (Object)#1
                        DSStatusCode = 0
                        messageId = "AC9D95EB-A84C-40F4-2D99-E1A90D3EE993"
                        rootCause = (flash.events::SecurityErrorEvent)#2
                        bubbles = false
                        cancelable = false
                        currentTarget = (flash.net::URLLoader)#3
                        bytesLoaded = 0
                        bytesTotal = 0
                        data = (null)
                        dataFormat = "text"
                        eventPhase = 2
                        target = (flash.net::URLLoader)#3
                        text = "Error #2048"
                        type = "securityError"
                        timestamp = 0
                        timeToLive = 0

                        • 9. Re: Security Error ?
                          sugo2006

                          한국분인것 같아서 ^^  (영어가 좀 부족해서;)

                           

                          crossdomain이 설정되어 있더라도 url경로를 절대 경로로 지정 하게 되면 보안오류가 발생하는것 같네요.

                           

                          예들들면 http://www.a.com/test.swf 에서 같은 도메인에 있는 http://www.a.com/data.xml을 호출할때

                           

                          /data.xml 처럼 상대경로로 하지 않고  "http://www.a.com/data.xml"와 같이 절대 경로를 통해 http나 urlloader로 전달할 경우

                           

                          Security Error가 발생하는것 같은데, 이부분 확인 해보면 될것 같습니다.