Thursday, 1 September 2011

Browse » Home » » » » 'Internal Server Error java.lang.NoClassDefFoundError Could not initialize class org.jfree.chart.JFreeChart' when Viewing Chart Gadget

'Internal Server Error java.lang.NoClassDefFoundError Could not initialize class org.jfree.chart.JFreeChart' when Viewing Chart Gadget

Symptoms

An Internal Server Error message appears in a chart-based gadget.
The following appears in the atlassian-jira.log:
SEVERE: Internal server error
java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
    at org.jfree.chart.ChartFactory.createStackedBarChart(ChartFactory.java:679)
    at com.atlassian.jira.charts.jfreechart.StackedBarChartGenerator.generateChart(StackedBarChartGenerator.java:48)
    at com.atlassian.jira.charts.RecentlyCreatedChart.generateChart(RecentlyCreatedChart.java:91)

Cause

Generally, a NoClassDefFoundError occurs when a plugin is compiled against a JIRA version, then deployed against a different JIRA version that lacks a specific class definition.
In some cases, the versions may be correct, and an environment classloading issue has caused the error.

Resolution

  1. Restart JIRA. This will correct the environmental class-loading issue.
  2. Check that the Charting Plugin is compatible with the installed version of JIRA.

Advertisement:

No comments:

Post a Comment

Note: only a member of this blog may post a comment.