Results 1 to 2 of 2

Thread: Error while instantiating class [class Event]

  1. #1
    Join Date
    Dec 2008
    Posts
    15

    Default Error while instantiating class [class Event]

    Hi, I'm using 0.8.1 release with Flex SDK 3.2. This error seems benign as my objects still get wired, but I get this huge stack trace when the context loads. Is this a problem..is there a workaround?

    Code:
    [SWF] C:\SVN\sl-expression-rules-ui\bin-debug\Main.swf - 1,429,275 bytes after decompression
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.springextensions.actionscript.context.support.mxml.MXMLApplicationContext - Loading object definitions from MXML
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.springextensions.actionscript.ioc.factory.xml.XMLObjectFactory - Loading object definitions
    Fri Dec 18 13:34:28 GMT-0500 2009 INFO - org.springextensions.actionscript.ioc.factory.xml.XMLObjectFactory - Loading XML object definitions from [applicationContext.xml]
    Fri Dec 18 13:34:28 GMT-0500 2009 INFO - org.springextensions.actionscript.ioc.factory.support.DefaultListableObjectFactory - Pre-instantiating singletons in [object MXMLApplicationContext]
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Can't find a prototype scoped IObjectDefinition whose type match the object type for Main0
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Using default IObjectDefinition for Main0
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.as3commons.reflect.Type - Error while instantiating class [class Event] with null arguments in order to retrieve constructor argument types: TypeError, 2007
    Message: Error #2007: Parameter type must be non-null.
    Stack trace: TypeError: Error #2007: Parameter type must be non-null.
    	at flash.events::Event()
    	at org.as3commons.lang::ClassUtils$/newInstance()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:309]
    	at org.as3commons.reflect::Type$/getTypeDescription()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:221]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:138]
    	at org.as3commons.reflect::Type$/forName()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:108]
    	at TypeXmlParser$/parseParameters()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:668]
    	at TypeXmlParser$/parseMethodsByModifier()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:656]
    	at TypeXmlParser$/parseMethods()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:631]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:148]
    	at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/wire()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\support\AbstractObjectFactory.as:282]
    	at org.springextensions.actionscript.stage::DefaultAutowiringStageProcessor/process()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\stage\DefaultAutowiringStageProcessor.as:103]
    	at <anonymous>()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\FlexXMLApplicationContext.as:198]
    	at Array$/_forEach()
    	at Array/http://adobe.com/AS3/2006/builtin::forEach()
    	at <anonymous>()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\FlexXMLApplicationContext.as:197]
    	at Array$/_forEach()
    	at Array/http://adobe.com/AS3/2006/builtin::forEach()
    	at org.springextensions.actionscript.context.support::FlexXMLApplicationContext/processInterceptionCandidate()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\FlexXMLApplicationContext.as:195]
    	at org.springextensions.actionscript.context.support::FlexXMLApplicationContext/stageWireObjectHandler()[C:\Users\martino\workspace\SpringActionscript-NEW\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\FlexXMLApplicationContext.as:183]
    	at flash.display::DisplayObjectContainer/addChildAt()
    	at mx.managers::SystemManager/preloader_preloaderDoneHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\SystemManager.as:3131]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at mx.preloaders::Preloader/displayClassCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\Preloader.as:435]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at mx.preloaders::DownloadProgressBar/timerHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1451]
    	at mx.preloaders::DownloadProgressBar/initCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\DownloadProgressBar.as:1503]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at mx.preloaders::Preloader/dispatchAppEndEvent()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\Preloader.as:291]
    	at mx.preloaders::Preloader/appCreationCompleteHandler()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\preloaders\Preloader.as:443]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    	at mx.core::UIComponent/dispatchEvent()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:9408]
    	at mx.core::UIComponent/set initialized()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
    	at mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
    	at Function/http://adobe.com/AS3/2006/builtin::apply()
    	at mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8733]
    	at mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\galaga\frameworks\projects\framework\src\mx\core\UIComponent.as:8673]
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.as3commons.reflect.Type - Error while instantiating class [class ValidationResultEvent] with null arguments in order to retrieve constructor argument types: TypeError, 2007
    Message: Error #2007: Parameter type must be non-null.
    Stack trace: TypeError: Error #2007: Parameter type must be non-null.
    	at flash.events::Event()
    
    Fri Dec 18 13:34:28 GMT-0500 2009 DEBUG - org.as3commons.reflect.Type - Error while instantiating class [class UITextFormat] with null arguments in order to retrieve constructor argument types: ArgumentError, 1063
    Message: Error #1063: Argument count mismatch on mx.core::UITextFormat(). Expected 1, got 0.
    Stack trace: ArgumentError: Error #1063: Argument count mismatch on mx.core::UITextFormat(). Expected 1, got 0.
    
    etc.

  2. #2
    Join Date
    Oct 2008
    Location
    Belgium
    Posts
    160

    Default

    Hi,

    this is not a problem in fact. It is merely some debug output of the reflection library and it won't cause any trouble.

    We realize that this is confusing to people, so we have changed this and it will not occur in the coming release.

    regards,
    Christophe
    Christophe Herreman
    Spring ActionScript Founder
    http://www.herrodius.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •