Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-30455

Compiling AIR automation libraries into a Flex project does not throw errors to the problems view in Flash Builder.

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.5 (Release)
    • None
    • Active Screen
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Language Found: English

    Description

      Steps to reproduce:
      1. Add the attached mainAir.mxml to an AIR application.
      2. Add the attached swfToLoad.mxml to a new Flex Application and link the output of the Flex app into the AIR application debug.
      3. Add the following compile options to both the AIR and Flex projects:

      -include-libraries -includes+=mx.managers.systemClasses.MarshallingSupport
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_agent.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_air.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_airspark.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_dmv.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_flashflexkit.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/automation_spark.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/qtp.swc"
      "<yourSdkPath>/sdks/4.5.0/frameworks/libs/automation/qtp_air.swc"

      Actual Results:
      No error is thrown to the problems view and the Flex project swf is built. When the AIR app is ran it will throw a run time error; 'TypeError: Error #1009: Cannot access a property or method of a null object reference. '

      NOTE: Logged this based on 'https://bugs.adobe.com/jira/browse/SDK-30331' where the flex swf compiled with AIR libraries threw a run-time error but no errors in the project when building.

      Expected Results:

      Error to be caught in Flash Builder with SDK 4.5. If you try this is 4.1, you will get errors in the problems view for the Flex application project's 4.1 air libraries and project will not build.

      Workaround (if any):
      Remove the AIR library references for the Flex project.

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: