Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Jordan Clark / Jordan Clark (Y Guy)
Created: 10/01/2012
Components: Caching
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final / CF10_Update14
Priority/Frequency: Major / All users will encounter
Locale/System: English / Win 2008 Server R2
Vote Count: 2
Problem Description:
When upgrading the bundled Ehcache libraries from 2.5.1 to 2.5.5 or 2.6.0 Ehcache fails in an unexpected way. There are no error messages reported in the log files, and caching appears to still work. However what has happened is the \cfusion\lib\ehcache.xml is ignored, the application specific this.cache.configFile = "ehcache.xml" is ignored, and the OBJECT, TEMPLATE and caches created with cacheRegionNew() are are being added to the "AuthCacheManager" cache manager which is defined in \cfusion\lib\auth-ehcache.xml.
This is a silent failure that was not easy to figure out. In ColdFusion 9 it was possible to upgrade Ehcache without this behaviour, so this is a regression. It should be possible to upgrade the Ehcache subcomponent as newer versions contain bug fixes and new features including Terracotta server and BigMemory.
Our site relies on using a newer version of Ehcache to connect to our Terracotta Cache Server, until this bug is fixed it is not possible for us to upgrade our servers from CF 9 to CF 10.
It is possible to verify this behaviour by running this code:
<cfset cacheManager = createObject("java", "net.sf.ehcache.CacheManager")>
<cfdump label="#cacheManager.getInstance().getName()#" var="#cacheManager.getInstance().getCacheNames()#">
Steps to Reproduce:
Replace ehcache-core-2.5.1.jar with ehcache-core-2.5.5.jar or ehcache-core-2.6.0.jar
Actual Result:
When running version 2.5.5 or 2.6 the output cache manager will be "AuthCacheManager" and the only defined cache is "authcache"
Expected Result:
Normally the cache manager should be unnamed with the the caches defined in ehcache.xml including: "customcache", OBJECT & TEMPLATE
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3339491
Deployment Phase: Release Candidate
External Customer Info:
External Company:
External Customer Name: Y Guy
External Customer Email:
External Test Config: My Hardware and Environment details: ColdFusion 10 (with all updates) on Windows 2003 and Windows 2008
Attachments:
Comments: