RE: [flexcoders] Error #1009: Property or Mehtod of a null object reference
Works in dev environment but not in production s often is a data service security issue. Any chance that is the case here? If not, consider adding trace statements in your code around the offending area. Run the debug swf from the production server from your dev maching where you have a debug player. You will be able to see the trace statements. I use lines like this: trace(myObject is null? + (myObject == null)); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scowling_beer Sent: Tuesday, September 09, 2008 2:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1009: Property or Mehtod of a null object reference Hello All, Firstly I understand what causes the #1009 error. What I am having trouble with is reproducing it in my flex development environment. I have an application that calls custom components into a ViewStack. When the user changes sections within the viewstack it fires an event which calls a public method called saveSection within the custom component - the section they just left. When debugged and run within my Flex dev environment it works fine, until I deploy it to another development machine. It's then that I get the Error 1009. This is driving me crazy. This code has previously worked fine. I'm happy to post some pseudo code or examples if needed, but generally I'm after advice. If I am viewing the component called into the viewstack... how can it be null? Complicating this is that the same code called for the other sections works as expected! The creationPolicy on the viewstack is all MainApp {changeSectionHandler - oldSection.saveSection()} ViewStack SectionA {saveSection()} SectionB {saveSection()} SectionC {saveSection()} Any help appreciated. Cheers Steve
RE: [flexcoders] Error #1009: Property or Mehtod of a null object reference
Use a debug build so you get line numbers and post the entire stacktrace if it isn't clear where the problem is. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of scowling_beer Sent: Monday, September 08, 2008 11:38 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1009: Property or Mehtod of a null object reference Hello All, Firstly I understand what causes the #1009 error. What I am having trouble with is reproducing it in my flex development environment. I have an application that calls custom components into a ViewStack. When the user changes sections within the viewstack it fires an event which calls a public method called saveSection within the custom component - the section they just left. When debugged and run within my Flex dev environment it works fine, until I deploy it to another development machine. It's then that I get the Error 1009. This is driving me crazy. This code has previously worked fine. I'm happy to post some pseudo code or examples if needed, but generally I'm after advice. If I am viewing the component called into the viewstack... how can it be null? Complicating this is that the same code called for the other sections works as expected! The creationPolicy on the viewstack is all MainApp {changeSectionHandler - oldSection.saveSection()} ViewStack SectionA {saveSection()} SectionB {saveSection()} SectionC {saveSection()} Any help appreciated. Cheers Steve
Re: [flexcoders] Error #1009: Property or Mehtod of a null object reference
Hey, now there's a good idea. Why haven't I thought of that before? (written in a non-sarcastic manner) On Tue, Sep 9, 2008 at 10:14 AM, Alex Harui [EMAIL PROTECTED] wrote: Use a debug build so you get line numbers and post the entire stacktrace if it isn't clear where the problem is. *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *scowling_beer *Sent:* Monday, September 08, 2008 11:38 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Error #1009: Property or Mehtod of a null object reference Hello All, Firstly I understand what causes the #1009 error. What I am having trouble with is reproducing it in my flex development environment. I have an application that calls custom components into a ViewStack. When the user changes sections within the viewstack it fires an event which calls a public method called saveSection *within *the custom component - the section they just left. When debugged and run within my Flex dev environment it works fine, *until * I deploy it to *another *development machine. It's then that I get the Error 1009. This is driving me crazy. This code has previously worked fine. I'm happy to post some pseudo code or examples if needed, but generally I'm after advice. If I am viewing the component called into the viewstack... how can it be null? Complicating this is that the *same* code called for the other sections works as expected! The creationPolicy on the viewstack is all MainApp {changeSectionHandler - oldSection.saveSection()} ViewStack SectionA {saveSection()} SectionB {saveSection()} SectionC {saveSection()} Any help appreciated. Cheers Steve
RE: [flexcoders] error 1009 Solved tabnavigator issue hiding items not shown to user
Setting creationPolicy=all is not recommended. Your application will take much more time to initialize. Generally,we recommend a model/view architecture where the view pulls from the model on creation. Folks who ask this kind of question are usually running into problems pushing model info into the view. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Monday, June 02, 2008 1:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] error 1009 Solved tabnavigator issue hiding items not shown to user if you dont use creationPolicy=all on a TabNavigator it will throw an error 1009 when trying to access objects on multiple tabs not shown hope this helps other users who run into it --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jason B [EMAIL PROTECTED] wrote: Ok i was able to isolate why the error occurs if i reference an object which is in the tabnavigator and that tab is not selected it will throw an error but if i reference a checkbox on the current selected tab its fine?
RE: [flexcoders] ERROR 1009
You're right. The stylesheet is being loaded before the TextArea is created, so it's attempting to apply the style to something that doesn't exist. Yeah, it's annoying, but there are ways around it. Someone on this list who's a better coder than I, may recommend a way to check for the existence of the TextArea first. Or, just make sure the stylesheet is loaded last... From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of smbrinkley6 Sent: Monday, April 21, 2008 9:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ERROR 1009 This is really starting to get on my nerves. I have a TextArea in a Repeater that displays blog comments from a DB. I am trying to style the TextArea so that the links look like links (blue, underlined, hover... etc). However, when I try to use my stylesheet to format the TextArea, I get: Error #1009: Cannot access a property or method of a null object reference. Can someone please help me out? I think it has something to do with the creation/or order of creation of the TextArea. Thanks, S
Re: [flexcoders] Error 1009 when running on different server
the problem isnt in your server machine. When you call from remoteObject to collect data from your cfc you´re trying to fill out the form detail without the response back complete from the collection you invoked. Suggestion is. try to fill the detail page with a way to when the result of method complete, you fill out the master detail page. ex::: remoteobject method namebla result=myresult(event)/ /remoteobject script public function myresult(event:resultevent):void { // code to fill the master detail here } Regards On Dec 11, 2007 8:23 PM, bobklhr [EMAIL PROTECTED] wrote: My app has a master detail layout populated by remote calls to cfcs. The cfc returns a query for the master list and an object for the detail. This works fine on our development server. When I run this on our production server the query is returned ok but I get an error 1009 when it tries to return the object with the details: TypeError: Error #1009: Cannot access a property or method of a null object reference. at orders::OrdersList/::showOrder() at orders::OrdersList/___Operation2_result() ... Both servers appear to be identical (Windows 2003, CF version 7.02 latest hotfixes) I've checked the cfc and they work as expected on both machines. Any idea why the application would work on one server but not on the other? -- Igor Costa www.igorcosta.com www.igorcosta.org
RE: [flexcoders] Error #1009 - Problem running swf on production server
The MyTreeItemRenderer class is compiled in otherwise you'd get a verify error. Somewhere in the data setter it is getting a null reference. If you turn on verbose-stacktrace it will give you the line number. If the item renderer loads images/icons dynamically, the timing of when the loading completes can be really different on a production server. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Flexing... Sent: Thursday, May 31, 2007 8:57 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error #1009 - Problem running swf on production server This is basically a null pointer exception. In your itemrenderer you must be trying to access the variable of an object to probably display the value. The object in this case is null. You need to add nullity check in your code. On Jun 1, 2007, at 12:19 AM, sarah_e_boys wrote: I get the following error when I try and run my application on a production server: TypeError: Error #1009: Cannot access a property or method of a null object reference. at samples::MyTreeItemRenderer/set data() The application works fine if I reference it with http://localhost http://localhost or run if from Flex Builder. I hope it is something very simple regarding a reference to the MyTreeItemRenderer.as class not being compiled into the swf file. I would be grateful for any suggestions...
Re: [flexcoders] Error #1009 - Problem running swf on production server
This is basically a null pointer exception. In your itemrenderer you must be trying to access the variable of an object to probably display the value. The object in this case is null. You need to add nullity check in your code. On Jun 1, 2007, at 12:19 AM, sarah_e_boys wrote: I get the following error when I try and run my application on a production server: TypeError: Error #1009: Cannot access a property or method of a null object reference. at samples::MyTreeItemRenderer/set data() The application works fine if I reference it with http://localhost or run if from Flex Builder. I hope it is something very simple regarding a reference to the MyTreeItemRenderer.as class not being compiled into the swf file. I would be grateful for any suggestions...
Re: [flexcoders] Error 1009 - keyDownHandler - ComboBox
Pode você afixar o traço de pilha cheio? On 4/25/07, Carlos Humberto [EMAIL PROTECTED] wrote: Pessoal, Preciso imensamente da ajuda de vocês. Tenho um combobox populado por um XML em um form. Quando venho preenchendo os dados e pulando os campos com o tab e quando chegue no combobox e pressiono KeyDown aparece o erro abaixo... O que seria isso ? Ja tentei de tudo e o erro persiste... Só nao aparece quando seleciono um valor no combobox com o mouse... O engraçado é q depois q aparece esse erro e clico em OK a tecla KeyDown escolho os itens do campo sem mostrar erros ! Error #1009: Cannot access a property or method of a null object reference. at mx.controls::ComboBox/mx.controls:ComboBox::keyDownHandler() Agradeço qualquer ajuda ! Abraços, Carlos H. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Error #1009 - at mx.managers::FocusManager/::isEnabledAndVisible()
To add a little twist and intrigue to this we only get this error when compiling with Flex 2.0 on a PC. When I take the same code and compile on a Mac with the beta version we don¹t get the error. Thanks, Mike Weiland - Mike Weiland Aspen Tree Media (877)659-1652 | FAX: (512)828-7105 http://www.AspenTreeMedia.com http://www.CertificateCreator.com - Create Print Awards and Certificates On 12/9/06 4:37 PM, Mark R. Jonkman [EMAIL PROTECTED] wrote: I get the following error: TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/::isEnabledAndVisible() at mx.managers::FocusManager/::isValidFocusCandidate() at mx.managers::FocusManager/::getIndexOfNextObject() at mx.managers::FocusManager/::keyDownHandler() When I'm tabbing between elements in my state. I've simplified the application down to 2 states, no scripts just 1 panel in each state, each panel contains a form and a controlbar. Each Form contains a single input field inside a form item. Each control bar contains a single link button. The base state is empty. This is my first Flex application but I think I'm using states correctly Any help or advice would be greatly appreciated. Entire MXML code is contained below. Sincerely Mark R. Jonkman The following is the entire mxml code for the application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal horizontalAlign=center verticalAlign=middle currentState=Login mx:states mx:State name=Login mx:AddChild position=lastChild mx:Panel layout=horizontal horizontalAlign=center id=LoginPanel title=Analyzer Login verticalAlign=middle mx:Form id=LoginForm mx:FormItem label=Username: id=UsernameFormItem width=300 required=false mx:TextInput id=UsernameInput width=100%/ /mx:FormItem /mx:Form mx:ControlBar id=LoginFormControlBar mx:LinkButton label=Forgot password? left=0 verticalCenter=0 id=ForgotPasswordLink click=currentState='ForgotPassword' textAlign=left/ /mx:ControlBar /mx:Panel /mx:AddChild /mx:State mx:State name=ForgotPassword mx:AddChild position=lastChild mx:Panel layout=vertical id=ForgotPasswordPanel title=Forgot Password mx:Form id=EmailForm mx:FormItem label=Email: width=300 id=EmailAddressFormItem required=false mx:TextInput width=100% id=EmailAddressInput / /mx:FormItem /mx:Form mx:ControlBar id=ForgotPasswordControlBar mx:LinkButton label=Return to Login verticalCenter=0 left=0 id=ReturnToLoginLink click=currentState='Login' textAlign=left/ /mx:ControlBar /mx:Panel /mx:AddChild /mx:State /mx:states /mx:Application
Re: [flexcoders] Error #1009: null has no properties.
Hi, If you are using mx:AdChild on the Accordion, try setting the property of the AddChild tag's creationPolicy to 'all'. This way all the children are created and you shouldn't get this error, I had same issues with the TabNavigator. Any other options, well I don't know about yet ;-) The null has no properties just means that the instance that Flex expected to go to is not created yet. Peace, MikeOn 5/8/06, sreedhar reddy [EMAIL PROTECTED] wrote: Hi, I am working with view states. Here, i am getting problem when i moved to next state by clicking a button. the moment i click the button, that takes me to new state and there i have accordian component. here, when i want to brose through the accordian it is showing error as follows:TypeError: Error #1009: null has no properties.at mx.managers::HistoryManager$/save()at mx.containers::Accordion/::commitSelectedIndex()at mx.containers::Accordion/mx.containers:Accordion::commitProperties ()at mx.core::UIComponent/validateProperties()at mx.managers::LayoutManager/validateProperties()at mx.managers::LayoutManager/::doPhasedInstantiation()at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher()Thanks Regards,Sreedhar Yahoo! India Answers: Share what you know. Learn something new. Click here Send instant messages to your online friends - NOW -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- What goes up, does come down. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Error #1009 Troubleshooting
Can you post code that reproduces this and well get it filed? From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Tuesday, March 28, 2006 7:39 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Error #1009 Troubleshooting Matt, Yes, this issue is happening with a full framework install. Thanks, Brendan On 3/28/06, Matt Chotin [EMAIL PROTECTED] wrote: You're using the full framework unlike the other thread right? It might be a bug. It looks like maybe the global style isn't loaded correctly. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Sunday, March 26, 2006 10:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1009 Troubleshooting Reposting this as it got buried in a previous post with an inaccurate subject... Can someone from Adobe shed some light on this type of error? This is occuring within a repeater that has it's dataProvider dynamically changed. I've read the description, and have a general understanding of why this is occurring, but would appreciate it if someone could help me with troubleshooting it. Thanks, Brendan [SWF] C:\Inetpub\wwwroot\MyFile\bin\MyFile-debug.swf - 1,191,862 bytes after decompression TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240] at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit() at products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5] at containers::ContentContainer$cinit() at global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15] at _containers_ContentContainerWatcherSetupUtil$/init() at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Re: [flexcoders] Error #1009 Troubleshooting
Matt,Yes, this issue is happening with a full framework install.Thanks,BrendanOn 3/28/06, Matt Chotin [EMAIL PROTECTED] wrote: You're using the full framework unlike the other thread right? It might be a bug. It looks like maybe the global style isn't loaded correctly. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Sunday, March 26, 2006 10:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1009 Troubleshooting Reposting this as it got buried in a previous post with an inaccurate subject... Can someone from Adobe shed some light on this type of error? This is occuring within a repeater that has it's dataProvider dynamically changed. I've read the description, and have a general understanding of why this is occurring, but would appreciate it if someone could help me with troubleshooting it. Thanks, Brendan [SWF] C:\Inetpub\wwwroot\MyFile\bin\MyFile-debug.swf - 1,191,862 bytes after decompression TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240] at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit() at products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5] at containers::ContentContainer$cinit() at global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15] at _containers_ContentContainerWatcherSetupUtil$/init() at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] Error #1009 Troubleshooting
Youre using the full framework unlike the other thread right? It might be a bug. It looks like maybe the global style isnt loaded correctly. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Brendan Meutzner Sent: Sunday, March 26, 2006 10:15 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Error #1009 Troubleshooting Reposting this as it got buried in a previous post with an inaccurate subject... Can someone from Adobe shed some light on this type of error? This is occuring within a repeater that has it's dataProvider dynamically changed. I've read the description, and have a general understanding of why this is occurring, but would appreciate it if someone could help me with troubleshooting it. Thanks, Brendan [SWF] C:\Inetpub\wwwroot\MyFile\bin\MyFile-debug.swf - 1,191,862 bytes after decompression TypeError: Error #1009: null has no properties. at mx.styles::StyleManager$/http://www.adobe.com/2006/flex/mx/internal::initProtoChainRoots()[C:\dev\beta2\sdk\frameworks\mx\styles\StyleManager.as:240] at products.layout::MainGameLayout/http://www.adobe.com/2006/flex/mx/internal::_MainGameLayout_StylesInit() at products.layout::MainGameLayout$iinit()[C:\dev\beta2\sdk\frameworks\mx\core\UIComponentDescriptor.as:5] at containers::ContentContainer$cinit() at global$init()[C:\Inetpub\wwwroot\BestBuy\containers\ContentContainer.mxml:15] at _containers_ContentContainerWatcherSetupUtil$/init() at mx.managers::SystemManager/mx.managers:SystemManager::frameEndHandler()[C:\dev\beta2\sdk\frameworks\mx\managers\SystemManager.as:1830] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.