cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Askild Aaberg Olsen <ask...@xangeli.com>
Subject Re: Problems using Saxon
Date Fri, 08 Sep 2006 06:52:47 GMT
Antonio Gallardo wrote:
> Askild Aaberg Olsen escribió:
>> Jose Miguel Vieira wrote:
>>>
>>> Hello,
>>>
>>> I’m trying to add saxon 8.8 to cocoon 2.1.9 installed under tomcat 5.5.
>>>
>> We use Saxon 8.7.3 as described the Cocoon Wiki (remember to remove 
>> the META-INF directory), but had no success with 8.8 (but not a 
>> nullpointerexception)
> Did you tried to rename the saxon.jar to zsaxon.jar?
>
> The "z" prefix is a trick to make sure the saxon.jar is the last in 
> the classpath.
No change on my side, but it seems like it happens when you have more 
than one XSLT-transformer in the same pipeline (2.1.9 with "cocoon 
servlet"):

cause: java.lang.UnsupportedOperationException: The TransformerHandler 
is not serially reusable. The startDocument() method must be called once 
only.

Askild
-

java.lang.UnsupportedOperationException: The TransformerHandler is not 
serially reusable. The startDocument() method must be called once only.
    at 
net.sf.saxon.TransformerHandlerImpl.startDocument(TransformerHandlerImpl.java:69)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.startDocument(AbstractXMLPipe.java:47)
    at 
org.apache.cocoon.transformation.TraxTransformer.startDocument(TraxTransformer.java:618)
    at 
net.sf.saxon.event.ContentHandlerProxy.open(ContentHandlerProxy.java:242)
    at net.sf.saxon.event.ProxyReceiver.open(ProxyReceiver.java:76)
    at 
net.sf.saxon.event.ImplicitResultChecker.open(ImplicitResultChecker.java:24)
    at 
net.sf.saxon.event.ImplicitResultChecker.firstContent(ImplicitResultChecker.java:59)
    at 
net.sf.saxon.event.ImplicitResultChecker.startElement(ImplicitResultChecker.java:30)
    at 
net.sf.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:54)
    at 
net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:481)
    at 
net.sf.saxon.event.ComplexContentOutputter.startElement(ComplexContentOutputter.java:153)
    at net.sf.saxon.tinytree.TinyElementImpl.copy(TinyElementImpl.java:313)
    at net.sf.saxon.instruct.CopyOf.processLeavingTail(CopyOf.java:139)
    at net.sf.saxon.instruct.Block.processLeavingTail(Block.java:353)
    at net.sf.saxon.instruct.Instruction.process(Instruction.java:91)
    at 
net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:250)
    at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:152)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:99)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:319)
    at 
net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:351)
    at 
net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:312)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1602)
    at 
net.sf.saxon.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:133)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:55)
    at 
org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:585)
    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:325)
    at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:115)
    at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:578)
    at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:480)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:120)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at org.apache 
cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
    at org.apache 
cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234)
    at 
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176)
    at 
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:252)
    at org.apache.cocoon.Cocoon.process(Cocoon.java:686)
    at 
org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1153)
    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

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


Mime
View raw message