Shawn McKinney created FC-226:
---------------------------------
Summary: ehcache masking security exceptions
Key: FC-226
URL: https://issues.apache.org/jira/browse/FC-226
Project: FORTRESS
Issue Type: Bug
Affects Versions: 2.0.0
Reporter: Shawn McKinney
Assignee: Shawn McKinney
Fix For: 2.0.1
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 );
}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)