Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Carl Von Stetten / Carl Von Stetten (Carl Von Stetten)
Created: 11/26/2014
Components: Caching
Versions: 10.0
Failure Type: Crash
Found In Build/Fixed In Build: Final / CF10 Update16
Priority/Frequency: Critical / Most users will encounter
Locale/System: English / Windows 7 64-bit
Vote Count: 1
Problem Description: When using EhCache with custom caches that write to disk, and run multiple applications on the same ColdFusion server instance, periodically any code that accesses the cache will begin throwing the "CacheManager has been shut down. It can no longer be used." error.
Steps to Reproduce: Copied from this blog post http://www.hass.de/content/coldfusion-10-cachemanager-has-been-shut-down-it-can-no-longer-be-used
1. Download attached repro case.
2. Open /ehcache/app1/index.cfm in your web browser.
3. This initialize the application and set the disk store cache path to c:\ehcache\app1. Make sure this is write able or change the path in /app1/ehcache.xml file.
4. Open /ehcache/app2/index.cfm in your web browser.
5. This initialize the application and set the disk store cache path to c:\ehcache\app2. Make sure this is write able or change the path in /app2/ehcache.xml file.
6. From now app2 is writing the invalid cache location c:\ehcache\app1. This is BUG1 or the source of the underlying bug.
7. Click STOP APP link in app2
8. Open /ehcache/app1/index.cfm in your Browser
9. You get an error The CacheManager has been shut down. It can no longer be used.. BUG2
Actual Result: Error shown above
Expected Result: Code that accesses the cache should not error.
Any Workarounds:
1. Remove Updater 14.
2. Replace the ehcache-core-2.6.6.jar with the ehcache-core-2.5.1.jar that was pre-Updater 14.
3. Do not write caches to disk.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3858286
External Customer Info:
External Company:
External Customer Name: Carl Von Stetten
External Customer Email:
External Test Config: My Hardware and Environment details: Windows 7 64-bit (physical computer) with ColdFusion 10 Developer Edition and Windows 2008R2 (virtual machine) with ColdFusion 10 Standard Edition.
Attachments:
- November 27, 2014 00:00:00: 1_ehcache.zip
Comments: