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


When Jenkins the display trend tries to generate graphs the original Always the exception with the reason: " java.lang.NoClassDefFoundError: class org.jfree.chart.JFreeChart could not start "

This same Junkkins is employed, with v1.532.2 ( stable ) and v1.539-SNAPSHOT

        • Just make my JDK (Oracle's JDK1 .7.0_51), MAVEN (3.1.1) and GIT (1.8.1.2)
        • Enable these plugins:
        • V1.9.3
        • FindBugs v4.51
        • Warnings V4.39
          • PMD v3.38
          • Display V.1.10
            • Jenkins Git Client V1.6.2
            • Jenkins Git 2.0.1

            Then I have created a project that plugin jmeter-maven-plugin v1.9.0 By successfully using a jmt ray from your java webpage Ports file , but the display trend graph is not being visible on the project page, Jenkins actually collects the results because it shows me the response time, but I can not show the graph there the root cause always opens many exceptions: " java.lang.NoClassDefFoundError: class org.jfree.chart.JFreeChart could not start ". Here you will find a complete stacktrace:

            Jenkins already has jcommon-1.0.12.jar and jfreechart-1.0.9.jar on < Strong> / WEB-INF / lib / . do not apply.

            Can you help me, please?

            Thanks in advance!

            / angel

  • "post-text" itemprop = "text">

    Resolve! Someone helped me solve it here:

    This is not a bug in Jenkins, but I miss- configuration. The solution is just adding -Djava.awt.headless = true to Jenkin's runtime.

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

    I wanted you to share this solution. Cheers from Barcelona

    / angel


    Comments

    Popular posts from this blog

    ios - How do I use CFArrayRef in Swift? -

    eclipse plugin - Run java code error: Workspace is closed -

    c - Error on building source code in VC 6 -