Error occurred trying to initialize keystore table (NullPointerException)

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Stop Confluence
  2. Fix the Server ID missing issue by performing the resolution steps at Server ID Shows as $action.serverId or $action.sid or n.v.

  3. Restart Confluence
  4. Re-configure Application link
Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.