Error occurred trying to initialize keystore table (NullPointerException)
Problem
Attempting to execute initKeyStore_4_2.jsp results in the following error in the atlassian-confluence.log
:
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
Last modified on Nov 2, 2018
Powered by Confluence and Scroll Viewport.