cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: [C2] ArrayIndexOutOfBoundsException
Date Thu, 31 May 2001 09:31:37 GMT
Hi,

I just checked in a patch to the SQLTransformer. The old
version was not correctly reset, which means the state
of the transformer was not reset, so when the SQLTransformer
was used the second time it could have some information
from an ealier run.

I really don't know if this helps in your case. But perhaps
you could give it a try.


Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de
================================================================


> -----Urspr√ľngliche Nachricht-----
> Von: Uyttenhove Jan [mailto:Jan.Uyttenhove@the-ecorp.com]
> Gesendet: Mittwoch, 30. Mai 2001 14:51
> An: 'cocoon-dev@xml.apache.org'
> Betreff: RE: [C2] ArrayIndexOutOfBoundsException
>
>
> I still get the same exception, but now tested with a simplified
> configuration
> (I disabled caching, removed Traxtransformer and Content Aggregation this
> time):
> - a FileGenerator to read a configuration XML file containing a database
> query
> - a SQLtransformer to execute the query
> - a second transformer AttributeRowSetTransformer
> - the XMLSerializer
>
> I can execute the query 2 times, the third time it trows the exception.
> So I tested with the LogTransformer between the 2 transformers. Attached a
> part of the cocoon logfile, including first a correct execution,
> and second
> a failed one. The output of the logTransformer stops before the
> [endDocument] is printed...
>
> Can anybody help?
>
> Jan
>
>
> -----Original Message-----
> From: Uyttenhove Jan [mailto:Jan.Uyttenhove@the-ecorp.com]
> Sent: Tuesday, May 29, 2001 12:19
> To: cocoon-dev@xml.apache.org
> Subject: [C2] ArrayIndexOutOfBoundsException
>
>
> Hi all,
>
> We're building a site using transformers to query a database.
> After executing some queries, an ArrayIndexOutOfBoundsException is thrown.
> It's difficult to say when, but every third or fourth query causes this
> error.
>
> I noticed something like this was reported before (by Donald I think), can
> anyone tell me what's the status of this problem?
> Is it a xalan bug or cocoon bug (and if so, any chance it will be fixed
> soon), or did we made a mistake?
>
> Thanx,
> Jan
>
>
> DEBUG   10731   [cocoon  ] (Thread-8): Returning a
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter to the pool
> ERROR   10731   [cocoon  ] (Thread-8): ContentAggregator: cannot process
> event pipeline for URI nl/keyword/attributelist.xml
> org.apache.cocoon.ProcessingException: Failed to execute
> pipeline.:java.lang.ArrayIndexOutOfBoundsException
>  at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process
> (CachingEv
> entPipeline.java:191)
>  at
> org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggreg
> ator.java:
> 161)
>  at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process
> (CachingEv
> entPipeline.java:220)
>  at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces
> s(CachingS
> treamPipeline.java:344)
>  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1463)
>  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:945)
>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:172)
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:97)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:288)
>  at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:463)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>  at java.lang.Thread.run(Thread.java:484)
> java.lang.ArrayIndexOutOfBoundsException
>  at org.apache.xml.utils.NodeVector.popAndTop(NodeVector.java:234)
>  at org.apache.xml.utils.DOMBuilder.endElement(DOMBuilder.java:378)
>  at
> org.apache.xalan.stree.StreeDOMBuilder.endElement(StreeDOMBuilder.
> java:240)
>  at
> org.apache.xalan.stree.SourceTreeHandler.endElement(SourceTreeHand
> ler.java:5
> 52)
>  at
> org.apache.cocoon.xml.ContentHandlerWrapper.endElement(ContentHand
> lerWrapper
> .java:132)
>  at
> be.ecorp.prj.scoot.site.transformation.AttributeRowSetTransformer.
> endElement
> (AttributeRowSetTransformer.java:210)
>  at
> org.apache.cocoon.transformation.LogTransformer.endElement(LogTran
> sformer.ja
> va:184)
>  at
> be.ecorp.prj.scoot.site.transformation.SQLTransformer.end(SQLTrans
> former.jav
> a:550)
>  at
> be.ecorp.prj.scoot.site.transformation.SQLTransformer.executeQuery
> (SQLTransf
> ormer.java:228)
>  at
> be.ecorp.prj.scoot.site.transformation.SQLTransformer.endExecuteQu
> eryElement
> (SQLTransformer.java:327)
>  at
> be.ecorp.prj.scoot.site.transformation.SQLTransformer.endElement(S
> QLTransfor
> mer.java:510)
>  at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.parse(XM
> LByteStrea
> mInterpreter.java:85)
>  at
> org.apache.cocoon.components.sax.XMLByteStreamInterpreter.deserial
> ize(XMLByt
> eStreamInterpreter.java:58)
>  at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process
> (CachingEv
> entPipeline.java:189)
>  at
> org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggreg
> ator.java:
> 161)
>  at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.process
> (CachingEv
> entPipeline.java:220)
>  at
> org.apache.cocoon.components.pipeline.CachingStreamPipeline.proces
> s(CachingS
> treamPipeline.java:344)
>  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:1463)
>  at org.apache.cocoon.www.sitemap_xmap.process(sitemap_xmap.java:945)
>  at org.apache.cocoon.sitemap.Handler.process(Handler.java:172)
>  at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:97)
>  at org.apache.cocoon.Cocoon.process(Cocoon.java:288)
>  at
> org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:463)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
>  at org.apache.tomcat.core.Handler.service(Handler.java:286)
>  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
>  at
> org.apache.tomcat.core.ContextManager.internalService(ContextManag
> er.java:79
> 7)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
>  at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnec
> tion(HttpC
> onnectionHandler.java:210)
>  at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
>  at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
>  at java.lang.Thread.run(Thread.java:484)
>
>
> Today's C2 (xerxes 1.4.0 and xalan 2.1.0)
> Tomcat 3.2.1
> JDK 1.3.0_02
> OS NT4
>
> ___________________________________________________
>
> Jan Uyttenhove
> - Software Engineer -
>
> The E-corporation
> Roderveldlaan 3 bus 1
> B-2600 Antwerpen
>
> Guldensporenpark 10 (Axxes 51-003)
> B-9820 Merelbeke-Gent
>
> T:+32 [0]9 272.22.00
> F:+32 [0]9 272.22.11
> ______________________________________
> - Good company for the road ahead - www.the-ecorp.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>
>


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


Mime
View raw message