javax.enterprise.inject.AmbiguousResolutionException: Ambigious resolution found beans:  StringToLongConverter, Name:null, WebBeans Type:MANAGED, API Types:[java.lang.Object,test.StringToLongConverter,test.TypeConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] StringToIntegerConverter, Name:null, WebBeans Type:MANAGED, API Types:[test.TypeConverter,java.lang.Object,test.StringToIntegerConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]

openwebbeans-user | Xavier Dury | 4 years ago
  1. 0

    RE: CDI and ParameterizedTypes

    openwebbeans-user | 4 years ago | Xavier Dury
    javax.enterprise.inject.AmbiguousResolutionException: Ambigious resolution found beans:  StringToLongConverter, Name:null, WebBeans Type:MANAGED, API Types:[java.lang.Object,test.StringToLongConverter,test.TypeConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] StringToIntegerConverter, Name:null, WebBeans Type:MANAGED, API Types:[test.TypeConverter,java.lang.Object,test.StringToIntegerConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
  2. 0

    OWN 1.7 ignores Alternative when using the provider interface

    openwebbeans-user | 4 years ago | Mike Olson
    javax.enterprise.inject.AmbiguousResolutionException: There is more than one api type with : Foo with qualifiers : Qualifiers: [@javax.enterprise.inject.Default()] found beans: Foo1, Name:null, WebBeans Type:MANAGED, API Types:[Foo,Foo1,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] Foo2, Name:null, WebBeans Type:MANAGED, API Types:[Foo,java.lang.Object,Foo2], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
  3. 0

    OWN 1.7 ignores Alternative when using the provider interface

    openwebbeans-user | 4 years ago | Mike Olson
    javax.enterprise.inject.AmbiguousResolutionException: There is more than one api type with : Foo with qualifiers : Qualifiers: [@javax.enterprise.inject.Default()] found beans: Foo1, Name:null, WebBeans Type:MANAGED, API Types:[Foo,Foo1,java.lang.Object], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] Foo2, Name:null, WebBeans Type:MANAGED, API Types:[Foo,java.lang.Object,Foo2], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.enterprise.inject.AmbiguousResolutionException

      Ambigious resolution found beans:  StringToLongConverter, Name:null, WebBeans Type:MANAGED, API Types:[java.lang.Object,test.StringToLongConverter,test.TypeConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default] StringToIntegerConverter, Name:null, WebBeans Type:MANAGED, API Types:[test.TypeConverter,java.lang.Object,test.StringToIntegerConverter], Qualifiers:[javax.enterprise.inject.Any,javax.enterprise.inject.Default]

      at org.apache.webbeans.util.InjectionExceptionUtils.throwAmbiguousResolutionExceptionForBeans()
    2. OpenWebBeans Core
      BeanManagerImpl.validate
      1. org.apache.webbeans.util.InjectionExceptionUtils.throwAmbiguousResolutionExceptionForBeans(InjectionExceptionUtils.java:121)
      2. org.apache.webbeans.util.InjectionExceptionUtils.throwAmbiguousResolutionException(InjectionExceptionUtils.java:111)
      3. org.apache.webbeans.util.InjectionExceptionUtils.throwAmbiguousResolutionException(InjectionExceptionUtils.java:88)
      4. org.apache.webbeans.container.InjectionResolver.resolve(InjectionResolver.java:669)
      5. org.apache.webbeans.container.InjectionResolver.checkInjectionPoints(InjectionResolver.java:189)
      6. org.apache.webbeans.container.BeanManagerImpl.validate(BeanManagerImpl.java:1034)
      6 frames
    3. OpenEJB :: OSGi :: Core
      OpenEJBLifecycle.startApplication
      1. org.apache.openejb.cdi.BeansDeployer.validate(BeansDeployer.java:269)
      2. org.apache.openejb.cdi.BeansDeployer.validateInjectionPoints(BeansDeployer.java:222)
      3. org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:280)
      3 frames