Return-Path: X-Original-To: apmail-flex-issues-archive@minotaur.apache.org Delivered-To: apmail-flex-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7292D11995 for ; Mon, 16 Jun 2014 14:38:02 +0000 (UTC) Received: (qmail 90845 invoked by uid 500); 16 Jun 2014 14:38:02 -0000 Delivered-To: apmail-flex-issues-archive@flex.apache.org Received: (qmail 90822 invoked by uid 500); 16 Jun 2014 14:38:02 -0000 Mailing-List: contact issues-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flex.apache.org Delivered-To: mailing list issues@flex.apache.org Received: (qmail 90630 invoked by uid 99); 16 Jun 2014 14:38:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jun 2014 14:38:02 +0000 Date: Mon, 16 Jun 2014 14:38:02 +0000 (UTC) From: "Stephan Plath (JIRA)" To: issues@flex.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLEX-34118) CartesianChart null pointer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLEX-34118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14032474#comment-14032474 ] Stephan Plath commented on FLEX-34118: -------------------------------------- Workaround: include the desired chart components in the main (shell) application: {code} private var dummyChart: LineChart; private var dummySeries: LineSeries; {code} > 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 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 (v6.2#6252)