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:
- Replace the
C:\ColdFusion10\[instance name]\lib\ehcache-core-2.6.6.jar
with theC:\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. - Uninstall CF 10 Updater 14
- Uninstall CF 10 Updater 15
Solution:
- 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. - Install CF 10 Updater 16 or later
Repro case:
- Download attached repro case.
- Open
/ehcache/app1/index.cfm
in your web browser. - 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. - Open
/ehcache/app2/index.cfm
in your web browser. - 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. - 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 - 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.
- App2 has now deleted the cache manager and cache files of app1. See
c:\ehcache\app1
folder. BUG - Open
/ehcache/app1/index.cfm
in your Browser - 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.