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

Spring JIRA | Usama Rashwan | 9 years 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

    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

    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