java.lang.reflect.InvocationTargetException

Stack Overflow | Keets Zhu | 9 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. 0

    试了试quickstart的使用注解方式配置motan,报了一些错。

    GitHub | 7 months ago | lexburner
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'fooServiceImpl' defined in file [C:\sinosoft\workspace\springboot_demo\target\classes\com\example\myproject10\service\FooServiceImpl.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'motan' is defined
  2. 0

    GitHub comment 170#259034953

    GitHub | 6 months ago | InvinciblePistachios
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [sharding-applicationContext.xml]: Cannot resolve reference to bean 'shardingDataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shardingDataSource': BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' is defined
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    No bean named 'springSecurityFilterChain' is defined - 开源中国社区

    oschina.net | 3 months ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'springSecurityFilterChain' is defined
  5. 0

    Yanel.getInstance().init() is still broken

    GitHub | 6 years ago | baszero
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'map' is defined
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.NoSuchBeanDefinitionException

    No bean named 'configServerRetryInterceptor' is defined

    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:702)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1180)
    3. org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
    4. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
    4 frames
  3. Spring Retry
    AnnotationAwareRetryOperationsInterceptor.invoke
    1. org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.getDelegate(AnnotationAwareRetryOperationsInterceptor.java:138)
    2. org.springframework.retry.annotation.AnnotationAwareRetryOperationsInterceptor.invoke(AnnotationAwareRetryOperationsInterceptor.java:116)
    2 frames
  4. Spring AOP
    CglibAopProxy$DynamicAdvisedInterceptor.intercept
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    2. org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)
    2 frames
  5. org.springframework.cloud
    PropertySourceBootstrapConfiguration.initialize
    1. org.springframework.cloud.config.client.ConfigServicePropertySourceLocator$$EnhancerBySpringCGLIB$$d2da9622.locate(<generated>)
    2. org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration.initialize(PropertySourceBootstrapConfiguration.java:89)
    2 frames
  6. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.applyInitializers(SpringApplication.java:633)
    2. org.springframework.boot.SpringApplication.prepareContext(SpringApplication.java:347)
    3. org.springframework.boot.SpringApplication.run(SpringApplication.java:311)
    4. org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
    5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
    5 frames
  7. consul
    Bootstrap.main
    1. consul.Bootstrap.main(Bootstrap.java:16)
    1 frame
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. Spring Boot Maven Plugin
    AbstractRunMojo$LaunchRunner.run
    1. org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:483)
    1 frame
  10. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:745)
    1 frame