org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.abc.xyz.Engine] is defined: expected single matching bean but found 2: e1,e2 at org.springframework.beans.factory.annotation. AutowiredAnnotationBeanPostProcessor .postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support. bstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)

  1. 0

    @Qualifier() and @Autowired() not working

    Stack Overflow | 4 months ago | Shaik Yakhoob Ali
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.abc.xyz.Engine] is defined: expected single matching bean but found 2: e1,e2 at org.springframework.beans.factory.annotation. AutowiredAnnotationBeanPostProcessor .postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support. bstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)
  2. 0

    [NMS-7271] Error attempting to get SnmpInterfaces (IpInterfaces) on node page - The OpenNMS Issue Tracker

    opennms.org | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeRestService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.opennms.netmgt.events.api.EventProxy org.opennms.web.rest.NodeRestService.m_eventProxy; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type is defined: expected single matching bean but found 2: eventProxy,eventIpcManager
  3. 0

    Occurred the NoUniqueBeanDefinitionException at PaginationServiceImpl#findPerson

    GitHub | 2 years ago | kazuki43zoo
    org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.transaction.PlatformTransactionManager] is defined: expected single matching bean but found 2: dataSourceTransactionManager,jpaTransactionManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    org.springframework.beans.factory.NoUniqueBeanDefinitionException issue with RabbitMQ

    Stack Overflow | 1 year ago | Qasim
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'rabbitMessagingTemplate' defined in class path resource [org/springframework/boot/autoconfigure/amqp/RabbitAutoConfiguration$MessagingTemplateConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.amqp.rabbit.core.RabbitTemplate]: : No qualifying bean of type [org.springframework.amqp.rabbit.core.RabbitTemplate] is defined: expected single matching bean but found 2: external,internal; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.amqp.rabbit.core.RabbitTemplate] is defined: expected single matching bean but found 2: external,internal
  6. 0

    @EnableConfigurationProperties throws NoUniqueBeanDefinitionException

    GitHub | 2 years ago | sddakoty
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'myService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private de.spring.test.MyProperties de.spring.test.MyService.props; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [de.spring.test.MyProperties] is defined: expected single matching bean but found 2: myProperties,my.CONFIGURATION_PROPERTIES

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.beans.factory.NoUniqueBeanDefinitionException

      No qualifying bean of type [com.abc.xyz.Engine] is defined: expected single matching bean but found 2: e1,e2 at org.springframework.beans.factory.annotation. AutowiredAnnotationBeanPostProcessor .postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) at org.springframework.beans.factory.support. bstractAutowireCapableBeanFactory.populateBean (AbstractAutowireCapableBeanFactory.java:1214) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean (AbstractAutowireCapableBeanFactory.java:543) at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:482) at org.springframework.beans.factory.support. AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton (DefaultSingletonBeanRegistry.java:230) at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons (DefaultListableBeanFactory.java:772) at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization (AbstractApplicationContext.java:839) at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:538) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:139) at org.springframework.context.support. ClassPathXmlApplicationContext.<init> (ClassPathXmlApplicationContext.java:83)

      at com.abc.xyz.ClientApp.main()
    2. com.abc.xyz
      ClientApp.main
      1. com.abc.xyz.ClientApp.main(ClientApp.java:9)
      1 frame