Uploaded image for project: 'Errai'
  1. Errai
  2. ERRAI-340

org.jboss.errai.ioc.rebind.ioc.exception.UnsatisfiedDependenciesException with Qalifiers and inheritance

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2.0.1.Final
    • Fix Version/s: 3.0.0.M2
    • Component/s: ErraiIOC
    • Labels:
      None

      Description

      Case:

      • interface "A", has a successor interface "B"
      • Both interfaces has their own implementation.
      • ONE of this implementation has a qualifier.

      Then i get the following error when i try to inject with a interface reference and the qualifier:

      [INFO] org.jboss.errai.ioc.rebind.ioc.exception.UnsatisfiedDependenciesException: @> ch.apkern.ui.client.test.InjectionPoint
      [ERROR] at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)
      [INFO] - field org.jboss.errai.codegen.meta.MetaField:ch.apkern.ui.client.test.InjectionPoint.a could not be satisfied for type: ch.apkern.ui.client.test.A
      [ERROR] at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)
      [INFO] Message: ambiguous injection type (multiple injectors resolved): ch.apkern.ui.client.test.A @AQualifier :
      [ERROR] at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
      [INFO] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:ch.apkern.ui.client.test.BImpl @Any
      [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)
      [INFO] matching> org.jboss.errai.ioc.rebind.ioc.injector.TypeInjector:ch.apkern.ui.client.test.AImpl @AQualifier
      [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)
      [INFO] Note: configure an alternative to take precedence or remove all but one matching bean.
      [ERROR] at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

      I have attached an example.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mbarkley Max Barkley
                Reporter:
                werrenmi Michel Werren
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: