NullPointerException when browsing to Confluence
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
問題
When you try to access Confluence after starting up, the following appears in the browser window and logs:
caused by: java.lang.NullPointerException
at com.atlassian.spring.container.ContainerManager.getComponent(ContainerManager.java:33)
Stack Trace:[hide]
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.NullPointerException
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152)
at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115)
.
.
.
Caused by: java.lang.NullPointerException
.
.
.
Referer URL
Unknown
This error is generic and, therefore, difficult to troubleshoot. However, it can be triggered by a few things, noted below in Cause.
原因
There are some things you can check:
- The Confluence user in the operating system might not have full read/write permissions on the <Confluence-Installation> or <Confluence-Home> directories.
- The <Confluence-Home> directory might have been moved to another location mistakenly.
- The database is not running or performing correctly. The database's credentials could be invalid.
- There is a corrupted cache or a connectivity issue on the server.
- If you have recently migrated to new server, there might be a corruption in search indices.
- If you are using a Data Center installation of Confluence, confluence.cluster.peers, have not been configured in
confluence.cfg.xml.
- If you're getting NullPointer while uploading the attachment with non-English symbols in the name.
ソリューション
- Verify that the Confluence user has enough permissions to run Confluence on the server (especially on Linux OS).
- Check that the <Confluence-Home> directory was not moved to another location.
- Check that the database is running fine as expected.
- Restart the server to clear cache or connectivity issues (sometimes this resolves most of the problems).
- How to Rebuild the Content Indexes From Scratch on Confluence Server.
- Ensure that at least one address has been configured for the confluence.cluster.peers property in
confluence.cfg.xml
. See Change Node Discovery from Multicast to TCP/IP or AWS for details. - Check java.lang.NullPointerException while uploading/downloading attachments with non-latin characters