JIRA Agile upgrade to 6.2.2 fails

お困りですか?

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

コミュニティに質問

症状

JIRA Agile upgrade to 6.2.2 fails.

atlassian-jira.log に次のメッセージが表示される。

2013-05-29 08:34:41,828 pool-13-thread-2 ERROR rweidmann 506x35861x1 2mw5j9 10.3.4.157 /rest/plugins/1.0/ [sal.core.upgrade.PluginUpgrader] Upgrade failed: null
java.lang.NullPointerException
	at com.atlassian.greenhopper.customfield.CustomFieldServiceImpl.associateWithDefaultScreen(CustomFieldServiceImpl.java:285)
	at com.atlassian.greenhopper.upgrade.GhUpgradeTask034.performUpgrade(GhUpgradeTask034.java:50)
	at com.atlassian.greenhopper.upgrade.AbstractGhUpgradeTask.doUpgrade(AbstractGhUpgradeTask.java:62)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)  <+1> (DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
	at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

診断

Run the query:

select name from fieldscreen where id = 1;

If there are no results then you need to use resolution 1 below.

If there is a result you need to use resolution 2 below.

原因

JIRA Agile is trying to update the default screen which may not exist on some JIRA instances.

ソリューション

  1. If the diagnostic query returns NO RESULTS:
    1. Add a screen in the Admin ui. Name it "Default Screen" and add some tabs to it.
    2. Jira を終了します。
    3. Take a database backup.
    4. Change the id value for the Default Screen in your db
    5. Update your id to be 1:

      update fieldscreen set id = 1 where name = 'Default Screen'
    6. Fix your tabs to be associated correctly: 

      update fieldscreentab set fieldscreen = 1 where fieldscreen not in (select id from fieldscreen);
    7. Start JIRA back up and make sure everything works.
  2. If the diagnostic query returns a result
    1. Go into the JIRA admin UI
    2. Rename the Screen which the query returned to be "Default Screen"
    3. Disable the JIRA Agile add-on, then re-enable it and verify everything is working

関連コンテンツ

Bug for this is at:  GHS-9043 - Getting issue details... STATUS

 

Last modified on Mar 30, 2016

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

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