Fisheye instance is unreachable due to problems with JFreeChart library

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The Fisheye instance starts without any issues, but it can't be reached in the browser, and the following appears in the atlassian-fisheye.log:

2013-08-22 10:15:22,984 WARN  [qtp772809452-149 ] org.eclipse.jetty.servlet.ServletHandler ServletHandler-doHandle - Error for /fisheye/avatar/
java.lang.NoClassDefFoundError: org/jfree/chart/urls/XYURLGenerator
	at java.lang.Class.getDeclaredConstructors0(Native Method)
	at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
	at java.lang.Class.getConstructor0(Unknown Source)
	at java.lang.Class.getConstructor(Unknown Source)
	at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:174)
	at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:136)
	at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:246)
	at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.loadConfigurationFile(XmlConfigurationProvider.java:703)
	at com.opensymphony.xwork.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:91)
	at com.opensymphony.xwork.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:159)
	at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
	at com.opensymphony.xwork.util.OgnlUtil.isUseOgnlEnhancement(OgnlUtil.java:585)
	at com.opensymphony.xwork.util.OgnlUtil.getValue(OgnlUtil.java:287)
	at com.opensymphony.xwork.util.OgnlValueStack.findValue(OgnlValueStack.java:224)
	at com.opensymphony.webwork.dispatcher.WebWorkRequestWrapper.getAttribute(WebWorkRequestWrapper.java:52)
	at com.opensymphony.webwork.dispatcher.DispatcherUtils.createContextMap(DispatcherUtils.java:352)
	at com.opensymphony.webwork.dispatcher.DispatcherUtils.createContextMap(DispatcherUtils.java:311)
	at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:241)
	at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
	.
	.
	.
Caused by: java.lang.ClassNotFoundException: org.jfree.chart.urls.XYURLGenerator
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 130 more

Also, the logs show that the JFreeChart jar file was modified:

2013-08-22 10:34:27,939 INFO  [WrapperStartStopAppMain ] fisheye Run-printSystemInfo - --------------------------
 System Information
--------------------------
FishEye 3.0.3 20130723010312
FISHEYE_HOME    : D:\fecru-3.0.3
FISHEYE_INST    : D:\fecru-home
.
.
.
Modified Files:     
* fisheye.jar
* lib/jfreechart-1.0.9.jar

Cause

Fisheye wasn't installed properly, or the JAR file got corrupted someway.

Resolution

  1. Shutdown Fisheye
  2. Download the same Fisheye version being used
  3. Extract the jfreechart-1.0.9.jar library
  4. Replace the existing one at <FISHEYE_HOME>/lib/jfreechart-1.0.9.jar
  5. Start Fisheye

If the above steps don't work, re-install Fisheye from scratch.

Last modified on Jul 31, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.