Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-68743

NPE on shutdown in ClusteringLauncher

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low
    • None
    • 7.12.0, 8.0.0
    • Environment - Database
    • None

      Issue Summary

      Jira throws a NPE on shutdown if the full Pico container was not populated

      Steps to Reproduce

      1. Start a Jira instance using ./jmake debug --postgres, make sure it starts up properly (e.g. you get to the dashboard).
      2. Shut down Jira; pressing Ctrl-C is good enough.
      3. Shut down Postgres.
      4. Start Jira using ./jmake debug; you should get a Johnson page saying "JIRA failed to establish a connection to your database."
      5. In a new terminal tab in the same directory, shut down Jira by typing ./jmake debug shutdown.

      Expected Results

      Jira will shutdown without throwing any errors

      Actual Results

      The following exception will be thrown:

      java.lang.NullPointerException
      	at com.atlassian.jira.startup.ClusteringLauncher.stop(ClusteringLauncher.java:46)
      	at com.atlassian.jira.startup.DefaultJiraLauncher.stop(DefaultJiraLauncher.java:197)
      	at com.atlassian.jira.startup.LauncherContextListener.contextDestroyed(LauncherContextListener.java:211)
      	at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:4839)
      	at org.apache.catalina.core.StandardContext.stopInternal(StandardContext.java:5478)
      

      Workaround

      N/A

              Unassigned Unassigned
              rrosa@atlassian.com Rodrigo Rosa
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: