Cannot see source for any file

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Symptoms

The following appears in the Fisheye logs:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22   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

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.