You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by "Andrei Kaptsov (JIRA)" <ji...@apache.org> on 2012/12/11 14:11:21 UTC
[jira] [Commented] (FLEX-28819) Sub applications, compiled with
marshalling support, which load windows cause RTE exceptions when opening a
basic ComboBox
[ https://issues.apache.org/jira/browse/FLEX-28819?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13528931#comment-13528931 ]
Andrei Kaptsov commented on FLEX-28819:
---------------------------------------
Here is a fix:
Open WindowedSystemManager class, in getVisibleApplicationRect() method change the first line from
var request:Request = new Request("getVisibleApplicationRect", false, true);
to
var request:Request = new Request("getVisibleApplicationRect", false, true, {skipToSandboxRoot: skipToSandboxRoot});
> Sub applications, compiled with marshalling support, which load windows cause RTE exceptions when opening a basic ComboBox
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: FLEX-28819
> URL: https://issues.apache.org/jira/browse/FLEX-28819
> Project: Apache Flex
> Issue Type: Bug
> Components: Marshall Plan (Versioning)
> Affects Versions: Adobe Flex SDK 4.5 (Release)
> Environment: Affected OS(s): Mac
> Affected OS(s): Mac OS 10.6
> Language Found: English
> Reporter: Adobe JIRA
>
> Steps to reproduce:
> 1.Unzip the attachment
> 2. Import both projects into Flash Builder
> 3. Start a debug session with ParentApplication (SubApplication.swf has already been copied to the bin-debug folder)
> 4. Click the button to create the window.
> 5. Open the spark ComboBox on top, this should work as expected
> 6. Open the mx ComboBox on the bottom, which throws the RTE
>
> Actual Results:
> TypeError: Error #1009: Cannot access a property or method of a null object reference.
> at mx.managers.systemClasses::MarshallingSupport/getVisibleApplicationRectHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\systemClasses\MarshallingSupport.as:2256]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.managers::WindowedSystemManager/getVisibleApplicationRect()[E:\dev\hero_private\frameworks\projects\airframework\src\mx\managers\WindowedSystemManager.as:1382]
> at mx.controls::ComboBox/displayDropdown()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\ComboBox.as:1771]
> at mx.controls::ComboBox/downArrowButton_buttonDownHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\ComboBox.as:2027]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
> at mx.controls::Button/http://www.adobe.com/2006/flex/mx/internal::buttonPressed()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Button.as:2483]
> at mx.controls::Button/mouseDownHandler()[E:\dev\hero_private\frameworks\projects\mx\src\mx\controls\Button.as:2744]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()[E:\dev\hero_private\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
> at mx.managers::WindowedSystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\airframework\src\mx\managers\WindowedSystemManager.as:2344]
>
>
> Expected Results: The ComboBox would open as usual
>
>
> Workaround (if any):
>
> Remove the the compiler flag: -includes=mx.managers.systemClasses.MarshallingSupport from SubApplication, or always use the Spark components.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira