ColdFusion 10: The CacheManager has been shut down. It can no longer be used

If you are using file based EHCache in Coldfusion you will run into serious troubles with ColdFusion 10 Updater 14 and your application goes down. You can find this case in bugtracker #3858286: CacheManager has been shut down error with Update 14. These updater contains an upgrade of EHCache library from version 2.5.1 to 2.6.6 to fix the bug #3339491: Upgrading Ehcache causes silent failure and unexpected behavior. You may have also seen that EHCache 2.6.6 is not available on EHCache download pages, but I do not know why yet. I guess it is sooo unstable that these version may has been removed.

Symptoms:

  • The CacheManager has been shut down. It can no longer be used.

Workarounds:

  1. Replace the C:\ColdFusion10\[instance name]\lib\ehcache-core-2.6.6.jar with the C:\ColdFusion10\[instance name]\lib\ehcache-core-2.5.1.jar that was pre-Updater 14. No need to rename, just stop CF remove the 2.6.6 file and add the 2.5.1 file and start up CF again.
  2. Uninstall CF 10 Updater 14
  3. Uninstall CF 10 Updater 15

Solution:

  1. Ask Adobe Support for hotfix named hf1000-3858286.jar. These patch will be integrated in Updater 16 first. You need to remove the file if you install Updater 16 or later.
  2. Install CF 10 Updater 16 or later

Repro case:

  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 writeable 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 writeable or change the path in /app2/ehcache.xml file.
  6. From now app2 is writing the invalid cache location c:\ehcache\app1. This may be the source of all the issues we are seeing. BUG
  7. Click STOP APP link in app2 or you wait until the application timeout. It may be useful to set the application timeout to 60s for repro.
  8. App2 has now deleted the cache manager and cache files of app1. See c:\ehcache\app1 folder. BUG
  9. Open /ehcache/app1/index.cfm in your Browser
  10. You get an error The CacheManager has been shut down. It can no longer be used. BUG

History:

  • 11/28/2014: Received hotfix from Adobe. Patch goes in Updater 16 as  Updater 15 is going to be released soon and I was told it is too late.
  • 11/26/2014: Found a workaround before requiring an uninstall of Updater 14 and until we receive a hotfix from Adobe.
Attachment Size
ehcache.zip (2.77 KB) 2.77 KB
Rating
Average: 9 (11 votes)