Uploaded image for project: 'Jira Service Management Data Center'
  1. Jira Service Management Data Center
  2. JSDSERVER-8678

Insight upgrade to 8.8.0 failed with NullPointerException on JSM versions below 4.12

    XMLWordPrintable

Details

    Description

      Issue Summary

      Unable to upgrade Insight to 8.8.0 with JSM versions below 4.12

      Steps to Reproduce

      1. With JSM version below 4.12 and Insight 8.7.12 or below, update Insight to 8.8.0 via UPM or manual update.
      2. When the update is done, confirm the plugin version or check atlassian-jira.log.

      Expected Results

      Insight is updated to 8.8.0 successfully

      Actual Results

      It seems plugin update succeed but upon a page refresh, the Insight version is still the same as before update.

      The below exception is thrown in the atlassian-jira.log file indicating update failed.

      2021-08-31 17:15:56,013+0200 UpmAsynchronousTaskManager:thread-3 ERROR admin 1035x250x1 ki3n1s 0:0:0:0:0:0:0:1 /rest/plugins/1.0/ [c.a.plugin.loaders.ScanningPluginLoader] Unable to deploy plugin 'com.riadalabs.jira.plugins.insight' from 'Unit: /Users/michin/jira-home/atlassian-jira-servicedesk-4.11.0/plugins/installed-plugins/insight-8.8.0.jar (1630422952634)'.
      2021-08-31 17:15:56,014+0200 UpmAsynchronousTaskManager:thread-3 ERROR admin 1035x250x1 ki3n1s 0:0:0:0:0:0:0:1 /rest/plugins/1.0/ [c.a.plugin.loaders.ScanningPluginLoader] Because of the following exception:
      java.lang.NullPointerException
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.addHostComponentsUsedInSuperClasses(HostComponentSpringStage.java:235)
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:220)
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.findUsedHostComponents(HostComponentSpringStage.java:213)
      	at com.atlassian.plugin.osgi.factory.transform.stage.HostComponentSpringStage.execute(HostComponentSpringStage.java:69)
      	at com.atlassian.plugin.osgi.factory.transform.DefaultPluginTransformer.transform(DefaultPluginTransformer.java:140)
      	at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.createOsgiPluginJar(OsgiPluginFactory.java:307)
      	at com.atlassian.plugin.osgi.factory.OsgiPluginFactory.create(OsgiPluginFactory.java:224)
      	at com.atlassian.jira.plugin.MasterPluginFactory.create(MasterPluginFactory.java:73)
      	at com.atlassian.plugin.loaders.ScanningPluginLoader.deployPluginFromUnit(ScanningPluginLoader.java:145)
      	at com.atlassian.plugin.loaders.ScanningPluginLoader.loadFoundPlugins(ScanningPluginLoader.java:114)
      	at com.atlassian.plugin.loaders.PermissionCheckingPluginLoader.loadFoundPlugins(PermissionCheckingPluginLoader.java:33)
      	at com.atlassian.plugin.manager.DefaultPluginManager.lambda$scanForNewPlugins$12(DefaultPluginManager.java:880)
      	at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
      	at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:875)
      	at com.atlassian.plugin.manager.DefaultPluginManager.lambda$installPlugins$11(DefaultPluginManager.java:835)
      	at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
      	at com.atlassian.plugin.manager.DefaultPluginManager.installPlugins(DefaultPluginManager.java:821)
      	at com.atlassian.jira.plugin.JiraPluginManager.installPlugins(JiraPluginManager.java:167)
      ...
      

      Workaround

      Revert to the previous version of Insight by

      1. Stop Jira.
      2. Remove the insight-8.8.0.jar file from <Jira-home>/plugins/installed-plugins (or <Jira-shared-home>/plugins/installed-plugins on Data Center instances). The insight-8.8.0.jar file must be removed manually to prevent Insight startup issue when it's reinstalled.
      3. Start Jira.
      4. Reinstall Insight via UPM or download the obr from marketplace.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              michin Michelle Chin
              Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Backbone Issue Sync