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

End of Life health check fails with NullPointerException

XMLWordPrintable

      Summary

      End of Life check (under Atlassian Support tool) fails with NullPointerException

      Checks if the running version of Jira is approaching, or has reached End of Life.
      
      Result
      Exception during health check invocation java.lang.NullPointerException
      

      In the log, it shows:

      2017-12-25 08:41:26,683 HealthCheck:thread-1 ERROR sysadmin 520x12805x1 qlqbzv 172.31.1.70,172.31.151.80 /rest/troubleshooting/1.0/check/process/ [c.a.t.j.healthcheck.support.AbstractSupportHealthCheck] Unhandled error during healthcheck
      java.lang.NullPointerException
      	at com.atlassian.troubleshooting.jira.healthcheck.util.SupportEolCheckUtil.getVersionJson(SupportEolCheckUtil.java:40)
      	at com.atlassian.troubleshooting.jira.healthcheck.support.EolSupportHealthCheck.doCheck(EolSupportHealthCheck.java:84)
      	at com.atlassian.troubleshooting.jira.healthcheck.support.AbstractSupportHealthCheck.check(AbstractSupportHealthCheck.java:23)
      	at com.atlassian.troubleshooting.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:49)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      2017-12-25 08:41:26,683 HealthCheckWatchdog:thread-4 WARN sysadmin 520x12805x1 qlqbzv 172.31.1.70,172.31.151.80 /rest/troubleshooting/1.0/check/process/ [c.a.t.healthcheck.concurrent.SupportHealthCheckTask] Unable to complete execution of health check End of Life due to an exception
      java.util.concurrent.ExecutionException: java.lang.NullPointerException
      	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      	at java.util.concurrent.FutureTask.get(FutureTask.java:206)
      	at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.getFutureWithTimeout(SupportHealthCheckTask.java:88)
      	at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckTask.lambda$runAsync$0(SupportHealthCheckTask.java:68)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: java.lang.NullPointerException
      	at com.atlassian.troubleshooting.jira.healthcheck.util.SupportEolCheckUtil.getVersionJson(SupportEolCheckUtil.java:40)
      	at com.atlassian.troubleshooting.jira.healthcheck.support.EolSupportHealthCheck.doCheck(EolSupportHealthCheck.java:84)
      	at com.atlassian.troubleshooting.jira.healthcheck.support.AbstractSupportHealthCheck.check(AbstractSupportHealthCheck.java:23)
      	at com.atlassian.troubleshooting.healthcheck.impl.PluginSuppliedSupportHealthCheck.check(PluginSuppliedSupportHealthCheck.java:49)
      	... 4 more
      

      Steps to reproduce

      1. Setup JIRA 7.6.2
      2. Go to System > Troubleshooting & Support Tools
      3. Refer to Supported Platform > End of Life

      Expected Result:

      Show green tick

      Actual Result

      Show the warning message

      Checks if the running version of Jira is approaching, or has reached End of Life.
      
      Result
      Exception during health check invocation java.lang.NullPointerException
      

      Workaround 1 (for Jira >= 7.4.3)

      Upgrade Atlassian Troubleshooting and Support Tools plugin to 1.8.4

      Workaround 1 (for Jira < 7.4.3)

      Upgrade Jira Instance Health Plugin to 2.5.5

      Workaround 2

      Create jira-healthcheck-eol.json in $JIRA_HOME and add

      {"name":"7.6.0","releaseDate":"2017-11-16"}
      

      Then restart JIRA

              Unassigned Unassigned
              azuhra Aqqiela
              Votes:
              11 Vote for this issue
              Watchers:
              29 Start watching this issue

                Created:
                Updated:
                Resolved: