Last active
December 16, 2015 01:09
-
-
Save jbrunemann/5352681 to your computer and use it in GitHub Desktop.
Work around for ColdFusion 10.0 Bug 3327626: Another CacheManager with same name '_ORM_........' already exists in the same VM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
component | |
{ | |
public void function onError(required any exception, string eventName) output=true | |
{ | |
if (structKeyExists(arguments.exception, "type") and arguments.exception.type eq "net.sf.ehcache.CacheException" and structKeyExists(arguments.exception, "message") and arguments.exception.message contains "Another CacheManager with same name") | |
{ | |
var cacheMan_obj = createObject("java", "net.sf.ehcache.CacheManager").getCacheManager("_ORM_" & this.name); | |
cacheMan_obj.shutdown(); | |
} | |
} | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment