Re: ClassCastException and Server Crash when using MruCacheStorage

Ram Palagummi <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
BTW, this is the only stack trace we were able to capture as of March 19th. 




________________________________
From: Ram Palagummi <[email protected]>
To: Attila Szegedi <[email protected]>; FreeMarker-user 
<[email protected]>
Cc: [email protected]
Sent: Tue, March 22, 2011 9:25:11 AM
Subject: Re: [FreeMarker-user] ClassCastException and Server Crash when using 
MruCacheStorage


Hi Attila,

Please see below the error messages. It seems evident that the error is caused 
due to MruCacheStorage access for a template. Please let me know if there is 
anything I can provide to help you. 


After getting these message for a while, we are forced to restart the servers.

2011-03-19 00:31:22,135 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:23,300 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19  00:31:24,943 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:25,623 ERROR com.emc.oneemc.web.filter.URLProcessingFilter - 
method: getLocaleForDomain()
message: Locale not exist for domain :www.informationwatch.net....... Setting to 
US locale
2011-03-19 00:31:25,639 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:26,244 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException:  freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:26,759 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:26,814 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
2011-03-19 00:31:26,954 ERROR com.emc.oneemc.web.view.EMCFreemarkerView - 
method: renderMergedTemplateModel
message: ERROR while processing freemarker template: 
java.lang.ClassCastException: freemarker.cache.MruCacheStorage$MruReference
<Mar 19, 2011 12:31:27 AM EDT> <Alert> <WebLogicServer> <BEA-000396> <Server 
shutdown has been requested by weblogic> 

<Mar 19, 2011 12:31:27 AM EDT>  <Notice> <WebLogicServer> <BEA-000365> <Server 
state changed to FORCE_SUSPENDING> 

<Mar 19, 2011 12:31:28 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server 
state changed to ADMIN> 

<Mar 19, 2011 12:31:28 AM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server 
state changed to FORCE_SHUTTING_DOWN> 

<Mar 19, 2011 12:31:28 AM EDT> <Notice> <Server> <BEA-002607> <Channel "Default" 
listening on 128.221.59.51:7012 was shutdown.> 

<Mar 19, 2011 12:31:28 AM EDT> <Notice> <Server> <BEA-002607> <Channel 
"Default[1]" listening on 127.0.0.1:7012 was shutdown.> 




Thanks
Ram



________________________________
From: Attila Szegedi <[email protected]>
To: FreeMarker-user <[email protected]>
Cc: Ram Palagummi <[email protected]>
Sent: Mon, March 21, 2011 2:33:19 PM
Subject: Re: [FreeMarker-user] ClassCastException and Server Crash when using 
MruCacheStorage

Can you capture a full stack trace? 


On Mar 21, 2011, at 11:32 AM, 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.
>
>
>Additionally, we are seeing the intermittent 404 issues when freemarker is 
>trying to load template from its cache causing panic within our user community. 
>
>
>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

------------------------------------------------------------------------------
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

_______________________________________________
FreeMarker-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freemarker-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.