IBM Support

CacheManager/java.lang.InstantiationException: Cannot find the cache definition errors

Troubleshooting


Problem

CacheManager/java.lang.InstantiationException: Cannot find the cache definition errors

Symptom

This solution is to understand the root cause for the CacheManager/java.lang.InstantiationException: Cannot find the cache definition error which come in logs. The entire error stack trace is listed below in the "Error Message" section

Error Message

2009.02.12 14:00:19:111 Env/http-8080-Processor23:WARN:CacheManager Creating a new instance of CacheManager using the diskStorePath "<diskStorePath directory>" which is already used by an existing CacheManager. The source of the configuration was file located in WEB-INF/properties/UserCache.xml.

2009.02.12 14:00:19:111 The diskStore path for this CacheManager will be set to <diskStorePath>/ehcache_auto_created_1234427419111.
2009.02.12 14:00:19:111 To avoid this warning consider using the CacheManager factory methods to create a singleton CacheManager or specifying a separate ehcache configuration (ehcache.xml) for each CacheManager instance.
2009.02.12 14:00:19:111 Env/http-8080-Processor23:ERROR:SimpleObjectFactory class=com.comergent.appservices.productService.entitlement.ProductEntitlementEng ine(com.comergent.appservices.productService.entitlement.ProductEntitlementEngin e)
java.lang.InstantiationException: Cannot find the cache definition
at com.comergent.cacheservice.BaseCacheMap.<init>(BaseCacheMap.java:68)</spa n>
at com.comergent.appservices.productService.entitlement.ProductEntitlementEngine.<i nit>(ProductEntitlementEngine.java:84)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI mpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA ccessorImpl.java:27)

Resolving The Problem

The error is resolved after putting an entry for 'ProductEntitlementCache’ in the UserCache.xml file.

Out of the box this is the definition for ‘ProductEntitlementCache’ in UserCache.xml file:


<cache name="ProductEntitlementCache" maxElementsInMemory="50" eternal="false" overflowToDisk="true" diskPersistent="false" timeToIdleSeconds="900" memoryStoreEvictionPolicy="LFU"

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"MCS","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Document Information

Modified date:
19 May 2025

UID

swg21552238