You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jens Reufsteck <je...@hobsons.de> on 2008/01/10 17:49:12 UTC

limited number of cinclude calls?

Hi list,

I'm using cinclude to include the content of a large number of websites.
This works fine for some 10.000 calls but then throws a fatal error caused
by an IndexOutOfBoundsException. I've set cinclude to ignoreErrors=true. Any
idea how to locate or fix the problem is much appreciated!

This is the error stack:

FATAL_E (2008-01-10) 12:38.58:311   [core.xslt-processor]
(/cocoon//DE/typo3/pt-dkd-convert) http-8180-Processor1/TraxErrorHandler:
Error in TraxTransformer:
 
file:/var/lib/tomcat5/webapps/cocoon/DE/typo3/stylesheets/dkd_convert_includ
e.xsl; Line 80; Column 50;
; SystemID:
file:/var/lib/tomcat5/webapps/cocoon/DE/typo3/stylesheets/dkd_convert_includ
e.xsl; Line#: 80; Column#: 50
javax.xml.transform.TransformerException:
java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2344)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
710)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:210)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
710)
        at
org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.ja
va:441)
        at
org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:300)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
710)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
710)
        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:425)
        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:216)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2160)
        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1213)
        at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3372)
        at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
        at java.util.ArrayList.RangeCheck(ArrayList.java:507)
        at java.util.ArrayList.get(ArrayList.java:324)
        at
org.apache.cocoon.components.EnvironmentStack.getCurrent(EnvironmentStack.ja
va:47)
        at
org.apache.cocoon.components.CocoonComponentManager.resolveURI(CocoonCompone
ntManager.java:532)
        at
org.apache.cocoon.environment.AbstractEnvironment.resolveURI(AbstractEnviron
ment.java:545)
        at
org.apache.cocoon.components.source.SourceUtil.getSource(SourceUtil.java:568
)
        at
org.apache.cocoon.transformation.CIncludeTransformer.endTransformingElement(
CIncludeTransformer.java:361)
        at
org.apache.cocoon.transformation.AbstractSAXTransformer.endElement(AbstractS
AXTransformer.java:336)
        at
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:89)
        at
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
java:309)
        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
716)
        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2339)
        ... 18 more

We use Cocoon 2.1.7.

Many thanks
Jens


-- 
Jens Reufsteck
Hobsons GmbH
Wildunger Straße 6
60487 Frankfurt am Main
Deutschland

Tel: +49 (69) 255 37-140
Fax: +49 (69) 255 37-2140

http://www.hobsons.de
http://www.hobsons.ch

Geschäftsführung:
Christopher Letcher, Judith Oppitz, Adam Webster
Amtsgericht Frankfurt HRB 58610


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


RE: limited number of cinclude calls?

Posted by Jens Reufsteck <je...@hobsons.de>.
Hi Grzegorz,

thanks a lot for your answer. Just to close this thread: I didn't go into
further analysis but rather changed my overall approach. Related to the
described issue I also encountered OutOfMemoryExceptions in Tomcat, which
also could be related to the xsl-transformation setting the cinclude-tags,
which then are triggered by the Cinclude-Transformer.


-- 
Jens Reufsteck
Hobsons GmbH
Wildunger Straße 6
60487 Frankfurt am Main
Deutschland

Tel: +49 (69) 255 37-140
Fax: +49 (69) 255 37-2140

http://www.hobsons.de
http://www.hobsons.ch

Geschäftsführung:
Christopher Letcher, Judith Oppitz, Adam Webster
Amtsgericht Frankfurt HRB 58610 

>-----Original Message-----
>From: Grzegorz Kossakowski [mailto:gkossakowski@apache.org] 
>Sent: Sunday, January 13, 2008 1:18 AM
>To: users@cocoon.apache.org
>Subject: Re: limited number of cinclude calls?
>
>Jens Reufsteck pisze:
>> Hi list,
>
>Hi Jens.
>
>> I'm using cinclude to include the content of a large number 
>of websites.
>> This works fine for some 10.000 calls but then throws a 
>fatal error caused
>> by an IndexOutOfBoundsException. I've set cinclude to 
>ignoreErrors=true. Any
>> idea how to locate or fix the problem is much appreciated!
>
>I don't have any idea what may be wrong but since CInclude 
>creates separate thread for each include
>it may be related to this fix:
>http://svn.apache.org/viewvc?view=rev&revision=189756
>
>Have you tried with more recent version of Cocoon? 2.1.7 is 
>almost three years old now.
>
>-- 
>Grzegorz Kossakowski
>Committer and PMC Member of Apache Cocoon
>http://reflectingonthevicissitudes.wordpress.com/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: limited number of cinclude calls?

Posted by Grzegorz Kossakowski <gk...@apache.org>.
Jens Reufsteck pisze:
> Hi list,

Hi Jens.

> I'm using cinclude to include the content of a large number of websites.
> This works fine for some 10.000 calls but then throws a fatal error caused
> by an IndexOutOfBoundsException. I've set cinclude to ignoreErrors=true. Any
> idea how to locate or fix the problem is much appreciated!

I don't have any idea what may be wrong but since CInclude creates separate thread for each include
it may be related to this fix:
http://svn.apache.org/viewvc?view=rev&revision=189756

Have you tried with more recent version of Cocoon? 2.1.7 is almost three years old now.

-- 
Grzegorz Kossakowski
Committer and PMC Member of Apache Cocoon
http://reflectingonthevicissitudes.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org