Error occurred trying to initialize keystore table (NullPointerException)
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
Problem
Attempting to execute initKeyStore_4_2.jsp
results in the following error in the atlassian-confluence.log
:
1
2
3
4
5
6
7
8
9
10
Error occurred trying to initialise keystore table:
java.lang.NullPointerException
at java.security.MessageDigest.update(Unknown Source)
at java.security.MessageDigest.digest(Unknown Source)
at org.apache.commons.codec.digest.DigestUtils.md5(DigestUtils.java:165)
at org.apache.commons.codec.digest.DigestUtils.md5(DigestUtils.java:190)
at com.atlassian.confluence.security.trust.DefaultCurrentApplicationIdProvider.getAliasForSid(DefaultCurrentApplicationIdProvider.java:41)
at com.atlassian.confluence.security.trust.DefaultCurrentApplicationIdProvider.getCurrentApplicationId(DefaultCurrentApplicationIdProvider.java:35)
at com.atlassian.confluence.security.trust.DefaultTrustedApplicationsManager.getCurrentApplication(DefaultTrustedApplicationsManager.java:133)
at com.atlassian.confluence.security.trust.DefaultTrustedApplicationsManager.initConfluenceKey(DefaultTrustedApplicationsManager.java:143)
Cause
The Server ID of Confluence is either missing in the database or incorrectly set. This is covered more in Server ID Shows as $action.serverId or $action.sid or n.v.
Resolution
Stop Confluence
Fix the Server ID missing issue by performing the resolution steps at Server ID Shows as $action.serverId or $action.sid or n.v.
Restart Confluence
Re-configure Application link
Was this helpful?