java.lang.NullPointerException when trying to view source
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 atlassian-fisheye.log
:
1
2
3
4
5
6
7
8
013-04-12 07:50:31,865 ERROR [btpool0-872 ] fisheye TotalityFilter-logExceptionDetails - Exception "java.lang.NullPointerException" (javax.servlet.ServletException) while processing "/fe/commitChartDay.do" (Referer:"http://myserver:8060/browse/MyRepo/branches/Stuff-3.2/source/kjapk/kjp/taw3/filename.cpp")
javax.servlet.ServletException: java.lang.NullPointerException
at com.opensymphony.webwork.dispatcher.DispatcherUtils.serviceAction(DispatcherUtils.java:284)
at com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:111)
[...]
Caused by: java.lang.NullPointerException
at sun.awt.X11FontManager.getDefaultPlatformFont(X11FontManager.java:779)
at sun.font.SunFontManager$2.run(SunFontManager.java:432)
Cause
OpenJDK is used.
Resolution
Use Oracle JDK instead.According to the List of Supported Platforms: "We highly recommend that you use the Oracle JVM (or use the default Mac OS X JVM), as other implementations have not been tested."
As you switch jdk, you will also need to move (for backup purposes) the entire folder FISHEYE_INST/cache/plugins before starting Fisheye with the new JDK.
Was this helpful?