Announcement Announcement Module
Collapse
No announcement yet.
SAS can't handle modules? - throws exception as each module loads. help! Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • SAS can't handle modules? - throws exception as each module loads. help!

    Hello, List

    I have a plain ole Flex 3 app made up of many modules. I'm using the SAS and as3Commons libraries listed below. As each module loads, it throws the exception also listed below. After throwing many exceptions, the app runs and works just fine, including the SAS autowiring and EventBus. Does anyone know what needs to be done to use SAS WITHOUT the exceptions? My corporate users do not like clicking thru them

    One of the exceptions:
    Error: A class with the name 'one.of.my.modules.Modulea::Modulea' could not be found.
    at org.as3commons.lang::ClassUtils$/forName()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:84]
    at org.as3commons.lang::ClassUtils$/forInstance()[/home/christophe/IdeaProjects/as3commons/as3-commons-lang/src/main/actionscript/org/as3commons/lang/ClassUtils.as:50]
    at org.as3commons.reflect::Type$/forInstance()[/home/christophe/IdeaProjects/as3commons/as3-commons-reflect/src/main/actionscript/org/as3commons/reflect/Type.as:98]
    at org.springextensions.actionscript.metadata::Metada taProcessorObjectPostProcessor/processObject()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\metadata\MetadataProcessorObjectPostPro cessor.as:152]
    at org.springextensions.actionscript.metadata::Metada taProcessorObjectPostProcessor/postProcessBeforeInitialization()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\metadata\MetadataProcessorObjectPostPro cessor.as:92]
    at org.springextensions.actionscript.ioc.factory.supp ort::AbstractObjectFactory/doPostProcessingBeforeInitialization()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\ioc\factory\support\AbstractObjectFacto ry.as:860]
    at org.springextensions.actionscript.ioc.factory.supp ort::AbstractObjectFactory/wire()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\ioc\factory\support\AbstractObjectFacto ry.as:575]
    at org.springextensions.actionscript.stage:efaultAutowiringStageProcessor/process()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\stage\DefaultAutowiringStageProcessor.a s:162]
    at org.springextensions.actionscript.stage::FlexStage ProcessorRegistry/processDisplayObjectWithStageProcessorRegistration ()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\stage\FlexStageProcessorRegistry.as:297]
    at org.springextensions.actionscript.stage::FlashStag eProcessorRegistry/processDisplayObject()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\stage\FlashStageProcessorRegistry.as:44 4]
    at org.springextensions.actionscript.stage::FlashStag eProcessorRegistry/processDisplayObjectRecursively()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\stage\FlashStageProcessorRegistry.as:46 7]
    at org.springextensions.actionscript.stage::FlashStag eProcessorRegistry/added_handler()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\ac tionscript\stage\FlashStageProcessorRegistry.as:17 2]
    at flash.display:isplayObjectContainer/addChildAt()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
    at mx.core::Container/addChildAt()
    at mx.core::Container/addChild()
    at mx.modules::ModuleLoader/moduleReadyHandler()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ModuleInfoProxy/moduleEventHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\modules\ModuleManager.as:1097]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at ModuleInfo/readyHandler()[C:\autobuild\3.2.0\frameworks\projects\framework\s rc\mx\modules\ModuleManager.as:752]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.core::FlexModuleFactory/update()
    at mx.core::FlexModuleFactory/docFrameHandler()

    my libraries:
    as3commons-bytecode-0.7.swc
    as3commons-lang-0.3.swc
    as3commons-logging-1.2.swc
    as3commons-reflect-1.3.1.swc
    spring-actionscript-cairngorm-1.1.swc
    spring-actionscript-core-1.1.swc

    Thanks,
    Libby

  • #2
    Hey Libby,

    I'm not sure what's going wrong here, is it possible for you to post a sample app that demonstrates this problem? That'll make it easier for me to find the root of the problem.

    Thanks in advance,


    cheers,

    Roland

    Comment


    • #3
      Metadata vs MetaData

      Which version of as3Commons did you guys intend for use with Spring ActionScript Core 1.1? You have renamed MetaData to Metadata as well as several similiar objects in as3Commons lang and reflect, but they are not changed in ActionScript Core 1.1, which depends on these libraries. Please advise.

      Thanks,
      Libby

      Comment


      • #4
        Hi Libby,

        you can try to set the ModulePolicy in your main loading application:

        Code:
        FlexStageProcessorRegistry.getInstance().modulePolicy = ModulePolicy.IGNORE;
        This should switch off autowiring for the main loading application but should enable autowiring in your modules.

        Regards,
        Christoph

        Comment

        Working...
        X