1 Reply Latest reply on Aug 22, 2011 10:41 AM by Flex harUI

    Exception thrown when using SDK 4.5.1 with debug flash player

    MasatoIan

      My setup:

      Windows 7

      Flash Builder 4 Premium, Version 4.0 (build 272416), volume license

      SDK 4.5.1

      RIATest 4.3, RIATestAgent4.swc

       

      I compiled our application using SDK 4.5.1 with these compiler setting:

      -locale en_US -use-network=false  -theme=Halo/halo.swc --keep-as3-metadata Test -define CONFIG::WITH_DEMS  true -define CONFIG::LP_MODULE true -includes  com.mycompany.automationDelegates.MyContainerAutomationImpl  com.mycompany.automationDelegates.MyFirstComponentAutomationImpl  com.mycompany.automationDelegates.MySecondComponentAutomationImpl  com.mycompany.automationDelegates.MyThirdComponentAutomationImpl  -include-libraries "C:\Program Files (x86)\RIATest  4\agent\RIATestAgent4.swc" "C:\Program Files (x86)\Adobe\Adobe Flash  Builder 4\sdks\4.5.1\frameworks\libs\automation\automation.swc"  "C:\Program Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_dmv.swc" "C:\Program  Files (x86)\Adobe\Adobe Flash Builder  4\sdks\4.5.1\frameworks\libs\automation\automation_agent.swc"

       

      When I run our application using  the debug 10.2 Flash Player, the following exception is thrown:

      ReferenceError: Error #1065: Variable Scroller is not defined.
      at flash.system::ApplicationDomain/getDefinition()
      at  mx.automation.delegates.containers::ApplicationAutomationImpl/getAutomationChildren()[E:\ dev\4.5.1\frameworks\projects\automation\src\mx\automation\delegates\containers\Applicatio nAutomationImpl.as:266]
      at mx.core::UIComponent/getAutomationChildren()[E:\dev\4.5.1\frameworks\projects\framework\s rc\mx\core\UIComponent.as:12919]
      at  mx.automation::AutomationManager/getAutomationChildrenArray()[C:\work\flex\dmv_automation \projects\automation_agent\src\mx\automation\AutomationManager.as:4895]
      at  com.riatest::CachedAutomationManager2/getAutomationChildrenArray()[C:\WORK\RIATest\Source \agent4\com\riatest\CachedAutomationManager2.as:46]
      at  mx.automation::AutomationManager/getChildrenRecursively()[C:\work\flex\dmv_automation\pro jects\automation_agent\src\mx\automation\AutomationManager.as:1252]
      at  mx.automation::AutomationManager/getChildren()[C:\work\flex\dmv_automation\projects\autom ation_agent\src\mx\automation\AutomationManager.as:1225]
      at com.riatest::CachedAutomationManager/getChildren()[C:\WORK\RIATest\Source\agent4\com\riat est\CachedAutomationManager.as:55]
      at  com.riatest.toolbar::DisplayListTreeDataDescriptor/getChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:74]
      at  com.riatest.toolbar::DisplayListTreeDataDescriptor/hasChildren()[C:\WORK\RIATest\Source\a gent4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:112]
      at  com.riatest.toolbar::DisplayListTreeDataDescriptor/isBranch()[C:\WORK\RIATest\Source\agen t4\com\riatest\toolbar\DisplayListTreeDataDescriptor.as:117]
      at mx.controls::Tree/isBranch()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree.as: 1552]
      at mx.controls::Tree/initListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:2858]
      at mx.controls::Tree/makeListData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\Tree .as:1330]
      at mx.controls::List/www.adobe.com/2006/flex/mx/internal::setupRendererFromData()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\List.as:1699]
      at mx.controls::List/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ List.as:896]
      at mx.controls::Tree/commitProperties()[E:\dev\4.5.1\frameworks\projects\mx\src\mx\controls\ Tree.as:1191]
      at mx.core::UIComponent/validateProperties()[E:\dev\4.5.1\frameworks\projects\framework\src\ mx\core\UIComponent.as:8209]
      at  mx.managers::LayoutManager/validateProperties()[E:\dev\4.5.1\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:597]
      at  mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:783]
      at  mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1180]

       

      I contacted the folks who make RIATest, and they did their best to debug the problem. Their conclusion is:

      "The stack trace that you posted shows that  ApplicationAutomationImpl/getAutomationChildren calls  ApplicationDomain/getDefinition on line 266 and the call fails with an  error. This most likely indicates a bug in ApplicationAutomationImpl."

       

      This problem never occurred when we were compiling our code using SDK 3.4.1. What can I do to work around this and continue performing automated tests of our Flash applications?