tracker issue : CF-3858286

select a category, or use search below
(searches all categories and all time range)
Title:

CacheManager has been shut down error with Update 14

| View in Tracker

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:

  1. November 27, 2014 00:00:00: 1_ehcache.zip

Comments:

I've been fighting this for about 4 weeks now. My temporary workaround was to disable writing to disk (which was acceptable for my particular applications, but not an option for other folks).
Comment by External U.
9944 | November 26, 2014 11:20:54 AM GMT
Also, note that application timeouts will trigger the crash (just as when you stop the app in step 7 shown in the "Steps to Reproduce").
Comment by External U.
9945 | November 26, 2014 11:22:29 AM GMT
+1...adding vote so it shows up in CF Notifications
Vote by External U.
9947 | November 26, 2014 11:43:59 AM GMT
The fix for this bug is available in the pre-release build of ColdFusion 10 Update 16
Comment by CFwatson U.
9946 | February 20, 2015 09:22:01 AM GMT