You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by John Bresnik <jb...@auditintegrity.com> on 2003/05/02 19:30:21 UTC

java.lang.ArrayIndexOutOfBoundsException?

I've been getting this error [see "stack trace" below] when attempting to transform/serialize an XML file to PDF [using "fo2pdf"] - I check throught the archives but didnt seem to match on anything specific to my problem. I have a feeling its related to the way the XML [or XSL] is formed because i can create other PDFs [from different files] with no problems - have one have any ideas [I' fairly new to cocooon]? Also I can post the actual files if anyone wants to see them. 

thanks. 



*****cocoon error log [relevant entries]*******
---------------------------------------------------------------

ERROR   (2003-05-01) 19:02.27:250   [sitemap] (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/Table: At least one of minimum, optimum, or maximum IPD must be specified on table.
ERROR   (2003-05-01) 19:02.29:062   [sitemap] (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/MessageHandler: property - "last-line-end-indent" is not implemented yet.
ERROR   (2003-05-01) 19:02.29:140   [sitemap] (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/MessageHandler: property - "background-attachment" is not implemented yet.
ERROR   (2003-05-01) 19:02.29:156   [sitemap] (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/MessageHandler: property - "background-attachment" is not implemented yet.
ERROR   (2003-05-01) 19:02.31:296   [access] (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/CocoonServlet: Problem with Cocoon servlet

*****************************************************

******stack trace *********************************

Cocoon 2 - Internal server error

--------------------------------------------------------------------------------

type fatal

message Failed to execute pipeline.

description org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ArrayIndexOutOfBoundsException

sender org.apache.cocoon.servlet.CocoonServlet

source Cocoon servlet

stack-trace

org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.ArrayIndexOutOfBoundsException
 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:293)
 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1069)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
 at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.java:136)
 at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.java:105)
 at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.java:101)
 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:262)
 ... 51 more
java.lang.ArrayIndexOutOfBoundsException
 at java.lang.System.arraycopy(Native Method)
 at org.apache.cocoon.util.BufferedOutputStream.write(BufferedOutputStream.java:136)
 at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.java:105)
 at org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.java:101)
 at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:262)
 at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
 at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
 at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:131)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:85)
 at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:166)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
 at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:109)
 at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:143)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:326)
 at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:308)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1069)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
 at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
 at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
 at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:534)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
 at java.lang.Thread.run(Thread.java:536)


request-uri

/ojmscocoon/keel/auditIntegrity/testStatic.pdf

path-info

keel/auditIntegrity/testStatic.pdf

******************************************************

Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by Joerg Heinicke <jo...@gmx.de>.
John Bresnik wrote:
>>>Hmm, it's not as bad as written there I think. Maybe the mentioned
>>>switching off of incremental processing is enough. In the last weeks
>>>many problems with DocBook transformations could be solved by switching
>>>from Xalan 2.3.1 to 2.4.1.
>>
>>I'll try that.
> 
> hey I tried that with no luck. any other suggestions?   thanks.

What a pity! Can you send the file for further investigations or does it 
contain "company secret" stuff?

Joerg


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


Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by John Bresnik <jb...@auditintegrity.com>.
> > Hmm, it's not as bad as written there I think. Maybe the mentioned
> > switching off of incremental processing is enough. In the last weeks
> > many problems with DocBook transformations could be solved by switching
> > from Xalan 2.3.1 to 2.4.1.
>
> I'll try that.
>

hey I tried that with no luck. any other suggestions?   thanks.


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


Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by John Bresnik <jb...@auditintegrity.com>.

 
> Hmm, it's not as bad as written there I think. Maybe the mentioned 
> switching off of incremental processing is enough. In the last weeks 
> many problems with DocBook transformations could be solved by switching 
> from Xalan 2.3.1 to 2.4.1.

I'll try that. 
  
> Can you serialize to XML and try the FOP-ing offline?

yes. and it works fine. 

thanks!


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


Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by Joerg Heinicke <jo...@gmx.de>.
John Bresnik wrote:
>>version of Cocoon,
> 
> 2.1-dev [as part of Keel]
> 
>>Xalan,
> 
> We're actually using SAXON [6_5_2] as a result a different error - XALAN had
> a problem with the docbook stylesheets see the following URL for more
> detail:
> http://www.mail-archive.com/cocoon-users@xml.apache.org/msg18478.html

Hmm, it's not as bad as written there I think. Maybe the mentioned 
switching off of incremental processing is enough. In the last weeks 
many problems with DocBook transformations could be solved by switching 
from Xalan 2.3.1 to 2.4.1.

>>FOP
> 
> fop-0.20.5rc2
> 
>>Is it a DocBook XML file?
> 
> Yes Docbook
> 
>>How does the pipeline in the sitemap look like?
> 
> <map:match pattern="auditIntegrity/testStatic.pdf">
>   <map:generate type="file" src="auditIntegrity/testStatic.xml"/>
>   <map:transform type="xslt-saxon" src="auditIntegrity/xsl/aiprint.xsl"/>
>   <map:serialize type="fo2pdf"/>
> </map:match>
> 
> it is definitly related to the serializer [fo2pdf] because i can output as
> FO [or the original XML]

Can you serialize to XML and try the FOP-ing offline?
Joerg


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


Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by John Bresnik <jb...@auditintegrity.com>.
>version of Cocoon,

2.1-dev [as part of Keel]

>Xalan,

We're actually using SAXON [6_5_2] as a result a different error - XALAN had
a problem with the docbook stylesheets see the following URL for more
detail:
http://www.mail-archive.com/cocoon-users@xml.apache.org/msg18478.html

>FOP

fop-0.20.5rc2

> Is it a DocBook XML
> file?

Yes Docbook

>How does the pipeline in the sitemap look like?

      <map:match pattern="auditIntegrity/testStatic.pdf">
         <map:generate type="file" src="auditIntegrity/testStatic.xml"/>
         <map:transform type="xslt-saxon"
src="auditIntegrity/xsl/aiprint.xsl"/>
         <map:serialize type="fo2pdf"/>
      </map:match>

it is definitly related to the serializer [fo2pdf] because i can output as
FO [or the original XML]

thanks!





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


Re: java.lang.ArrayIndexOutOfBoundsException?

Posted by Joerg Heinicke <jo...@gmx.de>.
Hello John,

what version of Cocoon, Xalan, FOP are you using? Is it a DocBook XML 
file? How does the pipeline in the sitemap look like?

Joerg



John Bresnik wrote:
> I've been getting this error [see "stack trace" below] when attempting 
> to transform/serialize an XML file to PDF [using "fo2pdf"] - I check 
> throught the archives but didnt seem to match on anything specific to my 
> problem. I have a feeling its related to the way the XML [or XSL] is 
> formed because i can create other PDFs [from different files] with no 
> problems - have one have any ideas [I' fairly new to cocooon]? Also I 
> can post the actual files if anyone wants to see them.
>  
> thanks.
>  
>  
>  
> *****cocoon error log [relevant entries]*******
> ---------------------------------------------------------------
>  
> ERROR   (2003-05-01) 19:02.27:250   [sitemap] 
> (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/Table: At 
> least one of minimum, optimum, or maximum IPD must be specified on table.
> ERROR   (2003-05-01) 19:02.29:062   [sitemap] 
> (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) 
> Thread-5/MessageHandler: property - "last-line-end-indent" is not 
> implemented yet.
> ERROR   (2003-05-01) 19:02.29:140   [sitemap] 
> (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) 
> Thread-5/MessageHandler: property - "background-attachment" is not 
> implemented yet.
> ERROR   (2003-05-01) 19:02.29:156   [sitemap] 
> (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) 
> Thread-5/MessageHandler: property - "background-attachment" is not 
> implemented yet.
> ERROR   (2003-05-01) 19:02.31:296   [access] 
> (/ojmscocoon/keel/auditIntegrity/testStatic.pdf) Thread-5/CocoonServlet: 
> Problem with Cocoon servlet
> *****************************************************
>  
> ******stack trace *********************************
>  
> Cocoon 2 - Internal server error
>  
> --------------------------------------------------------------------------------
>  
> type fatal
>  
> message Failed to execute pipeline.
>  
> description org.apache.cocoon.ProcessingException: Failed to execute 
> pipeline.: java.lang.ArrayIndexOutOfBoundsException
>  
> sender org.apache.cocoon.servlet.CocoonServlet
>  
> source Cocoon servlet
>  
> stack-trace
>  
> org.apache.cocoon.ProcessingException: Failed to execute pipeline.: 
> java.lang.ArrayIndexOutOfBoundsException
>  at 
> org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:293)
>  at 
> org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
>  at 
> org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)

<!-- rest of stack trace removed -->


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