Accessibility

TechNote

Runtime error when compiling Datavisualization SWC from extracted source (Flex Builder)

Issue


The source files delivered with Adobe Flex Builder 3.0 Professional (for example, the DMV files that are extracted when the Professional license key is extracted) do not compile into a runnable SWC unless you first modify the dmv_automation_build.xml file.As a result, creating and running any project containing the Advanced Datagrid component results in a runtime, exception and the application does not load.

This issue has been documented as bug FLEXDMV-1626.

Reason


This issue occurs after you enter a valid professional license and then attempt to compile the datavisualization source (ant -f dmv_automation_build.xml). When you create and run any new project using ADG components, the following runtime exception will occur:

TypeError: Error #1007: Instantiation attempted on a non-constructor. at mx.controls::AdvancedDataGridBaseEx/getSeparator()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4130] at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4167] at mx.controls::AdvancedDataGrid/createHeaderSeparators()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0 \fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:1712] at mx.controls::AdvancedDataGridBaseEx/drawSeparators()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:4091] at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGridBaseEx.as:1860] at mx.controls::AdvancedDataGrid/updateDisplayList()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0 \fbpro\projects\datavisualization\src\mx\controls\AdvancedDataGrid.as:5924] at mx.controls.listClasses::AdvancedListBase/validateDisplayList()[C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\fbpro\projects\datavisualization\src\mx\controls\listClasses\AdvancedListBase.as:3071] at mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602] at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:657] at Function/<a href="http://adobe.com/AS3/2006/builtin::apply%28%29">http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460] at mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

Solution


Edit the dmv_automation_build.xml configuration file using the steps below.

  1. Edit the dmv_automation_build.xml configuration file in the <flex builder install dir>\sdks\3.0.0\fbpro directory and replace the following two entries
    • <include-file name="defaults.css" path="${framework.dir} /defaults.css"/>
    • <include-file name="data_management.css" path="${datavisualization.dir}/data_management.css"/>

    with the single line below:
    • <include-file name="defaults.css" path="${datavisualization.dir}/data_management.css"/>
  2. Save the file and rerun the build as ant -f dmv_automation_build.xml.

This solution will produce a valid SWC and eliminate the runtime error.

AlertThis content requires Flash

To view this content, JavaScript must be enabled, and you need the latest version of the Adobe Flash Player.

Download the free Flash Player now!

Get Adobe Flash Player

Creative Commons License

Search Support


Document Details

ID:kb403121

Products Affected:

flexbuilder