Re: ClassCastException and Server Crash when using MruCacheStorage
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Monday, March 21, 2011, 7:32:35 PM, Ram Palagummi wrote: > Hi, > > I am an architect from EMC corporation and we have been using > FreeMarker for rendering our emc.com and few other application web > pages. We deployed new EMC.com towards the end of 2007 and the > FreeMarker version we went live with is 2.3.10. > > We have been noticing that anytime MruCacheStorage (strong = 0 and > soft=500 or any other settings) is turned on for template caching, > we are getting the following error and the servers have to be > bounced in order to fix the problem. > > ERROR while processing freemarker > template:java.lang.CLassCastException : > freemarker.cache.MruCacheStorage$MruReference. Rather strange. So, as Attila said, you should send a full stack-trace. Any change that you have multiple freemarker.jar-s of different versions in your class path? > Additionally, we are seeing the intermittent 404 issues when > freemarker is trying to load template from its cache causing panic within our user community. There is something strange about the Web application framework there. FreeMarker itself doesn't generate 404 or any other HTTP error message, it just throws exceptions. In most situations an issue with a template should result in 500. Thus the visitors know that the page haven't been removed or something, "only" there's some problem on the server. > Its critical that we resolve this issue right away. Please let us > know if this is a known issue and has a fix. > > Thanks > Solution Architect > EMC Corporation > -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar