cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jasha Joachimsthal <j.joachimst...@onehippo.com>
Subject Re: [jira] Commented: (COCOON-2295) integrating FOP-1.0 into Cocoon-2.1.12-dev
Date Sat, 25 Sep 2010 09:01:23 GMT
This is the stacktrace:

org.apache.cocoon.ProcessingException: Failed to process pipeline
	at [TransformerException] -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/hello-world/style/xsl/page2svg.xsl:27:10
	at <map:serialize type="svgxml"> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/hello-world/sitemap.xmap:96:35
	at <map:transform> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/hello-world/sitemap.xmap:95:50
	at <map:generate> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/hello-world/sitemap.xmap:94:44
	at <map:serialize type="svg2jpeg"> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/blocks/batik/sitemap.xmap:79:41
	at <map:generate> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/blocks/batik/sitemap.xmap:78:69
	at <map:mount> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/blocks/sitemap.xmap:67:68
	at <map:mount> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/samples/sitemap.xmap:198:66
	at <map:mount> -
file:///Users/jashaj/Development/workspace/BRANCH_2_1_X/build/webapp/sitemap.xmap:1079:92
	at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:145)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.handleException(AbstractProcessingPipeline.java:955)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:401)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:782)
	at org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSource.java:414)
	at org.apache.cocoon.components.source.SourceUtil.toSAX(SourceUtil.java:101)
	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:321)
	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:372)
	at org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:483)
	at org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	at org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:699)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
	at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
	at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
	at org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
	at org.mortbay.http.HttpServer.service(HttpServer.java:879)
	at org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
	at org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
	at org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
	at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
	at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:300)
	at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:511)
Caused by: org.apache.commons.lang.exception.NestableRuntimeException:
javax.xml.transform.TransformerException:
java.lang.NullPointerException
	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:604)
	at org.apache.xerces.parsers.AbstractSAXParser.endDocument(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityManager.endEntity(Unknown Source)
	at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
	at org.apache.xerces.impl.XMLEntityScanner.skipSpaces(Unknown Source)
	at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown
Source)
	at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
	at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
	at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
	at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
	at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
	at org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:326)
	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)
	at org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:355)
	... 63 more
Caused by: javax.xml.transform.TransformerException:
java.lang.NullPointerException
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
	at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
	at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
	at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3447)
	at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:408)
	at org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
	at org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
	... 80 more
Caused by: java.lang.NullPointerException
	at org.apache.batik.dom.util.SAXDocumentFactory.startElement(Unknown Source)
	at org.apache.cocoon.components.EnvironmentChanger.startElement(EnvironmentStack.java:140)
	at org.apache.cocoon.components.sax.XMLTeePipe.startElement(XMLTeePipe.java:87)
	at org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:206)
	at org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:279)
	at org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:350)
	at org.apache.xml.serializer.ToXMLSAXHandler.startPrefixMapping(ToXMLSAXHandler.java:320)
	at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1317)
	at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	... 90 more



Jasha Joachimsthal

j.joachimsthal@onehippo.com - jasha@apache.org

Hippo
Europe  •  Amsterdam  Oosteinde 11  •  1017 WT Amsterdam  •  +31 (0)20 522
4466
USA  • San Fransisco  185 H Street Suite B  •  Petaluma CA 94952-5100 •  +1
(707) 773 4646
Canada    •   Montréal  5369 Boulevard St-Laurent #430  •  Montréal QC H2T
1S5  •  +1 (514) 316 8966
www.onehippo.com  •  www.onehippo.org  •  info@onehippo.com




On 22 September 2010 08:56, Jeremias Maerki <dev@jeremias-maerki.ch> wrote:

> Can you post the stacktrace? I may be able to help.
>
> On 27.08.2010 08:46:26 Jasha Joachimsthal wrote:
> > With FOP 0.95 there is no problem (committed that change already in
> > 2.1.12-dev). With FOP 1.0 and Batik 1.7 the samples in the Batik block
> fail
> > if you use the SvgSerializer (nasty NPE).
> >
> > Jasha
> >
> >
> > On 26 August 2010 11:58, Laurent Medioni <lmedioni@odyssey-group.com>
> wrote:
> >
> > > Hi,
> > > What is your issue as we have this setup running (but in 2.1.11 with
> > > backported FOPNGSerlializer...)
> > > Thanks,
> > > Laurent
> > >
> > > -----Original Message-----
> > > From: Jasha Joachimsthal (JIRA) [mailto:jira@apache.org]
> > > Sent: mardi, 24. août 2010 08:22
> > > To: dev@cocoon.apache.org
> > > Subject: [jira] Commented: (COCOON-2295) integrating FOP-1.0 into
> > > Cocoon-2.1.12-dev
> > >
> > >
> > >    [
> > >
> https://issues.apache.org/jira/browse/COCOON-2295?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12901743#action_12901743
> ]
> > >
> > > Jasha Joachimsthal commented on COCOON-2295:
> > > --------------------------------------------
> > >
> > > Can't make the Batik block to work for JPEG/PNG serialization so won't
> > > apply this patch.
> > >
> > > > integrating FOP-1.0 into Cocoon-2.1.12-dev
> > > > ------------------------------------------
> > > >
> > > >                 Key: COCOON-2295
> > > >                 URL:
> https://issues.apache.org/jira/browse/COCOON-2295
> > > >             Project: Cocoon
> > > >          Issue Type: Improvement
> > > >          Components: Blocks: FOP
> > > >    Affects Versions: 2.1.12-dev (Current SVN)
> > > >            Reporter: ron van den branden
> > > >            Assignee: Jasha Joachimsthal
> > > >         Attachments: jars.patch, jars.xml
> > > >
> > > >
> > > > Here are instructions for updating the current FOP-0.95 serializer in
> > > Cocoon-2.1.12-dev (see
> https://issues.apache.org/jira/browse/COCOON-2289):
> > > > 1. checkout
> http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X
> > > > 2. download (and build) FOP-1.0 from
> > > http://xmlgraphics.apache.org/fop/download.html
> > > > 3. update jars in %COCOON_HOME%\lib\*:
> > > >     -replace %COCOON_HOME%\lib\optional\batik-all-1.6.jar with
> > > %FOP_HOME%\lib\batik-all-1.7.jar
> > > >     -replace %COCOON_HOME%\lib\optional\fop-0.95.jar with
> > > %FOP_HOME%\build\fop.jar
> > > >     -replace %COCOON_HOME%\lib\optional\xmlgraphics-commons-1.3.1.jar
> > > with %FOP_HOME%\lib\xmlgraphics-commons-1.4.jar
> > > >     -replace %COCOON_HOME%\lib\optional\xmlgraphics-commons-1.3.1.jar
> > > with %FOP_HOME%\lib\xmlgraphics-commons-1.4.jar
> > > >     -copy %FOP_HOME%\lib\xml-apis-ext-1.3.04.jar to
> > > %COCOON_HOME%\lib\endorsed
> > > >     -copy %FOP_HOME%\lib\serializer-2.7.0.jar to
> > > %COCOON_HOME%\lib\optional
> > > > 4. update references to these jars in %COCOON_HOME%\lib\jars.xml (see
> > > attached file)
> > > > 5. build Cocoon
> > >
> > > --
> > > This message is automatically generated by JIRA.
> > > -
> > > You can reply to this email to add a comment to the issue online.
> > >
> > >
> > > ____________________________________________________________
> > >
> > > • This email and any files transmitted with it are CONFIDENTIAL and
> > > intended
> > >  solely for the use of the individual or entity to which they are
> > > addressed.
> > > • Any unauthorized copying, disclosure, or distribution of the material
> > > within
> > >  this email is strictly forbidden.
> > > • Any views or opinions presented within this e-mail are solely those
> of
> > > the
> > >  author and do not necessarily represent those of Odyssey Financial
> > > Technologies SA unless otherwise specifically stated.
> > > • An electronic message is not binding on its sender. Any message
> referring
> > > to
> > >  a binding engagement must be confirmed in writing and duly signed.
> > > • If you have received this email in error, please notify the sender
> > > immediately
> > >  and delete the original.
> > >
>
>
>
>
> Jeremias Maerki
>
>

Mime
View raw message