On Mon, Feb 3, 2014 at 2:10 PM, Alex Harui <aha...@adobe.com> wrote: > I think the issue is that the series itemRenderer may be set to actual > ClassFactory class instead of an instance of ClassFactory. > > Can you check that in the debugger? > > You are right, the method MXMLDataInterpreter.generateMXMLArray() passes an instance of type mx.core.ClassFactory to BarChartSeries.itemRenderer. No error at this point, rather when itemRenderer.newInstance() is called, the error is thrown.
> Make sure that you don't have stale duplicates of classes like > BarChartSeries and IChartSeries. The itemRenderer property should be of > type Ifactory unless it is stale. > BarChartSeries and IChartSeries look good to me. In the FlexJSJX project, org.apache.flex.charts.supportClasses has these methods: private var _itemRenderer:IFactory; public function get itemRenderer():IFactory { return _itemRenderer; } public function set itemRenderer(value:IFactory):void { _itemRenderer = value; } Thanks, Om > > -Alex > > On 2/3/14 12:36 PM, "OmPrakash Muppirala" <bigosma...@gmail.com> wrote: > > >On Mon, Feb 3, 2014 at 12:32 PM, OmPrakash Muppirala > ><bigosma...@gmail.com>wrote: > > > >> On Mon, Feb 3, 2014 at 12:16 PM, Alex Harui <aha...@adobe.com> wrote: > >> > >>> Does your copy of ClassFactory (in FlexJSUI/src/mx/core) have a > >>> newInstance method? > >>> > >> > >> Yes, it does. > >> > >> > >>> > >>> Did you shutdown and re-start FB? I think it caches SWC and locks > >>>them on > >>> the disk. > >>> > >> > >> Tried shutting down FB, copying over the files again and restarted FB. > >> Same result when I compile the app with FlexJS Debug build tool. > >> > >> > >>> > >>> Check a link-report and see which version of ClassFactory is being > >>>pulled > >>> in. > >>> > >> > >> This is what I see in the linkreport.xml entry for mx.core:ClassFactory: > >> > >> <script > >> > >>name="C:\p\flex_os\workspace\FlexJS\FlexJSSDK_ViaInstaller\frameworks\as\ > >>libs\MXMLCClasses.swc(mx.core:ClassFactory)" > >> mod="1390855527301" size="410" optimizedsize="190"> > >> <def id="mx.core:ClassFactory" /> > >> <pre id="mx.core:IFactory" /> > >> <pre id="Object" /> > >> <dep id="Class" /> > >> </script> > >> > >> Looks okay? > >> > > > >Note: I was not able to add the -link-report=linkreport.xml addition to > >the FlexJS Debug tool config. It seems to confuse the compiler. > > > >I had to add the link report compiler option by going into Project > > >Properties > Flex Compiler > Additional Compiler Arguments. > > > >Not sure if this makes a difference. > > > > > > > >> > >> > >>> > >>> -Alex > >>> > >>> On 2/3/14 11:23 AM, "OmPrakash Muppirala" <bigosma...@gmail.com> > wrote: > >>> > >>> >I made some changes to the FlexJSJX classes and tried to use that > >>>with my > >>> >exisisting FlexJS SDK. Here is what I am doing: > >>> > > >>> >1. In the \flex-asjs\frameworks\as folder, run ant. The following > >>>swc > >>> >files: FlexJSJX, FlexJSUI and MXMLCClasses get created under > >>> >\flex-asjs\frameworks\as\libs folder. > >>> >2. Copy these swc files to the > >>> >"FlexJSSDK_ViaInstaller\frameworks\as\libs" > >>> >folder > >>> >3. Refresh FB project and compile the BarChartExample app with the > >>> >"FlexJS > >>> >(Debug Build)" tool > >>> > > >>> >This is the error message I am seeing. Note that I dont see such > >>>errors > >>> >when I run with the installed SDK's swc files. > >>> > > >>> >Also, I see a file size difference between the ones that came with the > >>> >installer vs. the ones that I built. > >>> > > >>> >I have a feeling this could be related to the flash playerversion > >>>value, > >>> >could it be? I selected 11.9 during the installation process. Does > >>>this > >>> >matter? > >>> > > >>> >Or is it possible that there are some uncommitted files that was used > >>>to > >>> >build the FlexJS binaries. > >>> > > >>> >ReferenceError: Error #1069: Property mx.core:IFactory::newInstance > >>>not > >>> >found on mx.core.ClassFactory and there is no default value. > >>> > at org.apache.flex.charts.beads::ChartItemRendererFactory/set > >>> > >>> > >>>>strand()[C:\p\flex_os\workspace\flexroot\git\flex-asjs\frameworks\as\pr > >>>>oje > >>> > >>> > >>>>cts\FlexJSJX\src\org\apache\flex\charts\beads\ChartItemRendererFactory. > >>>>as: > >>> >76] > >>> > at > >>> > >>> > >>>>org.apache.flex.core::UIBase/addBead()[C:\p\flex_os\workspace\flexroot\ > >>>>git > >>> > >>> > >>>>\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\apache\flex\core\UIB > >>>>ase > >>> >.as:231] > >>> > at > >>> > >>> > >>>>org.apache.flex.html.staticControls::List/addedToParent()[C:\p\flex_os\ > >>>>wor > >>> > >>> > >>>>kspace\flexroot\git\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\a > >>>>pac > >>> >he\flex\html\staticControls\List.as:107] > >>> > at > >>> > >>> > >>>>org.apache.flex.core::UIBase/addElement()[C:\p\flex_os\workspace\flexro > >>>>ot\ > >>> > >>> > >>>>git\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\apache\flex\core\ > >>>>UIB > >>> >ase.as:268] > >>> > at > >>> > >>> > >>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLArray()[C:\p\fl > >>>>ex_ > >>> > >>> > >>>>os\workspace\flexroot\git\flex-asjs\frameworks\as\projects\FlexJSUI\src > >>>>\or > >>> >g\apache\flex\utils\MXMLDataInterpreter.as:192] > >>> > at > >>> > >>> > >>>>org.apache.flex.utils::MXMLDataInterpreter$/generateMXMLInstances()[C:\ > >>>>p\f > >>> > >>> > >>>>lex_os\workspace\flexroot\git\flex-asjs\frameworks\as\projects\FlexJSUI > >>>>\sr > >>> >c\org\apache\flex\utils\MXMLDataInterpreter.as:224] > >>> > at > >>> > >>> > >>>>org.apache.flex.core::ViewBase/addedToParent()[C:\p\flex_os\workspace\f > >>>>lex > >>> > >>> > >>>>root\git\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\apache\flex\ > >>>>cor > >>> >e\ViewBase.as:43] > >>> > at > >>> > >>> > >>>>org.apache.flex.core::Application/addElement()[C:\p\flex_os\workspace\f > >>>>lex > >>> > >>> > >>>>root\git\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\apache\flex\ > >>>>cor > >>> >e\Application.as:289] > >>> > at > >>> > >>> > >>>>org.apache.flex.core::Application/initHandler()[C:\p\flex_os\workspace\ > >>>>fle > >>> > >>> > >>>>xroot\git\flex-asjs\frameworks\as\projects\FlexJSUI\src\org\apache\flex > >>>>\co > >>> >re\Application.as:101] > >>> > > >>> > > >>> >Thanks, > >>> >Om > >>> > >>> > >> > >