org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent

Spring JIRA | Matthew Sgarlata | 1 decade ago
  1. 0

    [SPR-916] Inherited inner bean definition requires name - Spring JIRA

    spring.io | 1 year ago
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent
  2. 0

    I tried to create an anonymous inner bean in my Spring configuration that inherited properties from a parent bean, but Spring would not allow it. Spring insisted that a bean name was required, even though it typically is not required for inner beans. Here is the configuration that caused the error: <bean name="groupPermissionsUpgradeTask" class="com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask"> <property name="versionNumber" value="1.4.4.0"/> <property name="rowMapResultSetExtractor"> <bean parent="rowMapResultSetExtractor"> <property name="keyType" value="java.lang.Integer"/> <property name="valueType" value="java.lang.Integer"/> </bean> </property> </bean> Here is the error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupPermissionsUpgradeTask' defined in file [c:\eclipse\workspace\Scoreboard 1.5\web\WEB-INF\applicationContext-upgrade.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:672) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:146) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:534) at com.spider.scoreboard.framework.Launcher.launch(Launcher.java:71) at com.spider.scoreboard.framework.Launcher.launch(Launcher.java:47) at com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask.main(GroupPermissionsUpgradeTask.java:83) The workaround is simple, just give the inner bean a name. Here is a configuration that works: <bean name="groupPermissionsUpgradeTask" class="com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask"> <property name="versionNumber" value="1.4.4.0"/> <property name="rowMapResultSetExtractor"> <bean name="integerKeyAndValueRowMapResultSetExtractor" parent="rowMapResultSetExtractor"> <property name="keyType" value="java.lang.Integer"/> <property name="valueType" value="java.lang.Integer"/> </bean> </property> </bean>

    Spring JIRA | 1 decade ago | Matthew Sgarlata
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent
  3. 0

    I tried to create an anonymous inner bean in my Spring configuration that inherited properties from a parent bean, but Spring would not allow it. Spring insisted that a bean name was required, even though it typically is not required for inner beans. Here is the configuration that caused the error: <bean name="groupPermissionsUpgradeTask" class="com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask"> <property name="versionNumber" value="1.4.4.0"/> <property name="rowMapResultSetExtractor"> <bean parent="rowMapResultSetExtractor"> <property name="keyType" value="java.lang.Integer"/> <property name="valueType" value="java.lang.Integer"/> </bean> </property> </bean> Here is the error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'groupPermissionsUpgradeTask' defined in file [c:\eclipse\workspace\Scoreboard 1.5\web\WEB-INF\applicationContext-upgrade.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:672) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:146) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:534) at com.spider.scoreboard.framework.Launcher.launch(Launcher.java:71) at com.spider.scoreboard.framework.Launcher.launch(Launcher.java:47) at com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask.main(GroupPermissionsUpgradeTask.java:83) The workaround is simple, just give the inner bean a name. Here is a configuration that works: <bean name="groupPermissionsUpgradeTask" class="com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask"> <property name="versionNumber" value="1.4.4.0"/> <property name="rowMapResultSetExtractor"> <bean name="integerKeyAndValueRowMapResultSetExtractor" parent="rowMapResultSetExtractor"> <property name="keyType" value="java.lang.Integer"/> <property name="valueType" value="java.lang.Integer"/> </bean> </property> </bean>

    Spring JIRA | 1 decade ago | Matthew Sgarlata
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Editor / Upload document does not work

    GitHub | 2 years ago | pvgenuchten
    org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [jeeves.server.context.ServiceContext] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  6. 0

    Service tests fails

    GitHub | 3 years ago | Delawen
    java.lang.IllegalStateException: Failed to load ApplicationContext

  1. Andreas Häber 4 times, last 4 weeks ago
  2. Luka 2 times, last 2 months ago
  3. mortalman7 11 times, last 4 months ago
  4. serious2monkeys 5 times, last 3 months ago
  5. Kawada 1 times, last 6 months ago
2 more registered users
51 unregistered visitors
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 'rowMapResultSetExtractor' is defined: Parent name 'rowMapResultSetExtractor' is equal to bean name 'rowMapResultSetExtractor' - cannot be resolved without an AbstractBeanFactory parent

    at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition()
  2. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:672)
    2. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBeanDefinition(BeanDefinitionValueResolver.java:146)
    3. org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:96)
    4. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:891)
    5. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:707)
    6. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:316)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:222)
    8. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:146)
    8 frames
  3. Spring Context
    AbstractApplicationContext.getBean
    1. org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:534)
    1 frame
  4. com.spider.scoreboard
    GroupPermissionsUpgradeTask.main
    1. com.spider.scoreboard.framework.Launcher.launch(Launcher.java:71)
    2. com.spider.scoreboard.framework.Launcher.launch(Launcher.java:47)
    3. com.spider.scoreboard.framework.upgrade.upgrades.GroupPermissionsUpgradeTask.main(GroupPermissionsUpgradeTask.java:83)
    3 frames