Flex 猴子问题

发布于 2024-10-20 20:56:20 字数 1885 浏览 1 评论 0原文

我正在尝试设置 Flex Monkey。我使用的是 Flex SDK 3.5。我在 Flex Builder 中为我的项目添加了附加编译器参数 -include-libraries "../libs/automation_monkey3.x.swc"。现在,当我运行应用程序并单击“用户名”文本框时,我是出现以下错误。

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.gorillalogic.aqadaptor::AQEnvironment/sortAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:328]
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at com.gorillalogic.aqadaptor::AQEnvironment/findAllAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:302]
at com.gorillalogic.aqadaptor::AQEnvironment/findClosestAncestor()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:275]
at com.gorillalogic.aqadaptor::AQEnvironment/getAutomationClassByInstance()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:246]
at mx.automation::AutomationManager/helpCreateIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1880]
at mx.automation.delegates.core::ContainerAutomationImpl/createAutomationIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\ContainerAutomationImpl.as:185]
at mx.core::UIComponent/createAutomationIDPart()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9299]
at mx.automation::AutomationManager/captureID()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2657]
at mx.automation::AutomationManager/captureIDFromMouseDownEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2588]

当我删除附加编译器参数时,应用程序工作正常。我无法解决这个问题。非常感谢任何帮助。

I am trying to setup Flex Monkey.I am using Flex SDK 3.5. I added the Additional Compiler Arguments -include-libraries "../libs/automation_monkey3.x.swc"for my project in Flex Builder.Now when I runthe application and click on Username text box, I am getting the following error.

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.gorillalogic.aqadaptor::AQEnvironment/sortAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:328]
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at com.gorillalogic.aqadaptor::AQEnvironment/findAllAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:302]
at com.gorillalogic.aqadaptor::AQEnvironment/findClosestAncestor()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:275]
at com.gorillalogic.aqadaptor::AQEnvironment/getAutomationClassByInstance()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:246]
at mx.automation::AutomationManager/helpCreateIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1880]
at mx.automation.delegates.core::ContainerAutomationImpl/createAutomationIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\ContainerAutomationImpl.as:185]
at mx.core::UIComponent/createAutomationIDPart()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9299]
at mx.automation::AutomationManager/captureID()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2657]
at mx.automation::AutomationManager/captureIDFromMouseDownEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2588]

When I remove the Additional Compiler Parameters, the application works fine. I am unable to fix this issue. Any help is greatly appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

欢烬 2024-10-27 20:56:20

当我在 Flex builder 中清理并重新创建 html-template 文件夹后,错误就得到了解决。奇怪,但它有效!

Once I cleaned and recreated html-template folder in Flex builder, the error got resolved.Strange,but it works!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文