Bamboo installation fails or gets stuck at the 'Choose a Database Configuration' screen
症状
The Bamboo installation with MySQL gets stuck at the 'Choose a Database Configuration' screen either with an error similar to the following or by showing a frozen spinner, claiming to be installing the database, that returns to the same page after refreshing the browser with no errors in the UI.
2012-03-18 00:28:48,667 ERROR [performSetupDatabaseConnectionBackgroundThread] [SetupUtilityBean] Database configuration failed. Error creating bean with name 'aggregatedChainErrorAccessor' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'errorHandler' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'errorHandler' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'planManager' while setting bean property 'planManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planManager': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionsInterceptor' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'businessAccessDecisionManager' while setting bean property 'accessDecisionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'businessAccessDecisionManager' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'aclBuildReadVoter' while setting bean property 'decisionVoters' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclBuildReadVoter' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'sidRetrievalStrategy' while setting bean property 'sidRetrievalStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sidRetrievalStrategy' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'bambooUserManager' while setting bean property 'bambooUserManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooUserManager' defined in class path resource [applicationContextUser.xml]: Cannot create inner bean 'com.atlassian.bamboo.user.BambooUserManagerImpl#c390508' of type [com.atlassian.bamboo.user.BambooUserManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.user.BambooUserManagerImpl#c390508' defined in class path resource [applicationContextUser.xml]: Cannot resolve reference to bean 'loginInformationManager' while setting bean property 'loginInformationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginInformationManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.user.LoginInformationManagerImpl#73f17a73' of type [com.atlassian.bamboo.user.LoginInformationManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.user.LoginInformationManagerImpl#73f17a73' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'administrationConfigurationManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'administrationConfigurationManager' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'persister' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persister' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'xStreamManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamManager' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamFactory' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamConverters' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamConverters': Cannot create inner bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' of type [com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory] while setting bean property 'sourceList' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aggregatedChainErrorAccessor' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'errorHandler' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'errorHandler' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'planManager' while setting bean property 'planManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'planManager': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'permissionsInterceptor' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'businessAccessDecisionManager' while setting bean property 'accessDecisionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'businessAccessDecisionManager' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'aclBuildReadVoter' while setting bean property 'decisionVoters' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'aclBuildReadVoter' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'sidRetrievalStrategy' while setting bean property 'sidRetrievalStrategy'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sidRetrievalStrategy' defined in class path resource [applicationContextAcegiAuthorization.xml]: Cannot resolve reference to bean 'bambooUserManager' while setting bean property 'bambooUserManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bambooUserManager' defined in class path resource [applicationContextUser.xml]: Cannot create inner bean 'com.atlassian.bamboo.user.BambooUserManagerImpl#c390508' of type [com.atlassian.bamboo.user.BambooUserManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.user.BambooUserManagerImpl#c390508' defined in class path resource [applicationContextUser.xml]: Cannot resolve reference to bean 'loginInformationManager' while setting bean property 'loginInformationManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'loginInformationManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.user.LoginInformationManagerImpl#73f17a73' of type [com.atlassian.bamboo.user.LoginInformationManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.user.LoginInformationManagerImpl#73f17a73' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'administrationConfigurationManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'administrationConfigurationManager' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'persister' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persister' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'xStreamManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamManager' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamFactory' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamConverters' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamConverters': Cannot create inner bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' of type [com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory] while setting bean property 'sourceList' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.user.LoginInformationManagerImpl#73f17a73' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'administrationConfigurationManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'administrationConfigurationManager' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'persister' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persister' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'xStreamManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamManager' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamFactory' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamConverters' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamConverters': Cannot create inner bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' of type [com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory] while setting bean property 'sourceList' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'administrationConfigurationManager' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'persister' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'persister' defined in class path resource [applicationContextLegacy.xml]: Cannot resolve reference to bean 'xStreamManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamManager' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamFactory' defined in class path resource [applicationContextCommon.xml]: Cannot resolve reference to bean 'xStreamConverters' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamConverters': Cannot create inner bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' of type [com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory] while setting bean property 'sourceList' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xStreamConverters': Cannot create inner bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' of type [com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory] while setting bean property 'sourceList' with key [2]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' defined in class path resource [applicationContextCommon.xml]: 2 constructor arguments specified but no matching constructor found in bean 'com.atlassian.bamboo.serialization.xstream.DefaultConverterFactory#693985fc' (hint: specify index and/or type arguments for simple parameters to avoid type ambiguities)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:795)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:713)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:216)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:123)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:287)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:132)
....
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
....
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
....
at java.lang.Thread.run(Thread.java:636)
原因
This problem is caused by an incorrect or missing JAVA_HOME or incompatible JDK and Java version.
回避策
- Try to finish the installation with the embedded HSQL database, if it works, you are not experiencing the problem explained here since this issue happens regardless of the database type.
- Double check the database URL and make sure it's entered correctly ( Example: jdbc:mysql://localhost/bamboo444latest?autoReconnect=true). There is an issue with Bamboo that if the URL is incorrect it doesn't show any errors in the UI: Display an error message in the UI if the database URL is incorrect.
- Check the java version by running java -version and make sure it's compatible with the version of Bamboo that is installed: Bamboo supported platforms.
- Run echo %JAVA_HOME% and check if it's pointing to the correct JDK. (Ex.: C:\Program Files\Java\jdk1.7.0_10) if it's not or the variable doesn't exist add it with the correct value, restart Bamboo and continue with the installation.
最終更新日 2018 年 11 月 2 日
Powered by Confluence and Scroll Viewport.