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

Still need help?

The Atlassian Community is here for you.

Ask the community

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.
Last modified on Mar 30, 2016

Was this helpful?

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