cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spectron International, Inc." <spect...@coqui.net>
Subject Re: Cocoon PDF creation problems
Date Fri, 17 May 2002 12:48:44 GMT
Like I said before:

1. My generator and the transformer work, the xsl:fo is created ok. (check
sitemap, "test1") generate->transform->serialize_to_fo works.
2. If I save the file created with 1, and use it as source to create a PDF
it also works, so the FO is valid. (check sitemap, "test2")
file->serialize_to_pdf also works
3. If I do all the steps in the same map:match it fails (check sitemap,
"test3") generate->transform->serialize_to_pdf fails.

If A->B works and B->C works I suppose A->B->C should work. I have no idea
why it does not.

Faw

----- Original Message -----
From: "KOZLOV Roman" <r-kozlov@opencascade.com>
To: <cocoon-users@xml.apache.org>
Sent: Friday, May 17, 2002 3:31 AM
Subject: Re: Cocoon PDF creation problems


> Hi,
> Check your fo code. It seems that there is no table-column element.
>
> Roman
>
> "Spectron International, Inc." wrote:
>
> > I'm having some problems with PDF creation in cocoon. I have the
following
> > sitemap (simplified, removed i18n stuff):
> >
> > <map:match pattern="test1">
> >   <map:generate type="batch" src=""/>
> >   <map:transform src="pdf/BatchSummary.xsl"/>
> >   <map:serialize type="xml"/>
> > </map:match>
> >
> > <map:match pattern="test2">
> >   <!-- text.xml is the document "test1" returns -->
> >   <map:generate type="file" src="test.xml"/>
> >   <map:serialize type="fo2pdf"/>
> > </map:match>
> >
> > <map:match pattern="test3">
> >   <map:generate type="batch" src=""/>
> >   <map:transform src="pdf/BatchSummary.xsl"/>
> >   <map:serialize type="fo2pdf"/>
> > </map:match>
> >
> > My problem is test1 and test2 work perfectly. test3 does not. I hope
someone
> > can explain me what is wrong. BTW, if I use the test.xml with just FOP
> > italso creates the PDF. It gives me the following exception:
> >
> > java.lang.ArrayIndexOutOfBoundsException
> > at
> >
org.apache.fop.fo.flow.TableRow$CellArray.getNextFreeCell(TableRow.java:86)
> > at org.apache.fop.fo.flow.TableRow.initCellArray(TableRow.java:489)
> > at org.apache.fop.fo.flow.TableRow.layout(TableRow.java:261)
> > at org.apache.fop.fo.flow.TableBody.layout(TableBody.java:172)
> > at org.apache.fop.fo.flow.Table.layout(Table.java:247)
> > at org.apache.fop.fo.flow.Block.layout(Block.java:262)
> > at org.apache.fop.fo.flow.Flow.layout(Flow.java:156)
> > at org.apache.fop.fo.flow.Flow.layout(Flow.java:113)
> > at
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:296)
> > at org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:200)
> > at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:182)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
> > at
> >
org.apache.cocoon.transformation.I18nTransformer.endElement(I18nTransformer.
> > java:887)
> > at
> >
org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.
> > java:307)
> > at
> >
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> > 716)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> > erImpl.java:2243)
> > at
> >
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
> > 710)
> > at
> >
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
> > lyTemplates.java:422)
> > at
> >
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
> > a:226)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
> > erImpl.java:2243)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
> > Impl.java:2069)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
> > ava:1171)
> > at
> >
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
> > at
> >
org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerH
> > andlerImpl.java:436)
> > at
> >
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
> > at org.jdom.output.SAXOutputter.endDocument(SAXOutputter.java:359)
> > at org.jdom.output.SAXOutputter.output(SAXOutputter.java:267)
> > at
> >
com.spectron.cocoon.SpectronGenerator.generate(SpectronGenerator.java:341)
> > at
> >
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
> > entPipeline.java:251)
> > at
> >
org.apache.cocoon.components.pipeline.AbstractStreamPipeline.process(Abstrac
> > tStreamPipeline.java:184)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.matchN100F4(/tmp/Jetty__80___cocoon/
> > cocoon-files/org/apache/cocoon/www/msim/sitemap_xmap.java:2188)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> > on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:1011)
> > at
> >
org.apache.cocoon.www.msim.sitemap_xmap.process(/tmp/Jetty__80___cocoon/coco
> > on-files/org/apache/cocoon/www/msim/sitemap_xmap.java:910)
> > at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.matchN109AB(/tmp/Jetty__80___cocoon/cocoo
> > n-files/org/apache/cocoon/www/sitemap_xmap.java:11987)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi
> > les/org/apache/cocoon/www/sitemap_xmap.java:3889)
> > at
> >
org.apache.cocoon.www.sitemap_xmap.process(/tmp/Jetty__80___cocoon/cocoon-fi
> > les/org/apache/cocoon/www/sitemap_xmap.java:3097)
> > at org.apache.cocoon.sitemap.Handler.process(Handler.java:222)
> > at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
> > at
org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
> > at org.apache.cocoon.Cocoon.process(Cocoon.java:575)
> > at
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:998)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:326)
> > at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:595)
> > at org.mortbay.http.HttpContext.handle(HttpContext.java:1357)
> > at org.mortbay.http.HttpContext.handle(HttpContext.java:1309)
> > at org.mortbay.http.HttpServer.service(HttpServer.java:744)
> > at org.mortbay.http.HttpConnection.service(HttpConnection.java:743)
> > at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:916)
> > at org.mortbay.http.HttpConnection.handle(HttpConnection.java:758)
> > at
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:145)
> > at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:287)
> > at org.mortbay.util.ThreadPool$JobRunner.run(ThreadPool.java:715)
> > at java.lang.Thread.run(Thread.java:484)
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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