Uploaded image for project: 'Jira Server and Data Center'
  1. Jira Server and Data Center
  2. JRASERVER-24172

JIRA Upgrade Fails with "NullPointerException"

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Low
    • Resolution: Obsolete
    • 4.3
    • None
    • None

    Description

      The following error messages are reported in the JIRA log file:

      java.lang.NullPointerException
      at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build602.migrateGroups(UpgradeTask_Build602.java:535)
      at com.atlassian.jira.upgrade.tasks.UpgradeTask_Build602.doUpgrade(UpgradeTask_Build602.java:93)
      at com.atlassian.jira.upgrade.UpgradeManagerImpl.doUpgradeTaskSucess(UpgradeManagerImpl.java:578)
      at com.atlassian.jira.upgrade.UpgradeManagerImpl.runUpgradeTasks(UpgradeManagerImpl.java:482)
      ...
      

      Cause

      There is a user group missing "name" field in JIRA, which breaks group migration to JIRA 4.3+ version.

      Resolution

      1. Back up JIRA data
      2. Shutdown JIRA instance
      3. Run the below script in JIRA database

            update groupbase set groupname='DATA-FIX' where groupname is null
      

      4. Reboot JIRA instance
      5. If upgrade is successful, find 'DATA-FIX' group in JIRA, delete or rename it.

      Attachments

        Activity

          People

            aswan@atlassian.com Andrew S
            bdziedzic Bogdan Dziedzic [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: