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 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: " Jenkins already has jcommon-1.0.12.jar and jfreechart-1.0.9.jar on < Strong>
java.lang.NoClassDefFoundError: class org.jfree.chart.JFreeChart could not start
". Here you will find a complete stacktrace: / WEB-INF / lib /
Can you help me, please?
Thanks in advance!
/ angel
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
Post a Comment