Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-21839

Performance graphs causing "Could not initialize class org.jfree.chart.JFreeChart" exceptions

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: performance-plugin
    • Labels:
      None
    • Environment:
      Ubuntu Desktop 13.04 64b , Oracle JDK 1.7.0_51 , Maven 3.1.1
    • Similar Issues:

      Description

      Hi,

      When Jenkins tries to generate the Performance Trends graphs there launches several exceptions always with root cause: "java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart"

      This is what I did:

      • desployed Jenkins , tried with v1.532.2 (stable) and v1.539-SNAPSHOT
        • didn't configured security
        • just set paths to my JDK (oracle's jdk1.7.0_51), MAVEN (3.1.1) and GIT (1.8.1.2)
      • enabled these plugins:
        • Checkstyle v3.39
        • Jenkins Cobertura v1.9.3
        • FindBugs v4.51
        • Warnings v4.39
        • PMD v3.38
        • Performance v.1.10
        • Jenkins Git client v1.6.2
        • Jenkins Git 2.0.1

      Then I created a project which successfully creates a JMeter report file from my Java webapp using the plugin jmeter-maven-plugin v1.9.0, but there doesn't appear the Performance Trend graphs on the project's page. Jenkins really gathers the results because it shows me the response times, but can't show me the graphs. There launches several Exceptions always with root cause: "java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart" .

      Here you will find a complete StackTrace: http://pastebin.com/uhiNR7XD

      Can you help me, please?
      Thanks in advance!

      / Angel

        Attachments

          Activity

          Hide
          manolo Manuel Carrasco added a comment -

          Not a bug, that happens when running jenkins in a computer with a XServer DISPLAY set. Unset the DISPLAY variable or enable java.awt.headless property.

          Show
          manolo Manuel Carrasco added a comment - Not a bug, that happens when running jenkins in a computer with a XServer DISPLAY set. Unset the DISPLAY variable or enable java.awt.headless property.
          Hide
          zoquero Angel Galindo added a comment -

          Somebody helped me to solve it here : https://groups.google.com/forum/#!topic/jenkinsci-users/o_Dr7Tn0i3U

          It's not a bug in Jenkins but a miss-configuration. Anyway I couldn't find it in any knowledge base. Maybe adding this solution in JIRA is enough ... but let me suggest you to try to add it somewhere in plugin's documentation, for example on "Configuration" section found here https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin

          The solution is just adding
          -Djava.awt.headless=true

          I'm running Jenkins as a webapp on my Tomcat, so I just added this line to my /opt/tomcat/bin/catalina.sh :
          CATALINA_OPTS=-Djava.awt.headless=true

          Thanks for this great software, cheers from Barcelona.

          / Angel

          Show
          zoquero Angel Galindo added a comment - Somebody helped me to solve it here : https://groups.google.com/forum/#!topic/jenkinsci-users/o_Dr7Tn0i3U It's not a bug in Jenkins but a miss-configuration. Anyway I couldn't find it in any knowledge base. Maybe adding this solution in JIRA is enough ... but let me suggest you to try to add it somewhere in plugin's documentation, for example on "Configuration" section found here https://wiki.jenkins-ci.org/display/JENKINS/Performance+Plugin The solution is just adding -Djava.awt.headless=true I'm running Jenkins as a webapp on my Tomcat, so I just added this line to my /opt/tomcat/bin/catalina.sh : CATALINA_OPTS=-Djava.awt.headless=true Thanks for this great software, cheers from Barcelona. / Angel

            People

            • Assignee:
              manolo Manuel Carrasco
              Reporter:
              zoquero Angel Galindo
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: