Bamboo install error on windows (x64)
Asked by product:

jdk1.8.0_192 installed and java-home ok.

```

2019-01-04 19:38:42,397 INFO [http-nio-8085-exec-13] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 322253kb

2019-01-04 19:38:43,515 ERROR [setupDefaultGeneralBackgroundThread] [PojoEntityTuplizer] HHH000243: Setters of lazy classes cannot be final: com.atlassian.bamboo.plan.AbstractChain.notificationSet
2019-01-04 19:38:44,417 INFO [http-nio-8085-exec-14] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 574986kb
2019-01-04 19:38:45,183 ERROR [setupDefaultGeneralBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#subnetIds; expected type : org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
2019-01-04 19:38:45,183 ERROR [setupDefaultGeneralBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#availabilityZones; expected type : org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
2019-01-04 19:38:45,207 ERROR [setupDefaultGeneralBackgroundThread] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.project.DefaultProject_#allPlans; expected type : org.hibernate.metamodel.internal.PluralAttributeImpl$CollectionAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
2019-01-04 19:38:46,432 INFO [http-nio-8085-exec-15] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 286738kb
2019-01-04 19:38:47,911 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Loaded the Bouncy Castle security provider.
2019-01-04 19:38:48,147 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Using Persistence Adapter: KahaDBPersistenceAdapter[C:\Users\MyPc\bamboo-home\jms-store\bamboo\KahaDB]
2019-01-04 19:38:48,469 INFO [http-nio-8085-exec-16] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 429069kb
2019-01-04 19:38:48,622 INFO [setupDefaultGeneralBackgroundThread] [MessageDatabase] Persistence store purged.
2019-01-04 19:38:48,687 INFO [setupDefaultGeneralBackgroundThread] [PListStoreImpl] PListStore:[C:\Users\MyPc\bamboo-home\jms-store\bamboo\tmp_storage] started
2019-01-04 19:38:48,894 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Apache ActiveMQ 5.14.5 (bamboo, ID:BILGISAYARIM-51086-1546619928699-0:1) is starting
2019-01-04 19:38:48,900 INFO [setupDefaultGeneralBackgroundThread] [BrokerPluginSupport] Broker Plugin org.apache.activemq.broker.util.TimeStampingBrokerPlugin started
2019-01-04 19:38:48,902 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Apache ActiveMQ 5.14.5 (bamboo, ID:BILGISAYARIM-51086-1546619928699-0:1) started
2019-01-04 19:38:48,903 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] For help or more information please see: http://activemq.apache.org
2019-01-04 19:38:49,097 INFO [setupDefaultGeneralBackgroundThread] [BambooBrokerService] Registering custom http transport in ActiveMQ.
2019-01-04 19:38:49,109 INFO [setupDefaultGeneralBackgroundThread] [TomcatHttpTransportServer] Starting TomcatHttpTransportServer...
2019-01-04 19:38:49,533 INFO [setupDefaultGeneralBackgroundThread] [TransportConnector] Connector http://localhost/bamboo/jmsServlet started
2019-01-04 19:38:49,533 INFO [setupDefaultGeneralBackgroundThread] [JmsSslManagementUtils] Generating a new key store...
2019-01-04 19:38:50,483 INFO [http-nio-8085-exec-17] [AccessLogFilter] 0:0:0:0:0:0:0:1 POST http://localhost:8085/setup/setupDefaultGeneral.action 633008kb
2019-01-04 19:38:50,629 INFO [setupDefaultGeneralBackgroundThread] [BCKeyStoreFactory] Key pair generation took 1,078 s
2019-01-04 19:38:50,797 INFO [setupDefaultGeneralBackgroundThread] [JmsSslManagementUtils] Saving key store for future use...
2019-01-04 19:38:52,075 WARN [setupDefaultGeneralBackgroundThread] [XmlWebApplicationContext] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratingErrorAccessor' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'decoratedErrorDetailsFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratedErrorDetailsFactory' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'agentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' of type [com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'elasticAgentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticAgentManager' defined in class path resource [applicationContextAgentServer.xml]: Bean instantiation via constructor failed; nested exception is java.lang.ExceptionInInitializerError
2019-01-04 19:38:52,078 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Apache ActiveMQ 5.14.5 (bamboo, ID:BILGISAYARIM-51086-1546619928699-0:1) is shutting down
2019-01-04 19:38:52,080 INFO [setupDefaultGeneralBackgroundThread] [TransportConnector] Connector http://localhost/bamboo/jmsServlet stopped
2019-01-04 19:38:52,085 INFO [setupDefaultGeneralBackgroundThread] [BrokerPluginSupport] Broker Plugin org.apache.activemq.broker.util.TimeStampingBrokerPlugin stopped
2019-01-04 19:38:52,086 INFO [setupDefaultGeneralBackgroundThread] [PListStoreImpl] PListStore:[C:\Users\MyPc\bamboo-home\jms-store\bamboo\tmp_storage] stopped
2019-01-04 19:38:52,087 INFO [setupDefaultGeneralBackgroundThread] [KahaDBStore] Stopping async queue tasks
2019-01-04 19:38:52,087 INFO [setupDefaultGeneralBackgroundThread] [KahaDBStore] Stopping async topic tasks
2019-01-04 19:38:52,088 INFO [setupDefaultGeneralBackgroundThread] [KahaDBStore] Stopped KahaDB
2019-01-04 19:38:52,130 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Apache ActiveMQ 5.14.5 (bamboo, ID:BILGISAYARIM-51086-1546619928699-0:1) uptime 4.096 seconds
2019-01-04 19:38:52,131 INFO [setupDefaultGeneralBackgroundThread] [BrokerService] Apache ActiveMQ 5.14.5 (bamboo, ID:BILGISAYARIM-51086-1546619928699-0:1) is shutdown
2019-01-04 19:38:52,160 ERROR [setupDefaultGeneralBackgroundThread] [ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratingErrorAccessor' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'decoratedErrorDetailsFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratedErrorDetailsFactory' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'agentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' of type [com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'elasticAgentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticAgentManager' defined in class path resource [applicationContextAgentServer.xml]: Bean instantiation via constructor failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:639)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:153)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1267)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1124)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:759)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
at com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22)
at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.refreshSpringContextAndCreateDatabase(DefaultHibernateConfigurator.java:120)
at com.atlassian.bamboo.setup.DefaultHibernateConfigurator.configureDatabase(DefaultHibernateConfigurator.java:63)
at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.bootstrapDatabase(DefaultAtlassianBootstrapManager.java:254)
at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupStandardDatabase(SetupUtilityBean.java:187)
at com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean.setupEmbeddedDatabase(SetupUtilityBean.java:178)
at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$SetupDefaultDatabase.call(SetupDefaultsAction.java:86)
at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$SetupDefaultGeneral.call(SetupDefaultsAction.java:69)
at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction$SetupDefaultGeneral.call(SetupDefaultsAction.java:43)
at com.atlassian.bamboo.ww2.actions.setup.SetupInvoker.execute(SetupInvoker.java:15)
at com.atlassian.bamboo.ww2.actions.setup.SetupDefaultsAction.general(SetupDefaultsAction.java:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)
at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)
at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)
at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)
at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
at ognl.SimpleNode.getValue(SimpleNode.java:258)
at ognl.Ognl.getValue(Ognl.java:470)
at ognl.Ognl.getValue(Ognl.java:434)
at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:401)
at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:453)
at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:399)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:438)
at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:293)
at org.apache.struts2.interceptor.BackgroundProcess$1.run(BackgroundProcess.java:55)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'decoratedErrorDetailsFactory' defined in class path resource [applicationContext.xml]: Cannot resolve reference to bean 'agentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' of type [com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'elasticAgentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticAgentManager' defined in class path resource [applicationContextAgentServer.xml]: Bean instantiation via constructor failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:639)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:153)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1267)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1124)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:535)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:367)
... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'agentManager' defined in class path resource [applicationContextManagers.xml]: Cannot create inner bean 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' of type [com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl] while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.bamboo.buildqueue.manager.AgentManagerImpl#10761f70' defined in class path resource [applicationContextManagers.xml]: Cannot resolve reference to bean 'elasticAgentManager' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'elasticAgentManager' defined in class path resource [applicationContextAgentServer.xml]: Bean instantiation via constructor failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:327)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:124)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1602)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1354)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:572)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:495)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:367)
```


Answers:
author: Daniel Santos
body: Hi There,

This error is not very clear. I've searched for issues like this in our support system and I found a case where this error was caused by a misconfigured atlassian-users.xml file.

Can you clarify:

* What is the Bamboo version involved?
* Assuming this is a new install, in what step this issue happened?   
  Did you manage to see any page on localhost:8085?
* Can you describe the steps taken for this installation?

Something you can try (assuming you don't have any data to lose - new install) is:

1. Stop the Bamboo process
2. Remove the Bamboo home directory
3. Start Bamboo again

This should trigger the setup wizard again and in case your Tomcat details are correct, you should see Bamboo back in the browser.

comments: author: product
body: Hi,

This is new installation, I've done several successful setups on different computers before.  
- Installed windows 10 pro to vmware, update windows, then installed IIS.  
- Installed jdk 64 bit jdk1.8.0_192 version.  
-Renamed pc name from computer settings  
- JAVA_HOME C:\\Program Files\\Java\\jdk1.8.0_191 to system variables  
- Downloaded and installed bamboo 6.7.2.0 success  
- cmd with administrating mode  
- C:\\Program Files\\Bamboo\\bin\\start-bamboo  
-Successfully run Tomcat and no error log.  
-with chrome opened localhost:8085  
-asked licence and I enter licence key, then i select advance setup for ms sql  
-Installed mssql express 2017 to same pc(localhost)  
-bamboo can not login ms sql, then i sellect bamboos db  
-Bamboo said, installing the database, and bamboo froze, and this is error log.  
-I uninstalled bamboo and i cleared all file then installed again with express installation, but all things are same.   
Thanks


author: Daniel Santos
body: Thank you for sharing those details.

I've found this document [Installation fails at the database set up stage on Solaris](https://confluence.atlassian.com/bamkb/installation-fails-at-the-database-set-up-stage-on-solaris-591594266.html) with a similar error on

     at com.atlassian.config.spring.BootstrappedContainerContext.refresh(BootstrappedContainerContext.java:22)

I'm a little bit inclined to think that this issue is also related to the JDK used. Do you think you can install a new version or reinstall the same version?  

Please:

1. Reinstall the JDK
2. Stop the Bamboo process
3. Remove the Bamboo home directory  
   There is no need to install Bamboo again
4. Start Bamboo again  

In case this fails again, I'm afraid we will need to create a support case so we can check all your log files.

<br />


author: product
body: Still not working and i can not open issue.


author: Daniel Santos
body: Hi,  

I'm sorry I was in AL.  
Have you tried opening a ticket with our support or should I do it for you now?