Bamboo doesn't start up after upgrading - Null value was assigned to a property of primitive type

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

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)

原因

There are null values in REM_JIRA_LINK_REQUIRED column of the BUILD table

ソリューション

以下のステップを実行します。

  1. Backup Bamboo database and BAMBOO_HOME
  2. 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.

 

最終更新日 2013 年 7 月 10 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.