Cannot see source for any file

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The following appears in the Fisheye logs:

 
2013-01-03 09:20:18,034 ERROR [btpool0-196 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.reflect.InvocationTargetException" (javax.servlet.ServletException) while processing "/fe/commitSparkline.do"
javax.servlet.ServletException: java.lang.reflect.InvocationTargetException
	at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:284)
	at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	...
Caused by: java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:601)
	... 73 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at sun.font.FontManagerFactory$1.run(FontManagerFactory.java:82)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.font.FontManagerFactory.getInstance(FontManagerFactory.java:74)
	at java.awt.Font.getFont2D(Font.java:490)
	at java.awt.Font.defaultLineMetrics(Font.java:2143)
	at java.awt.Font.getLineMetrics(Font.java:2213)

Cause

This is caused by having a wrong Java installation on Linux-like servers. OpenJDK is not supported, as stated in our Supported Platforms document.

Resolution

 

  1. Stop the Fisheye instance
  2. Remove OpenJDK completely from the server
  3. Download and install the Java Platform JDK from Oracle's website
  4. Follow steps 2 and 3 mentioned in this document
  5. Start the Fisheye instance
Last modified on Nov 2, 2018

Was this helpful?

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