Accessing the Chart Board leads to NullPointerException: at com.pyxis.greenhopper.charts.CurveChart.getRatioCurve
Symptoms
When navigating to Agile >> Chart Board, the following appears on the browser:
Cause:
java.lang.NullPointerException
Stack Trace: [hide]
java.lang.NullPointerException
at com.pyxis.greenhopper.charts.CurveChart.getRatioCurve(CurveChart.java:201)
at com.atlassian.greenhopper.service.charts.HourBurndownAdapter.computeCurves(HourBurndownAdapter.java:98)
at com.pyxis.greenhopper.charts.renderer.CurveRenderer.render(CurveRenderer.java:48)
at com.pyxis.greenhopper.charts.CurveChart.buildChart(CurveChart.java:38)
at com.pyxis.greenhopper.charts.context.AbstractChartContext.getJFreeChart(AbstractChartContext.java:130)
at com.pyxis.greenhopper.jira.actions.ChartBoardAction.getJFreeChart(ChartBoardAction.java:202)
at com.pyxis.greenhopper.jira.actions.ChartBoardAction.doSuccess(ChartBoardAction.java:56)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
at webwork.action.ActionSupport.invokeCommand(ActionSupport.java:433)
at webwork.action.ActionSupport.execute(ActionSupport.java:157)
at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82)
....
Cause
There is no real indications of the root cause. However, from what we observes from the resolution of this problems, one of the root cause seems related to Timezone - - GHS-4865Getting issue details... STATUS
Resolution
- Shutdown JIRA
- Open and setting the following option on your <$JIRA_INSTALL>/bin/setenv.sh
Find the the part JVM_SUPPORT_RECOMMENDED_ARGS="" and put the following parameter inside the quotation:
-Duser.timezone=<TZ>
- You can replace the TZ with your timezone code, please refer here
- Delete the following directories:
- $JIRA-INSTALL/work
- $JIRA_HOME/caches/indexes
- Restart JIRA