Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ERROR (2002-08-20) 03:05.26:671 [access] (/main/images/banners/Sep02_Kozena.gif) Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:234) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS treamPipeline.java:249) at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424) at java.lang.Thread.run(Thread.java:484) java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.processReader(Ca chingStreamPipeline.java:154) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac tStreamPipeline.java:125) at
RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Perhaps this is the same bug as described here: http://marc.theaimsgroup.com/?t=10293301812r=1w=2 Carsten -Original Message- From: Christopher Watson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 20, 2002 2:48 PM To: Cocoon-Users Subject: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject Could anyone help with this cache problem ... I seem to get these errors creep into existence for certain static document (e. g. images). Everything is fine for a couple of days, then I start getting cache errors on access to some static files. Once a certain URI starts failing, it keeps failing, then gradually others join in. To restore access to them, I have to stop tomcat, delete the work directory (which includes the cache of course!) and restart tomcat. Then everything is fine for a couple of days again. I've checked the recommendations for heapsize and freememory as far as I understand them. I've done a search of the mailing list, but have not managed to find anything specific to this error. System is Windows 2000 IIS5 using ISAPI to tomcat 4.0.1 to cocoon 2.0.1 jdk1.3.1 Here's the error I get. (By the way, /main/ is the name of my cocoon context and directory) ERROR (2002-08-20) 03:05.26:671 [access] (/main/images/banners/Sep02_Kozena.gif) Ajp13Processor[8009][20]/CocoonServlet: Problem with servlet org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces sReader(Ca chingStreamPipeline.java:234) at org.apache.cocoon.components.pipeline.AbstractStreamPipeline.proce ss(Abstrac tStreamPipeline.java:125) at org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces s(CachingS treamPipeline.java:249) at org.apache.cocoon.www.sitemap_xmap.matchN10A3F(sitemap_xmap.java:10143) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:3022) at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:2481) at org.apache.cocoon.sitemap.Handler.process(Handler.java:180) at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:127) at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:144) at org.apache.cocoon.Cocoon.process(Cocoon.java:582) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:795) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(A pplication FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(Applicati onFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapp erValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardConte xtValve.ja va:201) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValv e.java:164 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispat cherValve. java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValv e.java:170 ) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngine Valve.java :163) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipel ine.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline. java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java
RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject
Carsten. I think it's not the same problem, since I'm just doing a map:read to get the .gif :-( (The bug you mentioned below seemed to be resolved by a patch to batik, so I guess it was a generated svgjpeg image in their case) I'm just going to look at something Vadim has suggested ... Christopher PS I've just bought yours and Matthew's book. It's VERY helpful, delightfully systematically presented. Wish it had been out there a year ago! Thank you -Original Message- From: Carsten Ziegeler [mailto:[EMAIL PROTECTED]] Sent: 20 August 2002 13:59 To: [EMAIL PROTECTED] Subject: RE: Anyone seen this cache problem?: - java.lang.ClassCastException: org.apache.cocoon.caching.CachedEventObject Perhaps this is the same bug as described here: http://marc.theaimsgroup.com/?t=10293301812r=1w=2 Carsten - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]