Bamboo doesn't start up after upgrading - Null value was assigned to a property of primitive type
Symptoms
The Bamboo server fails to start after upgrading Bamboo and restoring the databse from an old instance. Bamboo server logs contain this:
2012-08-23 11:34:11,277 FATAL [main] [UpgradeLauncher] Failed to initialise Bamboo container
com.google.common.util.concurrent.UncheckedExecutionException: org.springframework.orm.hibernate.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.plan.branch.ChainBranchImpl.remoteJiraLinkRequired; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.plan.branch.ChainBranchImpl.remoteJiraLinkRequired
at com.google.common.cache.CustomConcurrentHashMap$ComputedUncheckedException.get(CustomConcurrentHashMap.java:3305)
at com.google.common.cache.CustomConcurrentHashMap$ComputingValueReference.compute(CustomConcurrentHashMap.java:3441)
at com.google.common.cache.CustomConcurrentHashMap$Segment.compute(CustomConcurrentHashMap.java:2322)
at com.google.common.cache.CustomConcurrentHashMap$Segment.getOrCompute(CustomConcurrentHashMap.java:2291)
Cause
There are null values in REM_JIRA_LINK_REQUIRED column of the BUILD table
Resolution
Follow the steps below:
- Backup Bamboo database and BAMBOO_HOME
- Run this SQL query against Bamboo database and start Bamboo server:
UPDATE BUILD SET REM_JIRA_LINK_REQUIRED = 0 WHERE REM_JIRA_LINK_REQUIRED is null;
An alternative solution would be to run the upgrade again (from a backup) and let Bamboo (4.2 or above) handle null values in REM_JIRA_LINK_REQUIRED column of BUILD table.
Last modified on Jul 10, 2013
Powered by Confluence and Scroll Viewport.