org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllerClass': Unsatisfied dependency expressed through field 'serviceClass': No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

Stack Overflow | HelloWorld | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 1

    Error while creating a bean : unsatisfied dependency expressed

    Stack Overflow | 8 months ago | HelloWorld
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'controllerClass': Unsatisfied dependency expressed through field 'serviceClass': No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  2. 0

    Error creating bean after Spring Boot upgrade 1.3.6 -> 1.4.0

    GitHub | 9 months ago | mgorniew
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dataController': Unsatisfied dependency expressed through field 'dataService': Error creating bean with name 'inMemoryRealTimeDataService': Unsatisfied dependency expressed through field 'dataProcessorProvider': Error creating bean with name 'realTimeDataProcessorProvider': Unsatisfied dependency expressed through field 'configurationService': Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeDataProcessorProvider': Unsatisfied dependency expressed through field 'configurationService': Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inMemoryRealTimeDataService': Unsatisfied dependency expressed through field 'dataProcessorProvider': Error creating bean with name 'realTimeDataProcessorProvider': Unsatisfied dependency expressed through field 'configurationService': Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'realTimeDataProcessorProvider': Unsatisfied dependency expressed through field 'configurationService': Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'defaultInstrumentConfigurationService' defined in URL [jar:file:/C:/work/ABB/leak_detection_v2/backend/instrument/data/config/build/libs/instrument-data-config-2.0.0-SNAPSHOT.jar!/com/lgr/leak/instrument/data/config/impl/DefaultInstrumentConfigurationService.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class com.lgr.leak.instrument.data.config.impl.DefaultInstrumentConfigurationService]: Common causes of this problem include using a final class or a non-visible class; nested exception is org.springframework.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
  3. 0

    Spring Boot 1.4 - TestRestTemplate Unsatisfied dependency exception

    Stack Overflow | 8 months ago | WildDev
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.myproject.controllers.MyControllerTest': Unsatisfied dependency expressed through field 'restTemplate': No qualifying bean of type [org.springframework.boot.test.web.client.TestRestTemplate] found for dependency [org.springframework.boot.test.web.client.TestRestTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.boot.test.web.client.TestRestTemplate] found for dependency [org.springframework.boot.test.web.client.TestRestTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring JPA not implementing/autowiring repository despite @EnableJpaRepositories annotation

    Stack Overflow | 6 months ago | Charbel
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationConfig': Unsatisfied dependency expressed through field 'controlRepository'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [com.oak.api.finance.repository.ControlRepository]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  6. 0

    Spring org.springframework.beans.factory.UnsatisfiedDependencyException:

    Stack Overflow | 5 months ago | Aniket Kudale
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'car': Unsatisfied dependency expressed through field 'carname'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [java.lang.String]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)} Exception in thread "main" org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'car': Unsatisfied dependency expressed through field 'carname'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean found for dependency [java.lang.String]: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

  1. linxiaolong 1 times, last 1 month ago
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 'controllerClass': Unsatisfied dependency expressed through field 'serviceClass': No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.controller.domain.service.ServiceClass] found for dependency [com.controller.domain.service.ServiceClass]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject()
  2. Spring Beans
    InjectionMetadata.inject
    1. org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:573)
    2. org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
    2 frames