2 Replies Latest reply on Mar 24, 2010 1:40 PM by Jerry62712

    How do I read this?

    Jerry62712 Level 1

      I get the warning below (first of two) that I need to make into something that is useful.  Where in it is the information I need such as a module name and line number?  I expect that the error is caused by the custom component having a different property than the object it replaced.  But I use this component a LOT in here and need to know 1) the property that is in error, 2) the module that contains that object and 3) the line number of it.

       

      And most importantly, how do I find this rather than ask someone else?

       

      TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at DHSclasses::AutoResizableTextArea/resizeTextArea()[C:\Flex Builder 3\FSCalc\FSCalc\src\DHSclasses\AutoResizableTextArea.mxml:53]
          at DHSclasses::AutoResizableTextArea/set text()[C:\Flex Builder 3\FSCalc\FSCalc\src\DHSclasses\AutoResizableTextArea.mxml:39]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3588]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.containers::Panel/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\f ramework\src\mx\containers\Panel.as:1526]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.containers::Panel/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\c ontainers\Panel.as:1054]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.containers::Form/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\contai ners\Form.as:274]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.containers::Form/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\containe rs\Form.as:263]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]
          at mx.core::Container/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2519]
          at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\UIComponent.as:5238]
          at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\3.1.0\frameworks\projects\ framework\src\mx\core\Container.as:3298]
          at mx.core::Container/addChildAt()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Co ntainer.as:2210]
          at mx.core::Container/addChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Cont ainer.as:2140]
          at mx.core::Container/createComponentFromDescriptor()[E:\dev\3.1.0\frameworks\projects\frame work\src\mx\core\Container.as:3674]
          at mx.core::Container/createComponentsFromDescriptors()[E:\dev\3.1.0\frameworks\projects\fra mework\src\mx\core\Container.as:3486]
          at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\cor e\Container.as:2582]
          at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\ UIComponent.as:5341]

      TIA,

      Jerry

        • 1. Re: How do I read this?
          msakrejda Level 4

          Stack traces read bottom-to-top.

           

          From from the top, the Flex infrastructure calls:

           

              at mx.core::UIComponent/initialize()[E:\dev\3.1.0\frameworks\projects\framework\sr c\mx\core\UIComponent.as:5341]

           

          That's the method initialize() in the class mx.core.UIComponent. The error occured at line 5341, which is the line where it called the next method in the stack trace:

           

              at mx.core::Container/createChildren()[E:\dev\3.1.0\frameworks\projects\framework\ src\mx\core\Container.as:2582]

           

          This is createChildren() in Container, and the same thing happens again at line 2582. After repeating this throuh Flex framework code a fair number of times, we get to what looks like one of your classes:

           

              at DHSclasses::AutoResizableTextArea/set text()[C:\Flex Builder 3\FSCalc\FSCalc\src\DHSclasses\AutoResizableTextArea.mxml:39]

           

          At line 39, from the text property setter you call the next function:

           

              at DHSclasses::AutoResizableTextArea/resizeTextArea()[C:\Flex Builder 3\FSCalc\FSCalc\src\DHSclasses\AutoResizableTextArea.mxml:53]

           

          At line 53, you attempt to dereference something that is null, and Flash Player throws the TypeError.

           

          The stack trace doesn't tell you any more than that, but hopefully, that should help you figure it out.

          • 2. Re: How do I read this?
            Jerry62712 Level 1

            Unfortunately the component lines don't help.  I've looked at both lines and they don't tell me which of the many occurrences of that object is the problem.  I'm willing to bet that the root problem will be an original object had property "x" and that doesn't exist for the new (AutoResizableTextArea) object.  What I need is to know where in the program the problem is, not where in the object it is.  Sigh.

             

            Thanks for looking at it.  I appreciate it when someone is willing to help a newbie.