Results 1 to 10 of 50

Thread: Flex modules and application context loading

Threaded View

  1. #11

    Default hmmmm, not working for me...

    Hi Roland,

    finally some time to do some tests. As my own more complex project doesn't work, i tried the example multi module app from svn in the samples dir.

    But i cannot get that one to work either. In the project setup i defined both modules as modules for the main app and to optimize them both. i'm using the latest source for sas from svn and link that directly into the test project. here's the error (part of it):

    Code:
    :
    ....
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.Label4'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.HRule6'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module1'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.HRule8'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module2'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Stage processing completed
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - FlexStageProcessorRegistry was initialized
    [SWF] Users:arnoudbos:Desktop:AgileFlex2:_poc_multi_module_sas:bin-debug:modules:SASDemoModule1.swf - 90,693 bytes after decompression
    [SWF] Users:arnoudbos:Desktop:AgileFlex2:_poc_multi_module_sas:bin-debug:modules:SASDemoModule2.swf - 90,409 bytes after decompression
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading object definitions
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading XML object definitions from [module1-context.xml]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading object definitions
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.context.support.XMLApplicationContext - Loading XML object definitions from [module2-context.xml]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.context.support.XMLApplicationContext - No external properties file reference found.
    Sat Oct 24 23:11:21 GMT+0200 2009 INFO - org.springextensions.actionscript.ioc.factory.support.DefaultListableObjectFactory - Pre-instantiating singletons in [object FlexXMLApplicationContext]
    Sat Oct 24 23:11:21 GMT+0200 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClass is not defined. The class 'classes.ModuleClass' is probably an internal class or it may not have been compiled.
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - New stage processor '[object DefaultAutowiringStageProcessor]' was registered with name 'defaultAutowiringStageProcessor' and existing [object FlexStageDefaultObjectSelector]
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.stage.FlexStageProcessorRegistry - Process UIComponent '_poc_multi_module_sas0.module1.SASDemoModule1_13'
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Can't find a prototype scoped IObjectDefinition whose type match the object type for _poc_multi_module_sas0.module1.SASDemoModule1_13
    Sat Oct 24 23:11:21 GMT+0200 2009 DEBUG - org.springextensions.actionscript.ioc.wire.DefaultObjectDefinitionResolver - Using default IObjectDefinition for _poc_multi_module_sas0.module1.SASDemoModule1_13
    ReferenceError: Error #1065: Variable ISASModule is not defined.
    	at global/flash.utils::getDefinitionByName()
    	at org.as3commons.lang::ClassUtils$/getImplementedInterfaces()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:282]
    	at org.as3commons.reflect::Type$/forClass()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:156]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/getUnclaimedSimpleObjectProperties()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:412]
    	at org.springextensions.actionscript.ioc.autowire::DefaultAutowireProcessor/autoWire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/autowire/DefaultAutowireProcessor.as:157]
    	at org.springextensions.actionscript.ioc.factory.support::AbstractObjectFactory/wire()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/ioc/factory/support/AbstractObjectFactory.as:321]
    	at org.springextensions.actionscript.stage::DefaultAutowiringStageProcessor/process()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/DefaultAutowiringStageProcessor.as:151]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processStageComponentWithRelevantProcessors()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:288]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processUIComponent()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:261]
    	at org.springextensions.actionscript.stage::FlexStageProcessorRegistry/processStage()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/stage/FlexStageProcessorRegistry.as:439]
    	at org.springextensions.actionscript.context.support::FlexXMLApplicationContext/completeHandler()[/Users/arnoudbos/Desktop/development/flex frameworks svn/spring-actionscript/trunk/spring-actionscript-core/src/main/actionscript/org/springextensions/actionscript/context/support/FlexXMLApplicationContext.as:302]
    	at flash.events::EventDispatcher/dispatchEventFunction()
    	at flash.events::EventDispatcher/dispatchEvent()
    ....
    I'm i missing settings here or does it break at your computer too with the current version of sas?

    Also note the next warning which is suspicious, cause the class is directly created in module a so it's definately compiled in...

    Code:
    Sat Oct 24 23:11:21 GMT+0200 2009 WARN - org.as3commons.reflect.Type - Type.forName error: Error #1065: Variable ModuleClass is not defined. The class 'classes.ModuleClass' is probably an internal class or it may not have been compiled.
    cheers Arnoud
    Last edited by arnoudb; Oct 24th, 2009 at 04:31 PM.

Posting Permissions

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