Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-16993

ChartMacro - could not initialize class org.jfree.chart.JFreeChart (.deb package)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Minor
    • None
    • 11.10.2
    • Chart
    • None
    • Trivial

    Description

      Short description:

      The "ChartMacro" isn't working on a clean install of "XWiki 11.10.2" as ".deb" package on Ubuntu 18.04.3 (server - headless).

       

      Problem:

      • Installed XWiki
      • Configured XWiki
      • created a site with an Chart
        content:
      {{chart type="pie" source="inline" params="range:B2-D5;series:columns;" title="Chart Test" width="320" height="240"}}
      |=|=X|=Y|=Z
      |Q1|1.2|3.4|1.3
      |Q2|4.5|3.4|2.3
      |Q3|1.2|4.5|9.0
      |Q4|3.4|1.2|1.2
      {{/chart}}
      
      • Chart is not display, instead you get an error message:

      java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart

      {{}}

      Solution:

      • Edit /etc/java-8-openjdk/accessibility.properties
        (Java 11:{{ /etc/java-11-openjdk/accessibility.properties}})
      • comment out (deactivate) this line:

        #assistive_technologies=org.GNOME.Accessibility.AtkWrapper

      • restart Tomcat
      • Chart is now properly displayed{{}}

       

      Additional Information:
      see:

       

       

      Attachments

        Activity

          People

            tmortagne Thomas Mortagne
            Dolo Dolo
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: