Hi Darshan,
I have two fabrication database applications that have proxies and delegations, they work fine independently,
I covert them to two modules as FlexModule(moduleA and moduleB)
I use shell load two modules(moduleA and moduleB). it works fine if I load just one of them(moduleA or moduleB). the functions in each module works.
The errors happen when I run any function in any module if I load both module (moduleA and moduleB) with shell.
I use your SimpleModule as an test module(moduleC). each of test module(moduleA and moduleB) works file with moduleC.
This is the summary:
moduleA works fine if shell only load moduleA.
moduleB works fine if shell only load moduleB.
moduleA works fine if shell load moduleA and moduleC.
moduleB works fine if shell load moduleB and moduleC.
moduleA or moduleB doesn't work if shell load moduleA and moduleB.
It seem the database Modules (moduleA and moduleB) can not work when both are loaded.they affect each other
Please let me know how to fix the problem.
Thanks
Mark
ps: error message:
TypeError: Error #1034: Type Coercion failed: cannot convert mx.messaging.messages::AcknowledgeMessageExt@4ffc139 to mx.messaging.messages.IMessage.
TypeError: Error #1034: Type Coercion failed: cannot convert mx.managers::HistoryManagerImpl@ef18089 to mx.managers.IHistoryManager.
at mx.managers::HistoryManager$/get impl()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:96]
at mx.managers::HistoryManager$/unregister()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\managers\HistoryManager.as:144]
at mx.containers::Accordion/removedFromStageHandler()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\containers\Accordion.as:2160]
at flash.display::DisplayObjectContainer/removeChild()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$removeChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\UIComponent.as:5074]
at mx.core::Container/removeChild()[E:\dev\3.1.0\frameworks\projects\framework\src\mx\core\Container.as:2267]
at shell.view::ModulesContainerMediator/unloadModule()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\ModulesContainerMediator.as:110]
at shell.view::ModulesContainerMediator/respondToRemovedFromList()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\ModulesContainerMediator.as:81]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/invokeNotificationHandler()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\mediator\FabricationMediator.as:579]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/handleNotification()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\mediator\FabricationMediator.as:384]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100]
at org.puremvc.as3.multicore.core::View/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:127]
at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationView/notifyObservers()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\core\FabricationView.as:77]
at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294]
at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277]
at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:60]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.proxy::FabricationProxy/sendNotification()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\patterns\proxy\FabricationProxy.as:161]
at shell.model::ListProxy/remove()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\model\ListProxy.as:34]
at shell.model::ListProxy/removeAll()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\model\ListProxy.as:40]
at shell.controller::RemoveAllModulesCommand/execute()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\controller\RemoveAllModulesCommand.as:14]
at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationController/executeCommand()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\core\FabricationController.as:164]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at org.puremvc.as3.multicore.patterns.observer::Observer/notifyObserver()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Observer.as:100]
at org.puremvc.as3.multicore.core::View/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:127]
at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationView/notifyObservers()[D:\Projects\sawardekar\fabrication\googlecode\framework\trunk\src\main\as3\org\puremvc\as3\multicore\utilities\fabrication\core\FabricationView.as:77]
at org.puremvc.as3.multicore.patterns.facade::Facade/notifyObservers()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:294]
at org.puremvc.as3.multicore.patterns.facade::Facade/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:277]
at org.puremvc.as3.multicore.patterns.observer::Notifier/sendNotification()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\observer\Notifier.as:60]
at shell.view::MessageControlBarMediator/removeAllButtonListener()[D:\WORKSPACE\Flex Builder 3\FabricationRounting\src\shell\view\MessageControlBarMediator.as:179]