org.springframework.beans.factory.BeanCreationException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Typo in the name of the bean in the beans.xml

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • h3. Summary Bamboo unable to startup The below exception is thrown in the xxxxxxx.log file: {noformat} 2016-05-16 09:04:00,633 ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pendingBuildResultsStateRestoration' defined in class path resource [applicationContext.xml]: Cannot create inner bean 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' of type [com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chainExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'jobExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'stopBuildManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stopBuildManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManager' while setting bean property 'planExecutionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManagerTarget' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManagerTarget' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chainExecutionManager': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) ... Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chainExecutionManager': Requested bean is currently in creation: Is there an unresolvable circular reference? {noformat} h3. Notes It should have better log message to show that the problem is caused by index h3.Workaround # Delete {{<Bamboo home directory>/index}} # Reindex at {{Administration >> System >> Indexing}}
    via by Kah Loun Foong [Atlassian],
  • h3. Summary Bamboo unable to startup The below exception is thrown in the xxxxxxx.log file: {noformat} 2016-05-16 09:04:00,633 ERROR [localhost-startStop-1] [ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pendingBuildResultsStateRestoration' defined in class path resource [applicationContext.xml]: Cannot create inner bean 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' of type [com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chainExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'jobExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'stopBuildManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stopBuildManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManager' while setting bean property 'planExecutionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManagerTarget' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManagerTarget' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chainExecutionManager': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197) ... Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chainExecutionManager': Requested bean is currently in creation: Is there an unresolvable circular reference? {noformat} h3. Notes It should have better log message to show that the problem is caused by index h3.Workaround # Delete {{<Bamboo home directory>/index}} # Reindex at {{Administration >> System >> Indexing}}
    via by Kah Loun Foong [Atlassian],
  • FilterChainProxy doesn't autowire
    via by Unknown author,
    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pendingBuildResultsStateRestoration' defined in class path resource [applicationContext.xml]: Cannot create inner bean 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' of type [com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.container.startup.PendingBuildResultsStateRestorationImpl#6d287459' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'chainExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'jobExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobExecutionManager' defined in class path resource [applicationContextChainManagers.xml]: Cannot resolve reference to bean 'stopBuildManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'stopBuildManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManager' while setting bean property 'planExecutionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManager' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'planExecutionManagerTarget' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planExecutionManagerTarget' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'chainExecutionManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'chainExecutionManager': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:290) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1456) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1197)

    Users with the same issue

    rprp
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    linxiaolonglinxiaolong
    1 times, last one,
    Andreas HäberAndreas Häber
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    10 more bugmates