0 Replies Latest reply on Oct 28, 2008 5:08 PM by Niklas.Hofmann

    sendAndLoad fails even though it is permitted (very weird)

    Niklas.Hofmann
      Hi!

      I have to deal with a very weird XML.sendAndLoad error. Maybe some of you guys know an answer!

      I implemented an AJAX adapter in Flash to allow crossdomain AJAX interaction - and it works fine in general! Except it is loaded from one special server, then it fails without any reason. I digged into this for hours but I was not able to find a reason.

      To find the reason I added several traces and activated every logging option in mm.cfg. Here some data:

      mm.cfg:
      ErrorReportingEnable = 1
      MaxWarnings = 500
      TraceOutputFileEnable = 1
      SecurityDialogReportingEnable = 1
      PolicyFileLog=1
      PolicyFileLogAppend=1

      Traces when the adapter is loaded from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf ( this is the server with the problems):

      sendAjaxRequest: entered
      sendAjaxRequest: request object created
      sendAjaxRequest: response object created
      sendAjaxRequest: request submitted
      processAjaxResponse: entered
      processAjaxResponse: request failed
      _root.currentXmlRequestObject.contentType = text/xml
      _root.currentXmlRequestObject.loaded =
      _root.currentXmlRequestObject.status = 0
      _root.currentXmlRequestObject = <request><ajax>...</ajax></request>
      processAjaxResponse: javascript callback activated - error
      processAjaxResponse: internal data resetted

      policyfiles.txt log for the same server:
      OK: Root-level SWF loaded: http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
      OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[ name by requestor from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf
      OK: Policy file accepted: http://cms.dentalinformatics.com/crossdomain.xml
      OK: Request for resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public?clientInstanceConfig[ name by requestor from http://www.dental.pitt.edu/informatics/contactmanagement-externals/ajaxflash/ajaxflash.swf is permitted due to policy file at http://cms.dentalinformatics.com/crossdomain.xml

      Traces when the adapter is loaded from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf ( this a the server WITHOUT the problems):
      sendAjaxRequest: entered
      sendAjaxRequest: request object created
      sendAjaxRequest: response object created
      sendAjaxRequest: request submitted
      processAjaxResponse: entered
      processAjaxResponse: request succeeded
      processAjaxResponse: javascript callback activated - ok
      processAjaxResponse: internal data resetted

      policyfiles.txt log for the same server:
      OK: Root-level SWF loaded: http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
      OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/pub lic-interface/register-external?clientInstanceConfig[name by requestor from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf
      OK: Policy file accepted: http://cms.dentalinformatics.com/crossdomain.xml
      OK: Request for resource at http://cms.dentalinformatics.com/contactmanagement.v3.ajax/en/public;main/default/core/pub lic-interface/register-external?clientInstanceConfig[name by requestor from http://www.chimos.de/cms-testbed/naos-external/ajaxflash/ajaxflash.swf is permitted due to policy file at http://cms.dentalinformatics.com/crossdomain.xml

      This is the crossdomain.xml file (I know it allows everything, but I wanted to be sure ...)
      http://cms.dentalinformatics.com/crossdomain.xml

      I placed the fla file here http://www.chimos.de/ajaxflash.fla , which consists of 4 Key Frames for the interaction with Javascript.

      Your help is highly appreciated!

      Thank you!

      Niklas