Bug 411007 - SLOCCount trend chart needs JFreeChart dependency
Summary: SLOCCount trend chart needs JFreeChart dependency
Status: NEW
Alias: None
Product: Hudson
Classification: Technology
Component: Plugins (show other bugs)
Version: 3.0.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Winston Prakash CLA
QA Contact: Geoff Waymark CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-18 07:14 EDT by Christian Hartmann CLA
Modified: 2013-06-18 07:14 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Hartmann CLA 2013-06-18 07:14:23 EDT
I am using sloccount-plugin in version 1.4 and after a few builds it tries to display a trend chart on the job's dashboard. The image is broken and when calling its URL (http://hudson/job/<job>/sloccountResult/trend) you get an internal server error with different stacktraces telling you that it could not find org.jfree.chart.axis.CategoryAxis.

I've changed sloccount's MANIFEST.MF from

Plugin-Dependencies: maven-plugin:1.319
to
Plugin-Dependencies: maven-plugin:1.319,jfreechart-plugin:1.4

and it seems to work.

Here's the root cause exception:

java.lang.ClassNotFoundException: org.jfree.chart.axis.CategoryAxis
	org.aspectj.weaver.bcel.ExtensibleURLClassLoader.findClass(ExtensibleURLClassLoader.java:54)
	java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	hudson.plugins.sloccount.SloccountProjectAction.doTrend(SloccountProjectAction.java:123)