Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
Need to add try/catch block around ehcache mgr instantiation because it is masking important exceptions like access control violations.
try
{ // 1. Construct an instance of Ehcache's CacheManager object. // 2. Requires location of ehcache's config file as parameter. // 3. The CacheManager reference then gets stored as member variable of this class instance. mEhCacheImpl = new CacheManager( ClassUtil.resourceAsStream( cacheConfig ) ); }catch(Exception e)
{ String error = "CacheMgr.init caught Exception=" + e.getMessage(); LOG.error( error ); throw new CfgRuntimeException( GlobalErrIds.FT_CACHE_NOT_CONFIGURED, error, e ); }