org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleMessageListenerContainer' defined in class path resource [org/springframework/cloud/aws/messaging/config/annotation/SqsConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.amazonaws.services.sqs.AmazonSQSAsync]: : No qualifying bean of type [com.amazonaws.services.sqs.AmazonSQSAsync] is defined: expected single matching bean but found 2: amazonSQSAsync,amazonSQS; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.amazonaws.services.sqs.AmazonSQSAsync] is defined: expected single matching bean but found 2: amazonSQSAsync,amazonSQS

Stack Overflow | basu | 1 week ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Not able to read messages from SQS using @SqsListener

    Stack Overflow | 1 week ago | basu
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'simpleMessageListenerContainer' defined in class path resource [org/springframework/cloud/aws/messaging/config/annotation/SqsConfiguration.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.amazonaws.services.sqs.AmazonSQSAsync]: : No qualifying bean of type [com.amazonaws.services.sqs.AmazonSQSAsync] is defined: expected single matching bean but found 2: amazonSQSAsync,amazonSQS; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.amazonaws.services.sqs.AmazonSQSAsync] is defined: expected single matching bean but found 2: amazonSQSAsync,amazonSQS
  2. 0

    RabbitTemplate dependency of autoconfigured RabbitMessagingTemplate with custom RabbitTemplate

    GitHub | 2 years ago | bijukunjummen
    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: amqpTemplate,rubeExchangeTemplate; 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: amqpTemplate,rubeExchangeTemplate
  3. 0

    Fresh install of Stash 2.12.0 going against mysql. Single user, single project created, single repository. Backup is created successfully. Restore run with this command: java -Djdbc.override=true -Djdbc.driver=com.mysql.jdbc.Driver -Djdbc.url="jdbc:mysql://localhost:3306/stashnew?autoReconnect=true&characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB" -Djdbc.user=stashuser -Djdbc.password=password -Dstash.home="/opt/atlassian/stash" -jar /opt/atlassian/stash-backup-client-1.2.0/stash-restore-client.jar /opt/atlassian/stash-backup-client-1.2.0/backups/stash-20140327-164217-020.tar Results: 2014-03-27 16:44:21,719 INFO Initializing 2014-03-27 16:44:23,199 ERROR The application could not be started. An unexpected error prevented the Spring ApplicationContext from being created. Details of the error follow. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:742) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE] ... 14 more frames available in the log file

    Atlassian JIRA | 3 years ago | Jere Krischel
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Fresh install of Stash 2.12.0 going against mysql. Single user, single project created, single repository. Backup is created successfully. Restore run with this command: java -Djdbc.override=true -Djdbc.driver=com.mysql.jdbc.Driver -Djdbc.url="jdbc:mysql://localhost:3306/stashnew?autoReconnect=true&characterEncoding=utf8&useUnicode=true&sessionVariables=storage_engine%3DInnoDB" -Djdbc.user=stashuser -Djdbc.password=password -Dstash.home="/opt/atlassian/stash" -jar /opt/atlassian/stash-backup-client-1.2.0/stash-restore-client.jar /opt/atlassian/stash-backup-client-1.2.0/backups/stash-20140327-164217-020.tar Results: 2014-03-27 16:44:21,719 INFO Initializing 2014-03-27 16:44:23,199 ERROR The application could not be started. An unexpected error prevented the Spring ApplicationContext from being created. Details of the error follow. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:742) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE] at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196) ~[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE] ... 14 more frames available in the log file

    Atlassian JIRA | 3 years ago | Jere Krischel
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'liquibaseDao' defined in class path resource [META-INF/spring/restore-spring.xml]: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.google.common.base.Supplier]: : No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [com.google.common.base.Supplier] is defined: expected single matching bean but found 2: backupDataSourceSupplier,databaseService
  6. 0

    Spring Security 3.1.4 Multiple login forms on different pages, with the same Authenication Manager

    Stack Overflow | 3 years ago | nilsi
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'providerSignInController' defined in class path resource [com/courseportal/project/config/SocialConfig.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [org.springframework.security.web.savedrequest.RequestCache]: : No qualifying bean of type [org.springframework.security.web.savedrequest.RequestCache] is defined: expected single matching bean but found 2: org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#1; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type [org.springframework.security.web.savedrequest.RequestCache] is defined: expected single matching bean but found 2: org.springframework.security.web.savedrequest.HttpSessionRequestCache#0,org.springframework.security.web.savedrequest.HttpSessionRequestCache#1

  1. Andreas Häber 6 times, last 2 weeks ago
  2. tvrmsmith 4 times, last 2 weeks ago
  3. treefolk 4 times, last 1 month ago
  4. Hronom 2 times, last 1 month ago
  5. batwalrus76 7 times, last 2 months ago
11 more registered users
57 unregistered visitors
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.amazonaws.services.sqs.AmazonSQSAsync] is defined: expected single matching bean but found 2: amazonSQSAsync,amazonSQS

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency()
  2. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1054)
    2. org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:942)
    3. org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:813)
    4. org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:741)
    5. org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:464)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1111)
    7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1006)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:504)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
    10. org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
    11. org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
    12. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
    13. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    14. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)
    14 frames
  3. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
    2. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
    3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
    4 frames
  4. sb.aws.sqs
    SBSQSMain.main
    1. sb.aws.sqs.SBSQSMain.main(SBSQSMain.java:14)
    1 frame