cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davanum Srinivas <d...@yahoo.com>
Subject Re: cvs commit: xml-cocoon/src/org/apache/cocoon/sitemap ThreadSafeComponentHolder.java ComponentHolderFactory.java
Date Wed, 11 Oct 2000 15:20:25 GMT
Giacomo,

Can you please fix this problem.....The only workaround i found so far needed changes to two
files.

Thanks,
dims

Index: src/org/apache/cocoon/components/language/markup/sitemap/java/sitemap.xsl
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/components/language/markup/sitemap/java/Attic/sitemap.xsl,v
retrieving revision 1.1.2.46
diff -r1.1.2.46 sitemap.xsl
415c415
<             ErrorNotifier eg = (ErrorNotifier) pipeline.getGenerator();
---
>             ErrorNotifier eg = (ErrorNotifier)pipeline.getGenerator().get();

Index: src/org/apache/cocoon/sitemap/ComponentHolderFactory.java
===================================================================
RCS file:
/home/cvspublic/xml-cocoon/src/org/apache/cocoon/sitemap/Attic/ComponentHolderFactory.java,v
retrieving revision 1.1.2.2
diff -r1.1.2.2 ComponentHolderFactory.java
30,34c30,34
<         if (ClassUtils.implementsInterface (componentName, Poolable.class.getName()))
{
<             return new PoolableComponentHolder (componentName, configuration, manager);
<         } else if (ClassUtils.implementsInterface (componentName,
SingleThreaded.class.getName())) {
<             return new DefaultComponentHolder (componentName, configuration, manager);
<         } else if (ClassUtils.implementsInterface (componentName, ThreadSafe.class.getName()))
{
---
>           /* if (ClassUtils.implementsInterface (componentName, Poolable.class.getName()))
{
>               return new PoolableComponentHolder (componentName, configuration, manager);
>           } else if (ClassUtils.implementsInterface (componentName,
SingleThreaded.class.getName())) {
>               return new DefaultComponentHolder (componentName, configuration, manager);
>           } else */ if (ClassUtils.implementsInterface (componentName,
ThreadSafe.class.getName())) {

Thanks,
dims

The StackTrace is as follows:
=============================

Pool#put: decreasing pool size
Pool#put: decreasing pool size
Pool#put: decreasing pool size
java.lang.ClassCastException: org.apache.cocoon.sitemap.DefaultComponentHolder
java.lang.ClassCastException: org.apache.cocoon.sitemap.DefaultComponentHolder
        at _D_._jakarta._build._tomcat_4_0._webapps._cocoon._sitemap_xmap.error_
process_1(_sitemap_xmap.java:2493)
        at _D_._jakarta._build._tomcat_4_0._webapps._cocoon._sitemap_xmap.proces
s(_sitemap_xmap.java:2470)
        at org.apache.cocoon.sitemap.Handler.process(Handler.java:127)
        at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:80)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:229)
        at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:16
6)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationFilterWrapper.doFilter(Applicatio
nFilterWrapper.java:159)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:258)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:160)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)

        at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
1750)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:161)
        at org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
343)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:934)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:159)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)

        at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:787)
        at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:904)
        at java.lang.Thread.run(Thread.java:484)



=====
Davanum Srinivas, JNI-FAQ Manager
http://www.jGuru.com/faq/JNI

__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message