flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Mazuruk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-34118) CartesianChart null pointer
Date Mon, 16 Jun 2014 18:44:03 GMT

    [ https://issues.apache.org/jira/browse/FLEX-34118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032761#comment-14032761

Alexander Mazuruk commented on FLEX-34118:

Depends on the SDK linkage option you have. If you exclude SDK code from each module which
is using Charts and links SDK to the shell only, you'll see the real issue.

> CartesianChart null pointer
> ---------------------------
>                 Key: FLEX-34118
>                 URL: https://issues.apache.org/jira/browse/FLEX-34118
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Apache Flex 4.11.0, Apache Flex 4.12.0, Apache Flex 4.12.1
>            Reporter: Alexander Mazuruk
> The issues is related to individual styleManager per each IFlexModuleFactory instance.
Say, we have a modular application, having
> Main "shell" which is <s:Application/> tag and modules loaded in runtime into this
shell. Each individual .swf module has it's own styleManager in it.
> Shell application is linked SDK as RSL's. Same goes for a module, each module doesn't
have sdk linked into it's .swf body.
> So the issue is when you have default chart styles stuff declared in the main shell module
and shell.styleManager has those selectors at runtime.
> But when you loading external module having any chart in it it's module.styleManager
doesn't have any chart style selectors, unless you manually
> set "module.moduleFactory = shellApplication.moduleFactory".
> Once again, instantiate external module .swf get a visual chart component out of this
module add it to the shell stage, and bump! you've got an this trace stack:
> TypeError: Error #1010: A term is undefined and has no properties.
> 	at mx.charts.chartClasses::CartesianChart/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/charts/src/mx/charts/chartClasses/CartesianChart.as:922]
> 	at mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/core/UIComponent.as:8482]
> 	at mx.managers::LayoutManager/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:605]
> 	at mx.managers::LayoutManager/doPhasedInstantiation()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:821]
> 	at mx.managers::LayoutManager/doPhasedInstantiationCallback()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/managers/LayoutManager.as:1188]
> So the root cause is a heavy chart components dependency on default styles. Those default
 styles are not accessible withing external module loaded in runtime.

This message was sent by Atlassian JIRA

View raw message