Chart causing error 1009 when enabling compatibility mode in Flash Builder 4

Hello.
I'm trying to use the chart components in Flash Builder 4. I'm using Flex SDK 4, but had to turn on the "Flex 3 compatibility mode" for some off-topic reasons.
I simply created a new application and copied the code from the DateTimeAxis class example: http://www.codigoactionscript.org/langref/as3/mx/charts/DateTimeAxis.html#includeExamplesS ummary
When running the example, the following error is reported (sorry, it is in italian: it's simply the "null object" error):
TypeError: Error #1009: Impossibile accedere a una proprietà o a un metodo di un riferimento oggetto null.
at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
Is there a solution to this bug? We really need to use charts AND keep the Flex 3 compatibility mode.

I use SDK 4.1 but I also get the error: (Flashbuilder 4.0.1 in Flex 3 compatibility mode)
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts.chartClasses::CartesianChart/updateMultipleAxesStyles()[E:\dev\4.0.0\frameworks \projects\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:2598]
    at mx.charts.chartClasses::CartesianChart/commitProperties()[E:\dev\4.0.0\frameworks\project s\datavisualization\src\mx\charts\chartClasses\CartesianChart.as:1360]
    at mx.core::UIComponent/validateProperties()[E:\dev\4.0.0\frameworks\projects\framework\src\ mx\core\UIComponent.as:7772]
    at mx.managers::LayoutManager/validateProperties()[E:\dev\4.0.0\frameworks\projects\framewor k\src\mx\managers\LayoutManager.as:572]
    at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.0.0\frameworks\projects\frame work\src\mx\managers\LayoutManager.as:700]
    at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.0.0\frameworks\projec ts\framework\src\mx\managers\LayoutManager.as:1072]
So I guess it is not solved....
regards,

Similar Messages

  • HT203255 Why "Include Text CD" option causes error 4000 when burning disk on Itunes?

    Why "Include Text CD" option causes error 4000 when burning disk on Itunes?

    After running a diagnostics check in iTunes for CD/DVD drives it passed successfully:
    Microsoft Windows 8 x64 Home Premium Edition (Build 9200)
    Dell Inc. Inspiron 5421
    iTunes 11.0.4.4
    QuickTime 7.7.4
    FairPlay 2.4.14
    Apple Application Support 2.3.4
    iPod Updater Library 10.0d2
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 6.1.0.13
    Apple Mobile Device Driver 1.64.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 1.9.6.502
    Gracenote MusicID 1.9.6.115
    Gracenote Submit 1.9.6.143
    Gracenote DSP 1.9.6.45
    iTunes Serial Number xxx
    Current user is an administrator.
    The current local date and time is 2013-06-29 16:42:52.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    **** External Plug-ins Information ****
    No external plug-ins installed.
    Genius ID: fc2309a02da463fa503e9fbc2dbb6401
    iPodService 11.0.4.4 (x64) is currently running.
    iTunesHelper 11.0.4.4 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    No drivers in LowerFilters.
    UpperFilters: GEARAspiWDM (2.2.3.0),
    D:   HL-DT-ST DVD+/-R, Rev 
    Audio CD in drive.
    Found 8 songs on CD, playing time 27:37 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:55:20
    Track 3, start time 07:17:07
    Track 4, start time 11:37:15
    Track 5, start time 14:40:03
    Track 6, start time 17:46:68
    Track 7, start time 20:52:56
    Track 8, start time 24:52:26
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are:   4 8 10 16 20 24.
    The drive CDRW speeds are:   4.
    The drive DVDR speeds are:   4.
    The drive DVDRW speeds are:   4.
    The last failed audio CD burn had error code 4310(0x000010d6). It happened on drive D:   HL-DT-ST DVD+/-R on CDR media at speed 10X.

  • Error #1009 when creating apps in App Builder

    Customers using DPS App Builder to create applications with .mobileprovision files created in the iTunes  Developer Portal after 7/17/2014 are experiencing error #1009 when attempting to create the application. This only impacts customers using .mobileprovision files created after 7/17/2014. Older .mobileprovision files will work correctly.
    We are investigating the changes necessary to update App Builder to support recent changes to the .mobileprovision files generated by the iTunes Developer Portal. An update will be posted to http://status.adobedps.com/ by Monday, July 21st, at 8am PDT.
    Neil

    Hi,
    Based on my research, there are many factors can cause this issue. For more details, we can refer to the following possible causes:
    Some configuration did not configure well. Open the Reporting Services Configuration Manager to check all the configuration, see
    http://msdn.microsoft.com/en-us/library/aa337424(v=sql.110).aspx on Reporting Services Tools.
    In the reporting services configuration manager tool, rebuild the virtual directory of report manager/report server.
    If the report server enables SSL, recreate a certificate and then rebind it to report server.
    It may resulted in config file of the report server / service.
    changing the AuthyenticatonTypes to RSWindowsNTLM in the report server config file.
    Besides, the issue can also be caused by the web.config for the SharePoint site was not correctly modified by the Reporting Services Add-in for SharePoint. For more details, please see the following posts:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/a8a66827-0995-4f87-bcae-f7750fa5d3fa/error-client-rendering-the-remote-server-returned-an-error-403-forbidden?forum=sqlreportingservices
    http://www.sqlservercentral.com/Forums/Topic780464-150-1.aspx#top
    Hope this helps.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Using papervision in flash builder and getting TypeError: Error #1009: when using object.pitch(5)

    When i use papervision in flash builder and i am doing a test, when i render a sphere using papervision with the following code it renders me the sphere.
    When i add a line sphere.pitch(2);      ||
    sphere.yaw(2);
    sphere.roll(2);
    i get the following error,
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at PvTest/onRenderTick()[D:\Android 3D\PvTest\src\PvTest.as:39]
    Can anyone help me figure out the error
    For additional Info, these are the imports i am doing:
    import org.papervision3d.objects.primitives.Sphere;
    import org.papervision3d.view.BasicView;

    I followed the steps and read some of your comments on the same top topic in another thread. When I put it on the first frame it was okay but the next button on that page had the same problem.  So what I am guessing is that I have to either create a document class or put the actions where the buttons are.  Am I understanding that correctly?  In the other thread in which you helped someone else; there was so comments about document class.  I found a tutorial on it and the way I understand it is that it you can put you actions in an external document.  But you have to include in the event listener the frame in which you want that action to happen.
    Thaks for your help.  And patience.

  • Cannot read a file using Acrobat SDK in Adobe Reader 11 when Enable Protected Mode is checked

    I wrote a plugin using Acrobat SDK which reads a temporary file created by another program in TEMP folder. In Adobe 10, plugin can read the temporary file and everything works. In Adobe Reader 11, plugin fails to read the temporary file when Enable Protected Mode option is checked. When I uncheck this option, everything works fine. Our customers are concerned about disabling this option. Please let me know if there is a workaround for this issue without unchecking the option. Thank you.
    -Srilatha

    Thank you! That worked!
    -Srilatha

  • Having drop frame error messages when in playback mode?any feed back on what i might do , Idont have a serial number and Im currently not upgraded ththe 10.03 i am in 10.00?

    I am getting drop frame error messages when in playback mode (final cut pro 10)? Any feed back on what i might do , I dont have a serial number and Im currently not upgraded to the 10.03 I am in 10.00. I inherited the finalcut pro from my old computer and now have the IMac 27! ant suggestion other than upgrade!
      chevas

    If you have FCPX (10) you can upgrade for free at the MacApp Store.
    Did you click "proxy media" when importing? That will help playback.

  • What does mean error 1009 when download from appstore?

    What does mean error 1009 when download from appstore?
    This is not fair only for my location or anything I have a product and expect to support my device
    This is not question I got my answer on other posts but didn't satisfactory.
    Thank you.

    I got this iphone from a guy and everytime i tried to update the applications stored in this phone it keeps asking me the password that the guy used to use, even thou i created a new apple ID of my own and updated the account of icloud and everything in this iphone with the new apple ID, it still asks me the password of the account that the guy used to use whenever i tried to update the applications, and i cant find the guy who gave me this iphone...wt should i do???

  • Caused error -3256 when attempting to connect to external speakers.

    I'm trying to connect to my Airport express using a PC running Windows XP home Edition SP 3 with iTunes 8.0.2 and getting the following error
    caused error -3256 when attempting to connect to external speakers.
    I've searched on teh internet and everything seems to relate to the Mac OS.
    Anyone running XP had similar issues?
    My AirportExpress is running FM 6.3
    Thanks
    Marcus

    After reading this discussion thread, I've seemed to have solved the problem for myself. I'm using the Trend Micro PC-Cillin Firewall. I disabled it and the airtunes worked. So, I went into the firewall settings. There's the ability to edit the profile and add to an exceptions list. You select the executable program, select incoming or outgoing, I accepted the other default settings and it worked.

  • Getting an Error:5 when I try to start Flash Professional CS4.  Other Adobe products seem fine.  Running in Windows 8, 64bit

    Getting an Error:5 when I try to start Flash Professional CS4.  Other Adobe products seem fine.  Running in Windows 8, 64bit

    reset your flash pro preferences, Re-create preferences

  • Get client browser version in C# (When IE Compatibility mode enabled)

    We need to know client's browser version from C# code (Server side). We use Request.Browser or HTTP_USER_AGENT to get the details.
    However, In IE when compatibility mode is enabled it always returns IE 7 version irrespective of version of IE. ie, even in IE 11 when compatibility mode enabled it returns IE 7 but I want actual version which is IE 11. Is there any way I can get actual IE
    version?

    this is a c# forums section, you can post in the asp.net forums:>
    forums.asp.net
    Mark as answer or vote as helpful if you find it useful | Ammar Zaied [MCP]

  • Addin is not loaded when in compatibility mode

    Hi there!
    I have a plugin that is loaded on my machine when I start Word 2010 as I want it to do. But if I load documents from Word 97 or 2003 and the application starts in compatibility mode my plugin is not loaded.
    Is threre anywhere a switch in my project properties or in word to make the plugin work in compatibility mode too?
    Regards Sebastian

    Hello Sebastian,
    There is no special settings for that. Did you have a chance to check out the COM Add-ins list in Word?
    Is your add-in listed in the Disabled Items list?
    Microsoft Office applications can disable add-ins that behave unexpectedly. If an application does not load your add-in, the application might have hard disabled or soft disabled your add-in.
    Hard disabling can occur when an add-in causes the application to close unexpectedly. It might also occur on your development computer if you stop the debugger while the
    Startup event handler in your add-in is executing.
    Soft disabling can occur when an add-in produces an error that does not cause the application to unexpectedly close. For example, an application might soft disable an add-in if it throws an unhandled exception while the
    Startup event handler is executing.
    When you re-enable a soft-disabled add-in, the application immediately attempts to load the add-in. If the problem that initially caused the application to soft disable the add-in has not been fixed, the application will soft disable the add-in again.
    You can read more about that in the
    How to: Re-enable an Add-in That Has Been Disabled article in MSDN.

  • Module Chart component Error #1009: Cannot access a property or method of a null object reference

    Is there a known bug when displaying a chart component that is defined in a module. When attempting to display a chart component defined in a module it crashes indicating Error #1009: Cannot access a property or method of a null object reference.
    It crashes at the following location in ChartBase.as. Somehow when loading the chart the  styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase"); returns null so when using the setStyle methods the exception occurs.
    private function initStyles():Boolean
            HaloDefaults.init(styleManager);
      var chartBaseStyle:CSSStyleDeclaration = styleManager.getStyleDeclaration("mx.charts.chartClasses.ChartBase");
      chartBaseStyle.setStyle("chartSeriesStyles", HaloDefaults.chartBaseChartSeriesStyles);
      chartBaseStyle.setStyle("fill", new SolidColor(0xFFFFFF, 0));
      chartBaseStyle.setStyle("calloutStroke", new SolidColorStroke(0x888888,2));
            return true;
    Added note: There is a chart component in the application that works fine.  The only way I can get  the chart in the module to display is to add the following workaround preinitializer but it severly impacts the loading of the module. Is there a way around this.
    protected function preinitializeHandler(event:FlexEvent):void
       var styleObjects:Array = FlexGlobals.topLevelApplication.styleManager.selectors;
       for each(var styleObj:String in styleObjects)  {
        var style:CSSStyleDeclaration = FlexGlobals.topLevelApplication.styleManager.getStyleDeclaration(styleObj);
        styleManager.setStyleDeclaration(styleObj, style, true);   
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.charts.chartClasses::ChartBase/initStyles()[E:\dev\4.y\frameworks\projects\charts\src\ mx\charts\chartClasses\ChartBase.as:1862]
    at mx.charts.chartClasses::ChartBase/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\ChartBas e.as:1894]
    at mx.charts.chartClasses::PolarChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\chartClasses\PolarCha rt.as:223]
    at mx.charts::PieChart/set moduleFactory()[E:\dev\4.y\frameworks\projects\charts\src\mx\charts\PieChart.as:203]
    at spark.components::Group/http://www.adobe.com/2006/flex/mx/internal::elementAdded()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\Group.as:1590]
    at spark.components::Group/addElementAt()[E:\dev\4.y\frameworks\projects\spark\src\spark\com ponents\Group.as:1387]
    at spark.components::SkinnableContainer/addElementAt()[E:\dev\4.y\frameworks\projects\spark\ src\spark\components\SkinnableContainer.as:775]
    at mx.states::AddItems/addItemsToContentHolder()[E:\dev\4.y\frameworks\projects\framework\sr c\mx\states\AddItems.as:782]
    at mx.states::AddItems/apply()[E:\dev\4.y\frameworks\projects\framework\src\mx\states\AddIte ms.as:563]
    at mx.core::UIComponent/applyState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UI Component.as:10741]
    at mx.core::UIComponent/commitCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx \core\UIComponent.as:10487]
    at mx.core::UIComponent/setCurrentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\co re\UIComponent.as:10323]
    at mx.core::UIComponent/set currentState()[E:\dev\4.y\frameworks\projects\framework\src\mx\core\UIComponent.as:6425]
    at BloodPressure/bloodpressureDg_selectionChangeHandler()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:311]
    at BloodPressure/__bloodpressureDg_selectionChange()[C:\Users\Mark\Adobe Flash Builder 4.7\BiometricsFlexProject\src\BloodPressure.mxml:41]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::DataGrid/commitInteractiveSelection()[E:\dev\4.y\frameworks\projects\sp ark\src\spark\components\DataGrid.as:3634]
    at spark.components::DataGrid/setSelectionAnchorCaret()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\DataGrid.as:4210]
    at spark.components::DataGrid/grid_mouseDownHandler()[E:\dev\4.y\frameworks\projects\spark\s rc\spark\components\DataGrid.as:4679]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::UIComponent/dispatchEvent()[E:\dev\4.y\frameworks\projects\framework\src\mx\core \UIComponent.as:13152]
    at spark.components::Grid/dispatchGridEvent()[E:\dev\4.y\frameworks\projects\spark\src\spark \components\Grid.as:4038]
    at spark.components::Grid/grid_mouseDownDragUpHandler()[E:\dev\4.y\frameworks\projects\spark \src\spark\components\Grid.as:3883]
    at Function/<anonymous>()[E:\dev\4.y\frameworks\projects\spark\src\spark\utils\MouseEventUti l.as:84]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\4.y\frameworks\projects\framework\s rc\mx\managers\SystemManager.as:2918]

    It appears as though this error has been going on for a while. See the following link http://forums.adobe.com/thread/941849

  • ESSO Error with IE 9 Compatibility Mode

    Can anyone help? We are implementing eSSO with OIM 11.1.2.. When testing the system, we receive an error that Compatibility Mode should be turned off. We can turn off Compatibility mode and the user can access the site fine while they are logged in. But when we try to access the site from a locked screen, we get the following error. "The current compatibility setting is not supported. Disable Compatibility View before running this web page." If you click OK, the page loads fine.
    We have applied GPO's to force the Compatibility Mode Off.

    Hi JimmyWeise,
    Can you try to download Microsoft SilverLight Browser Plugin and install into IE9. Then try to validate the same.

  • Error #1009 when loading a module

    Hello Forum Folks,
    I'm in the process of trying to upgrade our app from 2.0 to
    2.0.1. In this application we have an SWFLoader that loads up
    applications as requested by the user. It worked fine with no
    problems. I'm attempting to use the ModuleLoader in the same way,
    but I am receiving this error:
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mx.managers::HistoryManager$/register()
    at mx.containers::ViewStack/::addedHandler()
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::$addChildAt()[C:\dev\flex_201_gmc\sdk\framewor ks\mx\core\UIComponent.as:4676
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 278]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at com.sundt.addressbook::find_company_criteria/initialize()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.containers::Form/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Form.as :179]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.containers::Form/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\containers\Form.as:1 68]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.containers::Panel/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks \mx\containers\Panel.as:1308]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.containers::Panel/mx.containers:Panel::createChildren()[C:\dev\flex_201_gmc\sdk\framew orks\mx\containers\Panel.as:863]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.core::Container/createComponentFromDescriptor()[C:\dev\flex_201_gmc\sdk\frameworks\mx\ core\Container.as:3721]
    at
    mx.core::Container/createComponentsFromDescriptors()[C:\dev\flex_201_gmc\sdk\frameworks\m x\core\Container.as:3533]
    at
    mx.core::Container/mx.core:Container::createChildren()[C:\dev\flex_201_gmc\sdk\frameworks \mx\core\Container.as:2618]
    at
    mx.core::UIComponent/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\UIComponent. as:4937]
    at
    mx.core::Container/initialize()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 555]
    at com.sundt.addressbook::company_find_app/initialize()
    at mx.core::UIComponent/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\UIComponent.as:4834
    at mx.core::Container/
    http://www.adobe.com/2006/flex/mx/internal::childAdded()[C:\dev\flex_201_gmc\sdk\framework s\mx\core\Container.as:3347
    at
    mx.core::Container/addChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2 280]
    at
    mx.core::Container/addChild()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:221 4]
    at
    mx.modules::ModuleLoader/mx.modules:ModuleLoader::moduleReadyHandler()[C:\dev\flex_201_gm c\sdk\frameworks\mx\modules\ModuleLoader.as:339]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    ModuleManager.as$117::ModuleInfoProxy/ModuleManager.as$117:ModuleInfoProxy::moduleEventHa ndler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\modules\ModuleManager.as:1025]
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    ModuleManager.as$117::ModuleInfo/readyHandler()[C:\dev\flex_201_gmc\sdk\frameworks\mx\mod ules\ModuleManager.as:704]
    I'm not sure what is null, as I don't have the source code
    for the HistoryManager. It seems to be generating an error while
    attempting to initialize a component that is part of the module
    that it is currently loading. The strange part about this is that I
    can load the module a once and then it will error, as show below:
    [SWF] /flex/PMPortal/pmportal-debug.swf - 1,033,911 bytes
    after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    [SWF] /flex/PMPortal/blank_app.swf - 484,084 bytes after
    decompression
    [SWF] /flex/PMPortal/blank_app.swf - 484,084 bytes after
    decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/contact_find_app.swf - 678,199
    bytes after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/personalCompanies/personal_companies_wizard_app.swf
    - 809,691 bytes after decompression
    [SWF]
    /flex/PMPortal/com/sundt/addressbook/company_find_app.swf - 855,412
    bytes after decompression
    TypeError: Error #1009: Cannot access a property or method of
    a null object reference.
    at mx.managers::HistoryManager$/register()
    There are also times that it will error on loading another
    module just once.
    Now, I am loading all my modules through the same
    ModuleLoader without unloading them. I assume that this is correct
    way to do this.
    If I comment out the offending component, everything works
    fine. The components worked fine before when I had them in
    applications.
    Not sure where to go from here... any ideas would be great.
    Thanks in advance.
    --Andy

    quote:
    Originally posted by:
    josh1093
    I am getting the same error loading modules. For me I found
    that changing the layout properties of the container that I am
    loading the module in made the problem appear and go away. I'm
    loading a module as an itemrenderer in a TileList. If I set the
    columnWidth and rowHeight properties of the list then I have
    problems. If I don't set them both, then I get the
    "ModuleManager.as:671" null pointer problem. I'm guessing that by
    setting the size ahead of time for the itemRenderer flex doesn't
    need to query the module until later which gives it time to load.
    Seems like a race condition to me. This is yet another bug in flex.
    My application populates a number of VBox ( the number of
    boxes are based on the xml data). Each VBox loads the module with
    different data set. The module only contain advancedatagrid. The
    VBox's size are preset with percentwidth and percentheight prior
    calling a module loader. I also tried to specified the size in
    pixels. But, no luck.
    Once a while, I got the below messages at the console window
    running in debug mode. Is the unload swf message normal? I have no
    intention to unload the module in my code. If the module shouldn't
    be unload, then obviously there is a problem.
    [SWF] /SARA/CellDashboard.swf - 1,564,059 bytes after
    decompression
    [SWF] /SARA/modules/TrendChart.swf - 1,576,416 bytes after
    decompression
    [SWF] /SARA/modules/StdDataGrid.swf - 1,043,055 bytes after
    decompression
    [SWF] /SARA/modules/StdDataGrid.swf - 1,043,055 bytes after
    decompression
    [SWF] /SARA/modules/AdvDataGrid.swf - 1,259,638 bytes after
    decompression
    [SWF] /SARA/modules/AdvDataGrid.swf - 1,259,638 bytes after
    decompression
    [Unload SWF] /SARA/modules/AdvDataGrid.swf

  • Error 1009 when accessing webservice elements

    I'm learning flex and Flash Builder 4.6 and doing a small example project.
    I've created a mobile app test using a web service. I got the web service to work, creating xml dataset. I can get the flex code to access the web service and read the file. That works so far. The code reads the whole xml file from the web service and presents it. What I don't quite see is how to read only the elements. When I specify the .LastResult.element.element I get Error #1009: Cannot access a property or method of a null object reference. during runtime.
    I can post the  webservice xml result if that helps. Thanks for any insights.
    Here's the code
    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            creationComplete="view1_creationCompleteHandler(event)"
            xmlns:service1="services.service1.*"
            xmlns:uws_lookups="services.uws_lookups.*"
            title="HomeView">
        <fx:Script>
            <![CDATA[
                import mx.rpc.soap.WebService;
                import mx.collections.ArrayCollection;
                import mx.rpc.AsyncResponder;
                import mx.collections.XMLListCollection;
                import mx.events.FlexEvent;
                import mx.rpc.events.ResultEvent;       
                import spark.events.IndexChangeEvent;
                import spark.events.TextOperationEvent;
            ]]>
        </fx:Script>
        <fx:Declarations>
            <s:WebService
                id="SampleDBwebserviceCS"
                wsdl="http://localhost:57074/Service1.asmx?WSDL"
                showBusyCursor="true" 
                useProxy= "false"
                makeObjectsBindable="true">
                <s:operation  name="Getmember" resultFormat="xml">
                </s:operation>
            </s:WebService>
            <s:CallResponder id="GetmemberResult"/>
            <service1:Service1 id="service1"/>
        </fx:Declarations>
        <s:VGroup width="60%" height="60%" color="#10851E" fontFamily="Arial" fontSize="10"
                  fontWeight="normal" horizontalAlign="center" verticalAlign="middle">    
            <s:TextArea id="lblResult" x="2" y="0" width="188" height="234"
                        creationComplete="view1_creationCompleteHandler(event)"
                        text="{GetmemberResult.lastResult}"> 
            </s:TextArea>
            <!-- Returns the whole xml result - all fields  all xml definitions -->
            <!-- Want to return GetmemberResult.lastResult.Sales.FirstName -->
            <!-- however this causes a 1009 error on Sales-->
            <s:Button
                label="Get Data"
                click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult"
                x="10"
                y="568">
            </s:Button>   
        </s:VGroup>
    </s:View>
    1009 error when I insert this property in the <s:Button   tag: 
    click="SampleDBwebserviceCS.Getmember.send(); lblResult.text = SampleDBwebserviceCS.Getmember.lastResult.Sales.FirstName"
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at views::SampleSQLHomeView/___SampleSQLHomeView_Button1_click()[C:\Users\phillip\Adobe Flash Builder 4.6\SampleSQL\src\views\SampleSQLHomeView.mxml:121]

    I'd have to see the xml to say what, but 1009 is what it says - a null reference has no properties, it is null.
    Try tracing out SampleWebServiceCS.GetMember and you'll quickly see where along your .element.element path you have an error.
    (BTW, I've not used s:Operation before, but is your syntax correct?)
    G

Maybe you are looking for