NullPointerException when opening Bamboo Repository-Stored Specs logs
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
Summary
Problem
After Bamboo Repository Stored Specs (RSS) is run, the following appears in atlassian-bamboo.log
when clicking on the link to view the Specs log:
1
2
3
4
5
6
7
8
9
2018-05-08 14:20:42,370 ERROR [http-nio-8085-exec-18] [FiveOhOh] 500 Exception was thrown.
java.lang.NullPointerException
at sun.nio.fs.UnixPath.normalizeAndCheck(UnixPath.java:77)
at sun.nio.fs.UnixPath.<init>(UnixPath.java:71)
at sun.nio.fs.UnixFileSystem.getPath(UnixFileSystem.java:281)
at java.nio.file.Paths.get(Paths.java:84)
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsLogServiceImpl.getRepositoryLogsFolder(RepositoryStoredSpecsLogServiceImpl.java:169)
at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsLogServiceImpl.getBambooSpecsExecutionLogFile(RepositoryStoredSpecsLogServiceImpl.java:91)
at com.atlassian.bamboo.plugin.servlet.SpecLogsDownloadStrategy.getFileToServe(SpecLogsDownloadStrategy.java:75)
Diagnosis
Diagnostic Steps
Ensure that you are using Bamboo 6.3.x or higher.
Please verify that you are using RSS
Check verify that
bamboo.cfg.xml
is missing the following line:1
<property name="bamboo.repository.logs.directory">${bambooHome}/xml-data/repository-specs</property>
Cause
The value of bamboo.repository.logs.directory
is used to generate the log location on disk. If the value is missing, there is no default, so it triggers a NullPointerException.
Solution
Resolution
To resolve this issue, we will manually add this value to the configuration file. To do this, please:
Stop Bamboo
Open
<bamboo-home>/bamboo.cfg.xml
for editingAdd the following before the
</properties>
tag:1
<property name="bamboo.repository.logs.directory">${bambooHome}/xml-data/repository-specs</property>
Start Bamboo
Was this helpful?