0 Replies Latest reply on Jun 8, 2009 10:46 AM by jobinbasani

    Runtime exception with ADG when compiled with ANT

    jobinbasani

      Hi,

       

      We are using Advanced Data Grid in our project and it compiles and produces a correct SWF file when compiled using the licensed FlexBuilder. This work fine for the development environment, but for the testing and staging environments we use ANT to automate the build process of both Flex and Java components.

      When the swf is built using ANT, we get a runtime exception when the page containing the ADG is accessed in web browser. The exception is

       

      TypeError: Error #1007: Instantiation attempted on a non-constructor.
      at mx.controls::AdvancedDataGridBaseEx/getSeparator()
      at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()
      at mx.controls::AdvancedDataGrid/createHeaderSeparators()
      at mx.controls::AdvancedDataGridBaseEx/drawSeparators()
      at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()
      at mx.controls::AdvancedDataGrid/updateDisplayList()
      at mx.controls.listClasses::AdvancedListBase/validateDisplayList()
      at mx.managers::LayoutManager/validateDisplayList()
      at mx.managers::LayoutManager/doPhasedInstantiation()
      at Function/http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/callLaterDispatcher2()
      at mx.core::UIComponent/callLaterDispatcher()

       

      Can you please suggest me how to fix this error?

       

      Thanks in advance.