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

Atlassian JIRA | Jere Krischel | 3 years ago
  1. 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
  2. 0

    Restore client cannot start (Spring-IoC-related stack trace). stash-restore-client v .1.2.0 (as you can see below) Below is the command line and the output output of restore client Kirills-MacBook-Pro:stash-backup-client-1.2.0 kirillfrolov$ java -Dstash.home=/Users/kirillfrolov/Documents/atlassian/stash -jar stash-restore-client.jar /Users/kirillfrolov/frameworks/stash-backup-data/backups/stash-20140329-220413-690.tar 2014-03-29 22:15:58,881 INFO Initializing 2014-03-29 22:15:59,412 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 | Kirill Frolov
    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
  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

    Restore client cannot start (Spring-IoC-related stack trace). stash-restore-client v .1.2.0 (as you can see below) Below is the command line and the output output of restore client Kirills-MacBook-Pro:stash-backup-client-1.2.0 kirillfrolov$ java -Dstash.home=/Users/kirillfrolov/Documents/atlassian/stash -jar stash-restore-client.jar /Users/kirillfrolov/frameworks/stash-backup-data/backups/stash-20140329-220413-690.tar 2014-03-29 22:15:58,881 INFO Initializing 2014-03-29 22:15:59,412 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 | Kirill Frolov
    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

    Bean injection issue with java-sproc-wrapper

    Stack Overflow | 2 years ago | Paul Fournel
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'UserSProcService' defined in file [****/target/classes/com/zozor/user/sproc/UserSProcServiceImpl.class]: Unsatisfied dependency expressed through constructor argument with index 0 of type [de.zalando.sprocwrapper.dsprovider.DataSourceProvider]: : No qualifying bean of type [de.zalando.sprocwrapper.dsprovider.DataSourceProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [de.zalando.sprocwrapper.dsprovider.DataSourceProvider] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {}

    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.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()
    2. Spring Beans
      ConstructorResolver.autowireConstructor
      1. org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:742)[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      2. org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)[spring-beans-4.0.0.RELEASE.jar:4.0.0.RELEASE]
      2 frames