2 Replies Latest reply: Apr 21, 2014 11:54 AM by Carlos Esteban Gil RSS

    parsley Event Dispaching module not working

    Carlos Esteban Gil

      **Dispaching event in module with its own moduleContext and configuration ( of messages-commands, services etc , in it ) not working

       

       

      I have an s:app called main.mxml:

       

       

      **1) main.mxml:**

       

       

      <s:Application>

       

                <fx:Declarations>

                                    <parsley:ContextBuilder config="{config}"/>

                                    <parsley:Configure />

                </fx:Declarations>

       

       

                <mx:ModuleLoader id="Login" url="Login.swf" ready="moduleInit();"/>

       

       

      </s:application>

       

       

      **2) config.mxml  (*)**

       

       

                <parsley:Objects />  // not using it for now..

       

      **3) Login.mxml ( swf module )**

       

       

                <s:Module >

       

                                    <fx:Declarations>

                                              <parsley:ContextBuilder config="{LoginConfig}" />

                                              <parsley:Configure />

                                    </fx:Declarations>

       

                                    <fx:Script>

                                                        <![CDATA[

       

                                                                  [MessageDispatcher]

                                                                  public var dispatcher:Function;

       

                                                                  private function _onClick():void {

                                                                            dispatcher(new LoginRequestMessage(LoginRequestMessage.LOGIN_REQUEST_MESSAGE));

                                                                  }

                                                        ]]>

                                    </fx:Script>

       

                                    <mx:Canvas>

                                                        <mx:Button label="sendReq" id="btnSnd" click="_onClick()" />

                                    </mx:Canvas>

       

                </s:module>

       

      **4) LoginConfig.mxml (Module Context Configuration)**

       

       

                <parsley:Objects .. >

       

                                    <fx:Declarations>

                                                        <domain:LoginModel/>

                                                        <parsley:DynamicObject type="{LoginService}"/> 

                                                        <parsley:MapCommand type="{LoginCommand}" selector="{LoginRequestMessage.LOGIN_REQUEST_MESSAGE}"/> 

                                    </fx:Declarations>

       

                          <fx:Script>

                                              <![CDATA[

                                                        import Modules.Login.Application.bussiness.commands.*;

                                                        import Modules.Login.Application.bussiness.services.*;

                                                        import Modules.Login.Application.messages.*;

                                              ]]>

                          </fx:Script>

       

                </parsley:Objects>

       

       

      All the configuration is ok ( it works ( the same code ) but it works only if I change s:module to s:panel (or anything different to a module) or if I keep login as a s:module but moving all configuration from loginConfig ( module config file ) to the "main" context defined in  the <s:Appplication> it works too.

       

       

      **So the problem is with modules** : ( the module only works with the first <s:application> context )

       

       

      this is what happens when i run or debug the application:

       

       

      The s:application starts and loads the module, user click on btnSnd button and _onClick() is executed , but when:

       

       

          dispatcher(new LoginRequestMessage(LoginRequestMessage.LOGIN_REQUEST_MESSAGE));

       

       

      is executed -> Nothing Happens . **There is No dispatching**  ( see 4) , LoginConfig.mxml source code , mentioned

      before, for more details.. )

       

       

      so.. when I use module and its context configuration ( it looks like the module is not attached to the context but it's attached to the <s:application> context. 

       

       

      as i said before:

       

      **A)** All Works OK if a move the LoginConfig configuration to the <s:application> context

       

       

      or

       

      **B)** All works OK if a change  Login.mxml  from s:module to any displayObject ,like mx:panel for example, but not a module.. ( if i do that ( not using module ), all works ok even if a leave the conf LoginConfig.mxml (the "second context" containing the conf and not moving its conf to the s:app first context)

       

       

      so, my problem is implementing a module (login) having its own context, configured pointing to its own parsley:objects mxml config file (loginConfig) , and when the module function is disptaching parsley message event in that configured module, nothing happens even when the conf is correct.

       

       

      C) More of the same.. but: All Works OK if I create a new project, and a put only the module and its context conf , its classes ( message, command, service etc) changing the login.mxml from s:Module to s:Application using loginContext as the unique "main" context.. so that's why I can say that configuration of commands, messages, etc involved in this short example works ok but only doesn't work when using a module and the conf in its own context.

       

       

      I have made lot of tries but nothing works.. i need to solve this proble as soon as possible, meanwhile, I decided to put all configiration in  the first context file ( the <s:application> context ) keeping the login as a module ( Option (A) as a temporary solution, but I don't like it.. I need a real solution, thanks a lot for all responses

        • 1. Re: parsley Event Dispaching module not working
          Claudiu Ursica Community Member

          Can you enable parsley logging,

           

              <fx:Declarations>

                  <parsley:ContextBuilder config="whatever"/>

                  <parsley:Configure/>

                 

                  <s:TraceTarget

                      includeCategory="true"

                      includeLevel="true"

                      includeTime="true"

                      level="{LogEventLevel.DEBUG}">

                      <s:filters>

                          <fx:String>org.spicefactory.parsley.*</fx:String>

                      </s:filters>

                  </s:TraceTarget>

              </fx:Declarations>

           

          I remember there is a bug with modules however not long ago I managed to send messages from one module to another and to shell and it worked.

          • 2. Re: parsley Event Dispaching module not working
            Carlos Esteban Gil Community Member

            Thanks.. Yes, I 've enabled Parsley Logging and the output is :

             

            I 'm showing output console first, Using Module ( Login.swf ) just like the exaple code ,

            ( next to it , log of a 2nd version of the same but not modular is showed ( this 2nd no modular version works, and u can see some differences between 2 logs ):

             

            1) First, console output with login.mxml as a s:module :

             

            [SWF] C:\Main.swf - 1,053,865 bytes after decompression

            [SWF] C:\1 - 763,122 bytes after decompression

            [SWF] C:\2 - 1,223,478 bytes after decompression

            [SWF] C:\3 - 1,134,560 bytes after decompression

            [SWF] C:\4 - 445,349 bytes after decompression

            [SWF] C:\5 - 2,083,945 bytes after decompression

            [SWF] C:\bin-debug\Main.swf\[[DYNAMIC]]\6 - 317,875 bytes after decompression

            INFO:  Initialize Flex Support

            [SWF] C:\Login.swf - 230,825 bytes after decompression

            warning: The class mx.collections.ArrayCollection has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.collections.ArrayCollection in the top-level application.  

            warning: The class mx.collections.ArrayList has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.collections.ArrayList in the top-level application.  

            warning: The class mx.messaging.config.ConfigMap has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.messaging.config.ConfigMap in the top-level application.  

            warning: The class mx.messaging.messages.CommandMessage has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.messaging.messages.CommandMessage in the top-level application.  

            warning: The class mx.messaging.messages.CommandMessageExt has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.messaging.messages.CommandMessageExt in the top-level application.  

            warning: The class mx.messaging.messages.HTTPRequestMessage has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.messaging.messages.HTTPRequestMessage in the top-level application.  

            warning: The class mx.messaging.messages.MessagePerformanceInfo has been used in a call to net.registerClassAlias() in _Login_FlexInit. This will cause Login to be leaked. To resolve the leak, define mx.messaging.messages.MessagePerformanceInfo in the top-level application.  

            14:32:53.195 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            14:32:53.261 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            14:32:53.293 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Main0/Main

            14:32:53.293 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Main0/Main

            14:32:53.295 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{config})] without parent

            14:32:53.295 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{config})] without parent

            14:32:53.351 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)] and 2 processor(s)

            14:32:53.351 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)] and 2 processor(s)

            14:32:53.357 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::InputModel],value={ImplicitTypeReference(type=undefined)}) ] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            14:32:53.357 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::InputModel],value={ImplicitTypeReference(type=undefined)}) ] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            14:32:53.359 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.domain::GlobalModel, id = _config_GlobalModel1)] and 0 processor(s)

            14:32:53.359 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.domain::GlobalModel, id = _config_GlobalModel1)] and 0 processor(s)

            14:32:53.361 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property sendMessage in class application.presentationModel::InputModel])] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            14:32:53.361 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property sendMessage in class application.presentationModel::InputModel])] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            14:32:53.362 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)] and 2 processor(s)

            14:32:53.362 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)] and 2 processor(s)

            14:32:53.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::OutputModel],value={ImplicitTypeReference(type=undefined)} )] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            14:32:53.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::OutputModel],value={ImplicitTypeReference(type=undefined)} )] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            14:32:53.364 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageReceiver(scope=null)] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            14:32:53.364 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageReceiver(scope=null)] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            14:32:55.517 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main' with [Context(FlexConfig{config})]

            14:32:55.518 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main' with [Context(FlexConfig{config})]

            14:32:55.546 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Main, id = [[Object 1]])] and 1 processor(s)

            14:32:55.549 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Main, id = [[Object 1]])] and 1 processor(s)

            14:32:55.553 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Main],value={ImplicitTypeReference(type=undefined)})] to managed object with [ObjectDefinition(type = Main, id = [[Object 1]])]

            14:32:55.553 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Main],value={ImplicitTypeReference(type=undefined)})] to managed object with [ObjectDefinition(type = Main, id = [[Object 1]])]

            14:32:55.554 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main' to [Context(FlexConfig{config})]

            14:32:55.554 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main' to [Context(FlexConfig{config})]

            14:32:55.558 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Login_mx_core_FlexModuleFactory]

            14:32:55.558 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Login_mx_core_FlexModuleFactory]

            14:32:55.561 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Login8/Login

            14:32:55.561 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Login8/Login

            14:32:55.561 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{LoginConfig})] with parent(s) [Context(FlexConfig{config})]

            14:32:55.562 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{LoginConfig})] with parent(s) [Context(FlexConfig{config})]

            14:35:02.812 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)] and 1 processor(s)

            14:35:02.812 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)] and 1 processor(s)

            14:35:02.813 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.presentationModel::MainScreenModel],value={ImplicitTypeReferenc e(type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)]

            14:35:02.813 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.presentationModel::MainScreenModel],value={ImplicitTypeReferenc e(type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)]

            14:35:02.814 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.domain::LoginGlobalModel, id = _LoginConfig_LoginGlobalModel1)] and 0 processor(s)

            14:35:02.814 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.domain::LoginGlobalModel, id = _LoginConfig_LoginGlobalModel1)] and 0 processor(s)

            14:36:46.338 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login.Login8' with [Context(FlexConfig{LoginConfig})]

            14:36:46.338 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login.Login8' with [Context(FlexConfig{LoginConfig})]

            14:36:46.360 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Login, id = [[Object 2]])] and 2 processor(s)

            14:36:46.360 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Login, id = [[Object 2]])] and 2 processor(s)

            14:36:46.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property dispatcher in class Login])] to managed object with [ObjectDefinition(type = Login, id = [[Object 2]])]

            14:36:46.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property dispatcher in class Login])] to managed object with [ObjectDefinition(type = Login, id = [[Object 2]])]

            14:36:46.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [InitMethod(method=[Method handleInit in class Login])] to managed object with [ObjectDefinition(type = Login, id = [[Object 2]])]

            14:36:46.363 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [InitMethod(method=[Method handleInit in class Login])] to managed object with [ObjectDefinition(type = Login, id = [[Object 2]])]

            14:37:36.516 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login.Login8' to [Context(FlexConfig{LoginConfig})]

            14:37:36.516 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login.Login8' to [Context(FlexConfig{LoginConfig})]

            14:38:20.949 [INFO] org.spicefactory.parsley.core.messaging.impl.DefaultMessageProcessor Dispatch message '[object LoginRequestMessage]' with 1 receiver(s)

            14:38:20.949 [INFO] org.spicefactory.parsley.core.messaging.impl.DefaultMessageProcessor Dispatch message '[object LoginRequestMessage]' with 1 receiver(s)

             

            2) Second:

             

            Now, I will show you the parsley output of running a second version of the program, where login is now a panel and not a module.  ( I 've only changed s:module to s:panel and in the main s:app  < view:login/> instead of <mx:moduleLoader "login" ../>

             

            The output is almost the same, but it has some differences ( main difference this no modular version works ) ..

             

            The pasley debug console output for this version not using modules: ( this version dispatches the message correctly, when the module  version executes the disptach sentence but nothing happens ) :

             

            So.. No modular Version Debug Output:

             

            [SWF] C:\Main.swf\[[DYNAMIC]]\1 - 763,122 bytes after decompression

            [SWF] C:\Main.swf - 1,128,395 bytes after decompression

            [SWF] C:\Main.swf\[[DYNAMIC]]\2 - 1,223,478 bytes after decompression

            [SWF] C:\Main.swf\[[DYNAMIC]]\3 - 1,134,560 bytes after decompression

            [SWF] C:\Main.swf\[[DYNAMIC]]\4 - 445,349 bytes after decompression

            [SWF] C:\Main.swf\[[DYNAMIC]]\5 - 2,083,945 bytes after decompression

            [SWF] C:\Main.swf\[[DYNAMIC]]\6 - 317,875 bytes after decompression

            INFO:  Initialize Flex Support

            15:07:33.439 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            15:07:33.441 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using new ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            15:07:33.461 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Main0/Main

            15:07:33.462 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Main0/Main

            15:07:33.465 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{config})] without parent

            15:07:33.465 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{config})] without parent

            15:07:33.534 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)] and 2 processor(s)

            15:07:33.534 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)] and 2 processor(s)

            15:07:33.541 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::OutputModel],value={ImplicitTypeReference(type=undefined)} )] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            15:07:33.541 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::OutputModel],value={ImplicitTypeReference(type=undefined)} )] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            15:07:33.543 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.domain::GlobalModel, id = _config_GlobalModel1)] and 0 processor(s)

            15:07:33.543 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.domain::GlobalModel, id = _config_GlobalModel1)] and 0 processor(s)

            15:07:33.544 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageReceiver(scope=null)] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            15:07:33.544 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageReceiver(scope=null)] to managed object with [ObjectDefinition(type = application.presentationModel::OutputModel, id = _config_OutputModel1)]

            15:07:33.545 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)] and 2 processor(s)

            15:07:33.545 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)] and 2 processor(s)

            15:07:33.546 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::InputModel],value={ImplicitTypeReference(type=undefined)}) ] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            15:07:33.546 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class application.presentationModel::InputModel],value={ImplicitTypeReference(type=undefined)}) ] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            15:07:33.547 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property sendMessage in class application.presentationModel::InputModel])] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            15:07:33.547 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property sendMessage in class application.presentationModel::InputModel])] to managed object with [ObjectDefinition(type = application.presentationModel::InputModel, id = _config_InputModel1)]

            15:07:33.683 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main' with [Context(FlexConfig{config})]

            15:07:33.683 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main' with [Context(FlexConfig{config})]

            15:07:33.716 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Main, id = [[Object 1]])] and 1 processor(s)

            15:07:33.716 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Main, id = [[Object 1]])] and 1 processor(s)

            15:07:33.718 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Main],value={ImplicitTypeReference(type=undefined)})] to managed object with [ObjectDefinition(type = Main, id = [[Object 1]])]

            15:07:33.718 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Main],value={ImplicitTypeReference(type=undefined)})] to managed object with [ObjectDefinition(type = Main, id = [[Object 1]])]

            15:07:33.719 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main' to [Context(FlexConfig{config})]

            15:07:33.719 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main' to [Context(FlexConfig{config})]

            15:07:33.721 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using registered ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            15:07:33.721 [INFO] org.spicefactory.parsley.core.state.manager.impl.DefaultGlobalDomainManager Using registered ApplicationDomain for key [object _Main_mx_managers_SystemManager]

            15:07:33.723 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Login6/Modules.Login::Login

            15:07:33.723 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: Login6/Modules.Login::Login

            15:07:33.723 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{LoginConfig})] with parent(s) [Context(FlexConfig{config})]

            15:07:33.723 [INFO] org.spicefactory.parsley.core.bootstrap.impl.DefaultBootstrapManager Creating Context [Context(FlexConfig{LoginConfig})] with parent(s) [Context(FlexConfig{config})]

            15:07:34.123 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)] and 1 processor(s)

            15:07:34.123 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)] and 1 processor(s)

            15:07:34.123 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.presentationModel::MainScreenModel],value={ImplicitTypeReferenc e(type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)]

            15:07:34.123 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.presentationModel::MainScreenModel],value={ImplicitTypeReferenc e(type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.presentationModel::MainScreenModel, id = _LoginConfig_MainScreenModel1)]

            15:07:34.124 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.domain::LoginGlobalModel, id = _LoginConfig_LoginGlobalModel1)] and 0 processor(s)

            15:07:34.125 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.domain::LoginGlobalModel, id = _LoginConfig_LoginGlobalModel1)] and 0 processor(s)

            15:07:34.127 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login6' with [Context(FlexConfig{LoginConfig})]

            15:07:34.127 [DEBUG] org.spicefactory.parsley.core.view.handler.ViewConfigurationHandler Process view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login6' with [Context(FlexConfig{LoginConfig})]

            15:07:34.156 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])] and 2 processor(s)

            15:07:34.156 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])] and 2 processor(s)

            15:07:34.160 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property dispatcher in class Modules.Login::Login])] to managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])]

            15:07:34.160 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [MessageDispatcher([Property dispatcher in class Modules.Login::Login])] to managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])]

            15:07:34.160 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [InitMethod(method=[Method handleInit in class Modules.Login::Login])] to managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])]

            15:07:34.161 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [InitMethod(method=[Method handleInit in class Modules.Login::Login])] to managed object with [ObjectDefinition(type = Modules.Login::Login, id = [[Object 2]])]

            15:07:34.162 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login6' to [Context(FlexConfig{LoginConfig})]

            15:07:34.162 [DEBUG] org.spicefactory.parsley.core.view.processor.DefaultViewProcessor Add view 'Main.ApplicationSkin2._ApplicationSkin_Group1.contentGroup.Login6' to [Context(FlexConfig{LoginConfig})]

            15:07:42.337 [INFO] org.spicefactory.parsley.core.messaging.impl.DefaultMessageProcessor Dispatch message '[object LoginRequestMessage]' with 1 receiver(s)

            15:07:42.337 [INFO] org.spicefactory.parsley.core.messaging.impl.DefaultMessageProcessor Dispatch message '[object LoginRequestMessage]' with 1 receiver(s)

            15:07:42.352 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = org.spicefactory.lib.command.light::LightCommandAdapter, id = [[Object 3]])] and 0 processor(s)

            15:07:42.352 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = org.spicefactory.lib.command.light::LightCommandAdapter, id = [[Object 3]])] and 0 processor(s)

            15:07:42.356 [DEBUG] org.spicefactory.parsley.core.scope.impl.DefaultScope Discarding command status execute for message '[object LoginRequestMessage]': no matching observer

            15:07:42.356 [DEBUG] org.spicefactory.parsley.core.scope.impl.DefaultScope Discarding command status execute for message '[object LoginRequestMessage]': no matching observer

            15:07:42.358 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.commands::LoginCommand, id = [[Object 4]])] and 1 processor(s)

            15:07:42.358 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.commands::LoginCommand, id = [[Object 4]])] and 1 processor(s)

            15:07:42.358 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property servicio in class Modules.Login.Application.bussiness.commands::LoginCommand],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.commands::LoginCommand, id = [[Object 4]])]

            15:07:42.358 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property servicio in class Modules.Login.Application.bussiness.commands::LoginCommand],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.commands::LoginCommand, id = [[Object 4]])]

            15:07:42.363 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)] and 2 processor(s)

            15:07:42.363 [INFO] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Configure managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)] and 2 processor(s)

            15:07:42.364 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property mainScreenModel in class Modules.Login.Application.bussiness.services::LoginService],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)]

            15:07:42.364 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property mainScreenModel in class Modules.Login.Application.bussiness.services::LoginService],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)]

            15:07:42.364 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.bussiness.services::LoginService],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)]

            15:07:42.365 [DEBUG] org.spicefactory.parsley.core.lifecycle.impl.DefaultManagedObjectHandler Applying [Property(name=[Property model in class Modules.Login.Application.bussiness.services::LoginService],value={ImplicitTypeReference( type=undefined)})] to managed object with [ObjectDefinition(type = Modules.Login.Application.bussiness.services::LoginService, id = _LoginConfig_MxmlDynamicObjectTag1)]

            15:07:42.365 [DEBUG] org.spicefactory.parsley.core.scope.impl.DefaultScope Discarding command status execute for message '[object LoginRequestMessage]': no matching observer

            15:07:42.365 [DEBUG] org.spicefactory.parsley.core.scope.impl.DefaultScope Discarding command status execute for message '[object LoginRequestMessage]': no matching observer

             

            As you can see in this 2nd log, warnings of module version are not present here. Another difference is that  in this no modular version, where login is now a panel and not a module, and where all works ok (dispatching works) , main log differences are  : from 15:07:42.352 to the end of the log. In fact all is almost the same until 15:07:42.337 (included) ( where it says :

             

            15:07:42.337 [INFO] org.spicefactory.parsley.core.messaging.impl.DefaultMessageProcessor Dispatch message '[object LoginRequestMessage]' with 1 receiver(s)

             

            But in modular version nothing more happens, when disptacher is executed for that message nothing is dispatched, but, in this no modular version ( the login panel version ) with same configuration , when the disptacher sentence is executed parsley disptachs the message, and debugger continues to next sentence wich is the loginCommand.execute method ( just as it is expected / configured )

             

            So..

            Could anyOne compare the 2 logs versions ( modular (not working)  vs no modular (panel) (working) ) (both with same mxml:objects parsley configuration file ( LoginConfig.mxml ) , and tell me what I am missing  ?? Thanks a lot!