org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'service': Bean definition is abstract

Spring JIRA | Usama Rashwan | 9 years ago
  1. 0

    the AbstractAutowireCapableBeanFactory.autowireByName try to autowire abstrat bean , if there is abstrat bean that is matched with a bean proparty the AbstractAutowireCapableBeanFactory will try to wire it even if the bean is abstrat , i think abstrat beans should be excluded from autowireing this will result in org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'service': Bean definition is abstract at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:1116) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

    Spring JIRA | 9 years ago | Usama Rashwan
    org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'service': Bean definition is abstract
  2. 0

    the AbstractAutowireCapableBeanFactory.autowireByName try to autowire abstrat bean , if there is abstrat bean that is matched with a bean proparty the AbstractAutowireCapableBeanFactory will try to wire it even if the bean is abstrat , i think abstrat beans should be excluded from autowireing this will result in org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'service': Bean definition is abstract at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:1116) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:228) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:959) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:907) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)

    Spring JIRA | 9 years ago | Usama Rashwan
    org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'service': Bean definition is abstract
  3. 0

    [SPR-6784] MBeanExporter attempts to instantiate a bean marked as abstract - Spring JIRA

    spring.io | 1 year ago
    org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'TemplateTxProxy': Bean definition is abstract
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    CAS migrating to new version

    Google Groups | 9 months ago | Sankalp Sharma
    org.springframework.beans.factory.BeanIsAbstractException: Error creating bean with name 'httpClient': Bean definition is abstract

    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.BeanIsAbstractException

      Error creating bean with name 'service': Bean definition is abstract

      at org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition()
    2. Spring Beans
      AbstractAutowireCapableBeanFactory$1.run
      1. org.springframework.beans.factory.support.AbstractBeanFactory.checkMergedBeanDefinition(AbstractBeanFactory.java:1116)
      2. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:228)
      3. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
      4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:959)
      5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:907)
      6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:437)
      7. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:383)
      7 frames
    3. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    4. Spring Beans
      AbstractAutowireCapableBeanFactory.createBean
      1. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:353)
      1 frame