Page Containing Chart Macro Throws 'NoClassDefFoundError'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
An error message NoClassDefFoundError appears when using the Chart macro.
The following error may appear when viewing certain pages where the Chart Macro is used:
1
2
3
4
Caused by: java.lang.NoClassDefFoundError
at org.jfree.chart.ChartFactory.createAreaChart(ChartFactory.java:874)
at com.atlassian.confluence.extra.chart.ChartMacro.getChart(ChartMacro.java:217)
at com.atlassian.confluence.extra.chart.ChartMacro.execute(ChartMacro.java:102)
Cause
This is indicative of an out-of-date version of the Chart macro.
Resolution
Make sure you have the latest version and have removed any old versions or dependencies.
Was this helpful?