Injector is missing a rule to handle injection into target

fox's Avatar


09 Sep, 2011 12:38 PM

Error: Injector is missing a rule to handle injection into target [object LoadFileManagerCommand]. Target dependency: org.robotlegs.mvcs.service::FileManagerService

How do I know where tI have to look for the error ? What is going wrong ?

  1. 1 Posted by fox on 09 Sep, 2011 12:43 PM

    fox's Avatar

    solved by myself, I injected the frong type in the command I did not used the Interface.
    That was the fault :)

  2. 2 Posted by Charles on 10 Sep, 2011 11:47 AM

    Charles's Avatar

    I am having a similar error trying to dispatch an event from a service to be handled by the main views mediator: Error below, been at it for 5 days now

    TypeError: Error #1009: Cannot access a property or method of a null object reference.

    at org.robotlegs.mvcs::Actor/dispatch()[/Development/Projects/Robotlegs/robotlegs-framework/src/org/robotlegs/mvcs/]
  3. 3 Posted by Maciek on 12 Sep, 2011 11:11 PM

    Maciek's Avatar

    Looking at that line in the framework source:

    Either your event dispatcher is null (somewhat unlikely, unless you're explicitly setting it to null somewhere), or the event itself is null. Are you sure your service is trying to dispatch a valid event.

  4. 4 Posted by Charles on 13 Sep, 2011 12:39 PM

    Charles's Avatar

    Thanks Maciek. Wow, finally got it fixed, I was setting the event to null unknowingly. A great relief as I was almost returning to cairngorm.

  5. Ondina D.F. closed this discussion on 01 Nov, 2011 04:18 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac