Accessing the Chart Board leads to NullPointerException: at com.pyxis.greenhopper.charts.CurveChart.getRatioCurve

Still need help?

The Atlassian Community is here for you.

Ask the community

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-4865 - Getting issue details... STATUS

Resolution

  1. Shutdown JIRA
  2. Open and setting the following option on your <$JIRA_INSTALL>/bin/setenv.sh
  3. 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
  4. Delete the following directories:
    1. $JIRA-INSTALL/work 
    2. $JIRA_HOME/caches/indexes
  5. Restart JIRA
Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.