Bamboo doesn't start up after upgrading - Null value was assigned to a property of primitive type
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
The Bamboo server fails to start after upgrading Bamboo and restoring the databse from an old instance. Bamboo server logs contain this:
1
2
3
4
5
6
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:
1
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.
Was this helpful?