tag:robotlegs.tenderapp.com,2009-10-18:/discussions/problems/342-its-back-injector-is-missing-a-ruleRobotlegs: Discussion 2018-10-18T16:35:29Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/84335662011-07-06T17:49:18Z2011-07-06T17:49:18ZIts Back, Injector is missing a rule........<div><p>Hi Joe,</p>
<p>can you paste the whole error message? It might not be for the
service - but the IEventDispatcher that it's missing? Or something
else entirely...</p>
<p>I'm sure we can help you out,</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84335662011-07-06T18:15:54Z2011-07-06T18:15:54ZIts Back, Injector is missing a rule........<div><p>Stray,</p>
<p>Here is the entire error:</p>
<p>`Error: Injector is missing a rule to handle injection into
target [object InitialCommand]. Target dependency:
com.projectrenascent.service::ICharacterService</p>
<pre>
<code>at org.swiftsuspenders.injectionpoints::PropertyInjectionPoint/applyInjection()[/Users/tschneidereit/dev/swiftsuspenders/swiftsuspenders/src/org/swiftsuspenders/injectionpoints/PropertyInjectionPoint.as:42]
at org.swiftsuspenders::Injector/injectInto()[/Users/tschneidereit/dev/swiftsuspenders/swiftsuspenders/src/org/swiftsuspenders/Injector.as:120]
at org.swiftsuspenders::Injector/instantiate()[/Users/tschneidereit/dev/swiftsuspenders/swiftsuspenders/src/org/swiftsuspenders/Injector.as:134]
at org.robotlegs.base::CommandMap/execute()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:168]
at org.robotlegs.base::CommandMap/routeEventToCommand()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:223]
at Function/<anonymous>()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/CommandMap.as:98]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at org.robotlegs.base::ContextBase/dispatchEvent()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/base/ContextBase.as:70]
at com.projectrenascent.context::CharacterCreationContext/startup()[C:\Users\jcolumbe\Desktop\Flash Builder WorkSpaces\ProjectRenescent\CharacterCreationMenu\src\com\projectrenascent\context\CharacterCreationContext.as:63]
at org.robotlegs.mvcs::Context/onAddedToStage()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/Context.as:271]
at flash.display::DisplayObjectContainer/addChildAt()
at mx.managers::SystemManager/preloader_preloaderDoneHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\SystemManager.as:2670]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/displayClassCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:582]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::SparkDownloadProgressBar/initCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\SparkDownloadProgressBar.as:1087]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.preloaders::Preloader/dispatchAppEndEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:380]
at mx.preloaders::Preloader/appCreationCompleteHandler()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\preloaders\Preloader.as:590]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:13128]
at mx.core::UIComponent/set initialized()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\core\UIComponent.as:1818]
at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:842]
at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]`</code>
</pre>
<p>Thanks,<br>
Joe</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/84335662011-07-06T19:05:22Z2011-07-06T19:05:22ZIts Back, Injector is missing a rule........<div><p>Hi Joe - ok, so, normally this would be race conditions.</p>
<p>Following the stack trace, I can see the InitialCommand is being
fired in response to the startup dispatching an event (probably
ContextEvent.STARTUP_COMPLETE ).</p>
<p>Is there any chance that the event is being fired before you
have made the ICharacterService mapping?</p>
<p>Stray</p></div>Straytag:robotlegs.tenderapp.com,2009-10-18:Comment/84335662011-07-06T19:17:54Z2011-07-06T19:17:54ZIts Back, Injector is missing a rule........<div><p>I am such a moron , that was exactly it. Thank you Stray!</p></div>visniktag:robotlegs.tenderapp.com,2009-10-18:Comment/84335662011-07-06T19:28:22Z2011-07-06T19:28:22ZIts Back, Injector is missing a rule........<div><p>You're not a moron at all! Believe me, it's (almost)
<em>always</em> race conditions...</p></div>Stray