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
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  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]

    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