KB Article #178238
java.lang.IllegalStateException: The store is in admin mode.
Problem
The trace contains an error like the following:
ERROR 2016/10/31 14:09:35.992 Error loading API Manager runtime:
java.lang.IllegalStateException: The store is in admin mode. This is because a type change or a passphrase change occurred. Run kpsadmin migrate or re-encrypt option to address this issue.
at com.vordel.kps.storeImpl.AbstractTransaction.checkMode(AbstractTransaction.java:213)
at com.vordel.kps.storeImpl.AbstractTransaction.iterator(AbstractTransaction.java:184)
[...]
Resolution
Normally, this problem is quite straightforward and you should follow the directions in the error message to migrate or re-encrypt. However, if neither a type change nor a passphrase change has occurred, there is at least one other possibility. This can also happen when SSL is enabled in Cassandra.yaml, but the SSL option for the KPS has not been set in Policy Studio. If that is the case, simply make the SSL settings consistent and this problem will go away.