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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 11.10.2
    • Fix Version/s: None
    • Component/s: Chart
    • Labels:
      None
    • Environment:
    • Difficulty:
      Trivial
    • Similar issues:

      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

            • Assignee:
              Unassigned
              Reporter:
              Dolo Dolo
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: