We have an super admin certificate expired. Tried to renew it using ejbca.sh and in the last step it failed:
[jboss@63a2ea1bfbfd bin]$ ./ejbca.sh batch
./ejbca.sh: line 3: which: command not found
Use 'batch --help' for additional options.
Generating keys in directory /tmp/p12.
Generating for end entities with status NEW.
Batch generating 2 users.
java.lang.NullPointerException
at org.cesecore.configuration.GlobalConfigurationSessionBean$GlobalConfigurationCacheHolder.updateConfiguration(GlobalConfigurationSessionBean.java:281)
at org.cesecore.configuration.GlobalConfigurationSessionBean.getCachedConfiguration(GlobalConfigurationSessionBean.java:141)
Version 6.5.0-Alpha, installed on jboss 7.1.1. Any idea why this NPE?
Thanks
Thanks @primetomas, I finally fixed the issue.
The crypto token related to the admin CA was offline. The NPE mentioned in the question was solved after activate it. In order to not present that NPE and really show the exception, I have to updated at cesecore-ejb the file
org.cesecore.configuration.GlobalConfigurationSessionBeanto prevent NPE if caches does not contain the key.After that fix, another NPE fixed at cesecore-common at
org.cesecore.certificates.ca.X509CA: