Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jtalks.common.model.dao.hibernate.GenericDao org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest.branchGenericDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)
- at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:374)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:110)
- at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)
- at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)
- at org.springframework.test.context.testng.AbstractTestNGSpringContextTests.springTestContextPrepareTestInstance(AbstractTestNGSpringContextTests.java:133)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:74)
- at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:525)
- at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:202)
- at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:130)
- at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:173)
- at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
- at org.testng.TestRunner.runWorkers(TestRunner.java:1147)
- at org.testng.TestRunner.privateRun(TestRunner.java:749)
- at org.testng.TestRunner.run(TestRunner.java:600)
- at org.testng.SuiteRunner.runTest(SuiteRunner.java:317)
- at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:312)
- at org.testng.SuiteRunner.privateRun(SuiteRunner.java:274)
- at org.testng.SuiteRunner.run(SuiteRunner.java:223)
- at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
- at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
- at org.testng.TestNG.runSuitesSequentially(TestNG.java:1039)
- at org.testng.TestNG.runSuitesLocally(TestNG.java:964)
- at org.testng.TestNG.run(TestNG.java:900)
- at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:110)
- at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:205)
- at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:174)
- at org.testng.RemoteTestNGStarter.main(RemoteTestNGStarter.java:111)
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
- at java.lang.reflect.Method.invoke(Method.java:601)
- at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
- Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.jtalks.common.model.dao.hibernate.GenericDao org.jtalks.poulpe.model.dao.hibernate.BranchHibernateDaoTest.branchGenericDao; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:502)
- at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:282)
- ... 37 more
- Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No matching bean of type [org.jtalks.common.model.dao.hibernate.GenericDao] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true), @org.springframework.beans.factory.annotation.Qualifier(value=branchGenericDao)}
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoSuchBeanDefinitionException(DefaultListableBeanFactory.java:920)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:789)
- at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:703)
- at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:474)
- ... 39 more
- null
- null
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement