000020632 - Java client failing to initialize: 'KMS Cache initilization failed'

Document created by RSA Customer Support Employee on Jun 16, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000020632
Applies ToKey Manager Java Client 1.5.x
SUN Java Virtual Machine 1.4.x
IssueRKM Java client failing to initialize: "KMS Cache initilization failed"
com.rsa.kmclient.KMSException: KMS Client initialization error : Could not process KMS configuration file : [config file].  Detailed error : KMS Client initialization failed : KMS Cache initilization failed : KMS Disk Cache initialization failed : The database is already in use by another process: [process]: java.lang.Exception: The process cannot access the file because another process has locked a portion of the file
CauseThe RKM Java client does not allow the same disk cache to be shared by multiple processes.  A single process can initialize multiple KMClient objects both sharing the same disk cache.
ResolutionIn many cases the simplest solution is to have each process use it's own disk cache file.  If this is not possible then the application has to be re-architected so only one file access the KMClient disk cache at a time.
Legacy Article IDa36873