NullPointerException when opening Bamboo Repository-Stored Specs logs

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


問題

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:

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)

診断

診断ステップ

  • 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:

    <property name="bamboo.repository.logs.directory">${bambooHome}/xml-data/repository-specs</property>

原因

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.

ソリューション

To resolve this issue, we will manually add this value to the configuration file. To do this, please:

  1. Stop Bamboo
  2. Open <bamboo-home>/bamboo.cfg.xml for editing
  3. Add the following before the </properties> tag:

    <property name="bamboo.repository.logs.directory">${bambooHome}/xml-data/repository-specs</property>
  4. Start Bamboo


最終更新日 2018 年 8 月 20 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.