Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-9043

GreenHopper upgrade to 6.2.2 fails

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • High
    • 6.2.2.2
    • 6.2.2
    • None

    Description

      Error in the logs:

      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)

      Then we look at: https://bitbucket.org/greenhopper/greenhopper/src/b9905ec7f01728c684e930ea544068bc149b8039/greenhopper/src/main/java/com/atlassian/greenhopper/customfield/CustomFieldServiceImpl.java?at=default and find that we are looking for DEFAULT_SCREEN_ID from com.atlassian.jira.issue.fields.screen.FieldScreen. When we look there, we find that this is defined as id=1.

      Investigating the user's DB will find that this does not exist or is not named "Default Screen".

      Workaround:

      If it is not named "default screen", and is named just "default", it was likely upgraded from JIRA 3.x. Just rename it to Default Screen and then disable, and re-enable GreenHopper.

      If it does not exist, then make a backup. Then make a new screen must be made via the UI (and add some tabs to it). Then the id in the fieldscreen table must be updated to be 1. Then the fieldscreentab table must also be updated:

      update fieldscreentab set fieldscreen = 1 where fieldscreen not in (select id from fieldscreen);

      Then restart JIRA.

      KB at: https://confluence.atlassian.com/display/GHKB/GreenHopper+upgrade+to+6.2.2+fails

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bberenberg Boris Berenberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: