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

Plugins fail to start in Jira 8.20 with Java 11.x

    XMLWordPrintable

Details

    • Bug
    • Status: In Progress (View Workflow)
    • Highest
    • Resolution: Unresolved
    • 8.21.1, 8.19.0, 8.19.1, 8.20.0, 8.20.1, 8.20.2, 8.21.0, 8.20.3, 8.20.4, 8.22.0, 8.20.5, 8.20.6, 8.20.7, 8.22.1, 8.22.2, 8.20.8, 9.0.0, 8.20.9
    • None
    • Environment - Java

    Description

      Issue Summary

      System plugins fail to start in Jira 8.20.2 with Java version 11.0.11+9 > 11.0.14 installed. This occurs with frequent restarts. However, the same Java version works well with other versions of Jira and also Jira 8.20.2 work well with Java 8.

      Steps to Reproduce

      1. Kickstart a Jira instance with 8.20.2 version with any database.
      2. Set the Jira with the first-time setup wizard
      3. Stop Jira after the setup is done
      4. Install Java 11.0.11+9 (or Java 11.0.14) and set JAVA_HOME to this version
      5. Start Jira twice or thrice to reproduce the problem

      Expected Results

      Jira to start with all plugins even after multiple restarts

      Actual Results

      Jira 8.20.2 fails to start all the plugins with Java 11.0.11+9 (Tested with Java 11.0.14 and got the same problem)

      The below exception is thrown in the log file:

      2021-12-20 10:11:05,091+0100 localhost-startStop-1 ERROR      [c.a.jira.startup.SystemPluginsEnabledHealthCheck] We couldn't start the following plugins:
          	- Jira Projects Plugin (com.atlassian.jira.jira-projects-plugin)
          	- Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
          	- Atlassian Jira - Plugins - Project Config Plugin (com.atlassian.jira.jira-project-config-plugin)
          	- Applinks - Plugin - Core (com.atlassian.applinks.applinks-plugin)
          	- Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider)
          	- Embedded Gadgets Plugin (com.atlassian.gadgets.embedded)
          	- Gadget Directory Plugin (com.atlassian.gadgets.directory)
          	- Atlassian Jira - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
          	- Atlassian Jira - Plugins - Global Issue Navigator (com.atlassian.jira.jira-issue-nav-plugin)
          	- Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
          	- Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module)
          	- Atlassian Jira - Plugins - REST Plugin (com.atlassian.jira.rest)
          	- Opensocial Plugin (com.atlassian.gadgets.opensocial)
          	- Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard)
      

      Plugin container issues

      2022-01-04 17:38:18,078+0100 Spring DM Context Creation Timer ERROR      [c.a.p.osgi.factory.OsgiPlugin] Plugin 'eu.softwareplant.bigpicture' never resolved service '&c037' with filter '(objectClass=com.atlassian.upm.api.license.PluginLicenseManager)'
      2022-01-04 17:38:18,079+0100 Spring DM Context Creation Timer ERROR      [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'eu.softwareplant.bigpicture'
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.softwareplant.app.bigpicture.app-bigpicture-jiraserver' has timed out waiting for (objectClass=com.atlassian.upm.api.license.PluginLicenseManager)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      2022-01-04 17:38:18,084+0100 Spring DM Context Creation Timer ERROR      [o.e.g.b.e.internal.support.ExtenderConfiguration] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.softwareplant.app.bigpicture.app-bigpicture-jiraserver, config=osgibundle:/META-INF/spring/*.xml))
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.softwareplant.app.bigpicture.app-bigpicture-jiraserver' has timed out waiting for (objectClass=com.atlassian.upm.api.license.PluginLicenseManager)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      2022-01-04 17:38:18,085+0100 Spring DM Context Creation Timer ERROR      [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.softwareplant.app.bigpicture.app-bigpicture-jiraserver], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.upm.api.license.PluginLicenseManager)] (from bean [&c037])
      org.springframework.context.ApplicationContextException: Application context initialization for 'com.softwareplant.app.bigpicture.app-bigpicture-jiraserver' has timed out waiting for (objectClass=com.atlassian.upm.api.license.PluginLicenseManager)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
      	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
      	at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
      	at java.base/java.util.TimerThread.run(Timer.java:506)
      
      2022-01-04 17:38:20,788+0100 localhost-startStop-1 ERROR      [c.a.jira.startup.DefaultJiraLauncher] JIRA has failed to start because of the following errors: [(Event: Level = (EventLevel: fatal) , Key = (EventType: system-plugins) , Desc = We haven't been able to start all the required system plugins , Exception = We couldn't start the following plugins:<br/><ul><li>Jira Projects Plugin (com.atlassian.jira.jira-projects-plugin)</li><li>Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)</li><li>Atlassian Jira - Plugins - Project Config Plugin (com.atlassian.jira.jira-project-config-plugin)</li><li>Applinks - Plugin - Core (com.atlassian.applinks.applinks-plugin)</li><li>Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider)</li><li>Embedded Gadgets Plugin (com.atlassian.gadgets.embedded)</li><li>Gadget Directory Plugin (com.atlassian.gadgets.directory)</li><li>Atlassian Jira - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)</li><li>Atlassian Jira - Plugins - Global Issue Navigator (com.atlassian.jira.jira-issue-nav-plugin)</li><li>Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)</li><li>Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module)</li><li>Atlassian Jira - Plugins - REST Plugin (com.atlassian.jira.rest)</li><li>Opensocial Plugin (com.atlassian.gadgets.opensocial)</li><li>Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard)</li></ul>)]
      

      Java Version

               java.runtime.name                             : Java(TM) SE Runtime Environment
               java.runtime.version                          : 11.0.11+9-LTS-194
               java.specification.name                       : Java Platform API Specification
               java.specification.vendor                     : Oracle Corporation
      

      Workaround 1

      Update atlassian-servlet-plugin to v. 6.0.1 (attached) [Administration -> Manage apps -> Manage apps -> Upload app -> Choose file (From my computer) -> atlassian-servlet-plugin-6.0.1.jar -> Upload]

      Workaround 2

      if atlassian-servlet-plugin update does not help: 

      Switch the Java version to Java 8

      Note: Java 8 requires a few flags that are not supported in Java 11. When switching to Java 8, these flags should be included. Additional information can be found in the following article:

      Change the Java version used by Jira Server

      and/or

      Delete atlassian-authentication-plugin

      Attachments

        Issue Links

          Activity

            People

              growinski@atlassian.com Greg Rowinski
              f956e0e022e9 skavatekar
              Votes:
              40 Vote for this issue
              Watchers:
              79 Start watching this issue

              Dates

                Created:
                Updated: