rsrini7 / flexmonkey

Automatically exported from code.google.com/p/flexmonkey
0 stars 0 forks source link

Preloader exception thrown when trying to load application within FlexMonkey #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
I can open the compiled swf file and do all the actions as stand alone. 
But, when same application is loaded in FlexMonkey, I get an error that 
seems to point to the Preloader.  I also tried setting the attribute 
usePreloader="false" but still get the same error shown below. 

TypeError: Error #1009: Cannot access a property or method of a null 
object reference.
    at mx.automation::AutomationManager$/createDelegate()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:290]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:390]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:391]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:391]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:391]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/addDelegates()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:370]
    at mx.automation::AutomationManager$/childAddedHandler()
[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\Automati
onManager.as:206]
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.managers::SystemManager/preloader_preloaderDoneHandler()
[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\managers\SystemManager.as:2980]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.preloaders::Preloader/displayClassCompleteHandler()
[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\preloaders\Preloader.as:434]
    at mx.preloaders::Preloader/dispatchAppEndEvent()
[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\preloaders\Preloader.as:294]
    at mx.preloaders::Preloader/appCreationCompleteHandler()
[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\preloaders\Preloader.as:442]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
    at mx.core::UIComponent/set initialized()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
    at mx.managers::LayoutManager/doPhasedInstantiation()
[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
    at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0
\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

What is the expected output? What do you see instead?
I expect my application to load without error.  Instead I get the error 
and then part of the application loads.

What version of the product are you using? On what operating system?
I've tried FlexMonkey 0.6 and 0.8.   Windows XP SP 2.

Please provide any additional information below.

Original issue reported on code.google.com by mmwhitak...@gmail.com on 24 Feb 2009 at 3:23

GoogleCodeExporter commented 9 years ago
Please make sure you have the following includes when compiling the 
FlexMonkeyLauncher.

-include-libraries "/Applications/Adobe Flex Builder 3/sdks/3.2.0/
frameworks/libs/automation.swc"
-include-libraries "/Applications/Adobe Flex Builder 3/sdks/3.2.0/
frameworks/libs/automation_agent.swc"
-include-libraries "/Applications/Adobe Flex Builder 3/sdks/3.2.0/
frameworks/libs/automation_dmv.swc" 

Original comment by mark.c...@gorillalogic.com on 24 Feb 2009 at 6:09

GoogleCodeExporter commented 9 years ago
I recompiled with those three files and now am getting the following error:

VerifyError: Error #1053: Illegal override of removeChildBridge in 
mx.managers.SystemManagerProxy.

Original comment by mmwhitak...@gmail.com on 24 Feb 2009 at 7:23

GoogleCodeExporter commented 9 years ago
The error you are getting now is due to version mismatch of the FlexMonkey and 
your
application.  FlexMonkey 0.8 is compiled with Flex 3.2.  I would suggest you 
download
the source and compile FlexMonkey, FlexMonkeyLauncher and your application.

Original comment by mark.c...@gorillalogic.com on 24 Feb 2009 at 7:38

GoogleCodeExporter commented 9 years ago
I downloaded and compiled the applications and I am no longer getting the #1053 
Error.  Now, I am having the same problem as described in Issue 29, where 
anywhere 
in my application, I reference "Application.application", then it references 
FlexMonkey instead of my application under test.  So in the following example, 
I 
have a component called windowShadeSearch that I am trying to access using 
Application.application.windowShadeSearch and I get the following error only 
when 
loaded in FlexMonkeyLauncher:

Example:

ReferenceError: Error #1069: Property windowShadeSearch not found on 
FlexMonkeyLauncher and there is no default value.
    at turningpage.browser::History$/updateUrl()
[C:\Dev\Apps\blazeds_turnkey\tomcat\webapps\TurningpageFlex\flex\turningpage\bro
wser\
History.as:279]
    at Main/__windowShadeSearch_click()
[C:\Dev\Apps\blazeds_turnkey\tomcat\webapps\TurningpageFlex\flex\Main.mxml:594]

Original comment by mmwhitak...@gmail.com on 25 Feb 2009 at 1:26

GoogleCodeExporter commented 9 years ago
At this point in time, the work around is to link FlexMonkey into your 
application
instead of using the launcher.  The directions for doing that can be found at
http://code.google.com/p/flexmonkey/wiki/LinkingFlexMonkeyIntoApp. 

Original comment by mark.c...@gorillalogic.com on 5 Mar 2009 at 4:09

GoogleCodeExporter commented 9 years ago
Retiring 0.x issues

Original comment by eric.owe...@gtempaccount.com on 16 Jul 2009 at 12:51