cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jorg Heymans <Jorg.Heym...@12snap.com>
Subject RE: Random ArrayIndexOutOfBoundsException
Date Thu, 26 Jun 2003 07:32:43 GMT
"randomly receiving the content of 2 unrelated pages together" smells like
some non-threadsafe code to me. 

-----Original Message-----
From: Gabriel Egolf [mailto:gegolf@bju.edu] 
Sent: Mittwoch, 25. Juni 2003 20:48
To: cocoon-users@xml.apache.org
Subject: Random ArrayIndexOutOfBoundsException

Hello all.

I'm in the last stages of development on a rather large project, and for 
some time now have been plagued by a rather annoying problem.  I'm not 
sure even how the problem began, but I'll try to give as much 
information as possible and hopefully one of you has run across it in 
the past.  Generally, the problem manifests itself as a blank page 
containing nothing but the XML PI (<?xml version="1.0" 
encoding="utf-8"?>).  Occasionally, I'll get the contents of 2 unrelated 
pages together.  Unfortunately, this problem seems to be a completely 
random occurence, and usually a server restart will solve it temporarily.

Here's my software environment:
JDK 1.4.1_02
Jetty 4.2.9
Cocoon 2.0.4

I've supplied an error trace from my error.log at the end of this 
message.  If you've seen this before, please let me know how you fixed it.

Thanks.

Gabriel Egolf
Developer
Bob Jones University
gegolf@bju.edu

ERROR   (2003-06-25) 14:24.36:802   [access] (/giving/index) 
PoolThread-9/CocoonServlet: Problem with Cocoon servlet
  11535 org.apache.cocoon.ProcessingException: Exception during 
processing of cocoon://giving/index.html: 
java.lang.ArrayIndexOutOfBoundsException: -3
  11536     at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
93)
  11537     at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
  11538     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11539     at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
  11540     at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:154)
  11541     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11542     at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:158)
  11543     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11544     at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
  11545     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11546     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11547     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11548     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11549     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11550     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11551     at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:124)
  11552     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11553     at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectN
ode.java:140)
  11554     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11555     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11556     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11557     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11558     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11559     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11560     at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
  11561     at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
  11562     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  11563     at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
  11564     at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
  11565     at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
  11566     at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
  11567     at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
  11568     at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
  11569     at org.mortbay.http.HttpServer.service(HttpServer.java:863)
  11570     at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
  11571     at 
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:252)
  11572     at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
  11573     at 
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:204)
  11574     at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
  11575     at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
  11576 Caused by: java.lang.ArrayIndexOutOfBoundsException: -3
  11577     at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
  11578     at 
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1889)
  11579     at 
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(IncrementalSAX
Source_Filter.java:287)
  11580     at 
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(TransformerHa
ndlerImpl.java:552)
  11581     at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
  11582     at 
org.apache.cocoon.sitemap.ContentAggregator.endElem(ContentAggregator.java:3
29)
  11583     at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:
156)
  11584     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11585     at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
81)
  11586     ... 39 more
  11587 java.lang.ArrayIndexOutOfBoundsException: -3
  11588     at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
  11589     at 
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1889)
  11590     at 
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(IncrementalSAX
Source_Filter.java:287)
  11591     at 
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(TransformerHa
ndlerImpl.java:552)
  11592     at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
  11593     at 
org.apache.cocoon.sitemap.ContentAggregator.endElem(ContentAggregator.java:3
29)
  11594     at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:
156)
  11595     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11596     at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
81)
  11597     at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
  11598     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11599     at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
  11600     at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:154)
  11601     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11602     at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:158)
  11603     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11604     at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
  11605     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11606     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11607     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11608     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11609     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11610     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11611     at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:124)
  11612     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11613     at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectN
ode.java:140)
  11614     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11615     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11616     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11617     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11618     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11619     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11620     at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
  11621     at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
  11622     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  11623     at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
  11624     at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
  11625     at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
  11626     at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
  11627     at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
  11628     at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
  11629     at org.mortbay.http.HttpServer.service(HttpServer.java:863)
  11630     at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
  11631     at 
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:252)
  11632     at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
  11633     at 
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:204)
  11634     at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
  11635     at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
  11636 java.lang.ArrayIndexOutOfBoundsException: -3
  11637     at org.apache.xml.utils.IntStack.pop(IntStack.java:127)
  11638     at 
org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:1889)
  11639     at 
org.apache.xml.dtm.ref.IncrementalSAXSource_Filter.endElement(IncrementalSAX
Source_Filter.java:287)
  11640     at 
org.apache.xalan.transformer.TransformerHandlerImpl.endElement(TransformerHa
ndlerImpl.java:552)
  11641     at 
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
  11642     at 
org.apache.cocoon.sitemap.ContentAggregator.endElem(ContentAggregator.java:3
29)
  11643     at 
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.java:
156)
  11644     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11645     at 
org.apache.cocoon.components.source.SitemapSource.toSAX(SitemapSource.java:3
81)
  11646     at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
  11647     at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
  11648     at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
  11649     at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
alizeNode.java:154)
  11650     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11651     at 
org.apache.cocoon.components.treeprocessor.sitemap.ActTypeNode.invoke(ActTyp
eNode.java:158)
  11652     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:85)
  11653     at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok
e(PreparableMatchNode.java:166)
  11654     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11655     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11656     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11657     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11658     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11659     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11660     at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod
e.java:124)
  11661     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11662     at 
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(SelectN
ode.java:140)
  11663     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11664     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel
ineNode.java:151)
  11665     at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo
keNodes(AbstractParentProcessingNode.java:109)
  11666     at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe
linesNode.java:145)
  11667     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:332)
  11668     at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess
or.java:293)
  11669     at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
  11670     at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
  11671     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  11672     at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360)
  11673     at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandl
er.java:294)
  11674     at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
  11675     at org.mortbay.http.HttpContext.handle(HttpContext.java:1714)
  11676     at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext
.java:507)
  11677     at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
  11678     at org.mortbay.http.HttpServer.service(HttpServer.java:863)
  11679     at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:775)
  11680     at 
org.mortbay.http.ajp.AJP13Connection.handleNext(AJP13Connection.java:252)
  11681     at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:792)
  11682     at 
org.mortbay.http.ajp.AJP13Listener.handleConnection(AJP13Listener.java:204)
  11683     at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
  11684     at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)



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

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


Mime
View raw message