org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.cl.service.location.CatalogPageServiceImpl] found f or dependency: expected at least 1 bean which qualifies as autowire candidate fo r this dependency. Dependency annotations: {@org.springframework.beans.factory.a nnotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProc essor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~ [spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.7 .RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) ~[spring-be ans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(Test ContextManager.java:228) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(S pringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflect iveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.R ELEASE]

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

    Why Spring Boot application crashes with @Async annotated method

    Stack Overflow | 8 months ago | Pavlo
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.cl.service.location.CatalogPageServiceImpl] found f or dependency: expected at least 1 bean which qualifies as autowire candidate fo r this dependency. Dependency annotations: {@org.springframework.beans.factory.a nnotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProc essor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~ [spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.7 .RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) ~[spring-be ans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(Test ContextManager.java:228) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(S pringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflect iveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.R ELEASE]

    Root Cause Analysis

    1. org.springframework.beans.factory.NoSuchBeanDefinitionException

      No qualifying bean of type [org.cl.service.location.CatalogPageServiceImpl] found f or dependency: expected at least 1 bean which qualifies as autowire candidate fo r this dependency. Dependency annotations: {@org.springframework.beans.factory.a nnotation.Autowired(required=true)} at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProc essor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:334) ~ [spring-beans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.2.7 .RELEASE.jar:4.2.7.RELEASE] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory .autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:385) ~[spring-be ans-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.injectDependencies(DependencyInjectionTestExecutionListener.java:118) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.support.DependencyInjectionTestExecutionLis tener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83) ~[sp ring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.TestContextManager.prepareTestInstance(Test ContextManager.java:228) ~[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(S pringJUnit4ClassRunner.java:230) [spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE] at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflect iveCall(SpringJUnit4ClassRunner.java:289) [spring-test-4.2.7.RELEASE.jar:4.2.7.R ELEASE]

      at org.junit.internal.runners.model.ReflectiveCallable.run()
    2. JUnit
      ReflectiveCallable.run
      1. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)[junit-4.12.jar:4.12]
      1 frame
    3. Spring TestContext
      SpringJUnit4ClassRunner.runChild
      1. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:291)[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      2. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:249)[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3. org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:89)[spring-test-4.2.7.RELEASE.jar:4.2.7.RELEASE]
      3 frames
    4. JUnit
      ParentRunner.access$000
      1. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)[junit-4.12.jar:4.12]
      2. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
      3. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)[junit-4.12.jar:4.12]
      4. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
      4 frames