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

            [JSWSERVER-9043] GreenHopper upgrade to 6.2.2 fails

            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 48745 ]
            Conny Postma made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 128706 ]
            Bugfix Automation Bot made changes -
            Minimum Version New: 6.02
            Owen made changes -
            Workflow Original: JAC Bug Workflow v2 [ 2851925 ] New: JAC Bug Workflow v3 [ 2936942 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v7 - Restricted [ 2545820 ] New: JAC Bug Workflow v2 [ 2851925 ]
            Ignat (Inactive) made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 - Restricted [ 1551860 ] New: JIRA Bug Workflow w Kanban v7 - Restricted [ 2545820 ]
            Confluence Escalation Bot (Inactive) made changes -
            Labels New: affects-server
            Owen made changes -
            Workflow Original: JIRA Bug Workflow w Kanban v6 [ 909420 ] New: JIRA Bug Workflow w Kanban v6 - Restricted [ 1551860 ]
            Michael Andreacchio made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 48745 ] New: This issue links to "Page (Atlassian Documentation)" [ 48745 ]
            Michael Andreacchio made changes -
            Remote Link Original: This issue links to "Page (Atlassian Documentation)" [ 128706 ] New: This issue links to "Page (Atlassian Documentation)" [ 128706 ]

              Unassigned Unassigned
              bberenberg Boris Berenberg (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: