Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: eventSource=this[lcfirst(eventSourceName)]; remains null in FabricationMediator  (Read 2531 times)
manuraj.dhanda
Jr. Member
**
Posts: 13


View Profile Email
« on: July 04, 2010, 07:49:03 »

I have no clue why eventSource remains null in function initializeReactions() line 497.


:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at org.puremvc.as3.multicore.utilities.fabrication.vo::Reaction/start()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/vo/Reaction.as:81]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/initializeReactions()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:505]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/onRegister()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:577]
at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205]
at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:204]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FlexMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FlexMediator.as:209]
at com.school.admin.modules.student.view::StudentViewMediator/onRegister()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\view\StudentViewMediator.as:44]
at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205]
at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FabricationMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FabricationMediator.as:204]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.mediator::FlexMediator/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/mediator/FlexMediator.as:209]
at com.school.admin.modules.student.view::StudentModuleMediator/onRegister()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\view\StudentModuleMediator.as:23]
at org.puremvc.as3.multicore.core::View/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\core\View.as:205]
at org.puremvc.as3.multicore.patterns.facade::Facade/registerMediator()[C:\Documents and Settings\Owner.CapricornOne\My Documents\My Workspaces\PureMVC\PureMVC_AS3_MultiCore\src\org\puremvc\as3\multicore\patterns\facade\Facade.as:227]
at org.puremvc.as3.multicore.utilities.fabrication.patterns.command::SimpleFabricationCommand/registerMediator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/command/SimpleFabricationCommand.as:144]
at com.school.admin.modules.student.controller::StudentModuleStartupCommand/execute()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\modules\student\controller\StudentModuleStartupCommand.as:16]
at org.puremvc.as3.multicore.utilities.fabrication.core::FabricationController/executeCommand()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/core/FabricationController.as:166]
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()[/Users/sema/Work/projects/personal/fabrication/src/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.utilities.fabrication.patterns.facade::FabricationFacade/startup()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/patterns/facade/FabricationFacade.as:202]
at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/startApplication()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:354]
at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/initializeFabricator()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:323]
at org.puremvc.as3.multicore.utilities.fabrication.components.fabricator::ApplicationFabricator/readyEventListener()[/Users/sema/Work/projects/personal/fabrication/src/org/puremvc/as3/multicore/utilities/fabrication/components/fabricator/ApplicationFabricator.as:363]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:12266]
at mx.core::UIComponent/set processedDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1630]
at mx.core::Container/createComponentsFromDescriptors()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:4173]
at mx.core::Container/createChildren()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3187]
at mx.core::UIComponent/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7250]
at mx.core::Container/initialize()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3129]
at StudentModule/initialize()
at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\UIComponent.as:7142]
at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:3951]
at mx.core::Container/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2616]
at mx.containers::ViewStack/addChildAt()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\containers\ViewStack.as:1426]
at mx.core::Container/addChild()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\Container.as:2534]
at com.school.admin.shell.view::ModulesContainerMediator/moduleReadyListener()[C:\workspace\SchoolAdminAIR\src\main\flex\com\school\admin\shell\view\ModulesContainerMediator.as:136]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfoProxy/moduleEventHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:1168]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at ModuleInfo/readyHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\modules\ModuleManager.as:812]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::FlexModuleFactory/update()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:433]
at mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:582]
at mx.core::FlexModuleFactory/docFrameListener()[E:\dev\4.0.0\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:126]
Logged
rafal.szemraj
Moderator
Full Member
*****
Posts: 41


View Profile WWW Email
« Reply #1 on: July 04, 2010, 09:38:19 »

Hi Manuraj,

This could be the same problem as last time. Please, chek if you have property [lcfirst(eventSourceName)] declared as a public getter in your mediator.
Logged
Pages: [1]
Print