forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject svg2png bug
Date Fri, 15 Nov 2002 16:18:01 GMT
Hi there,

I have added snippet to my sitemap.xmap: (in src/documentation filder)

   <!-- VG: Add SVG to PNG rule -->
   <map:match pattern="**/images/**.png">
    <map:generate src="content/xdocs/{1}/{2}.svg"/>
    <map:serialize type="svg2png" mime-type="image/png"/>
   </map:match>


And have got following exception trying to make use of it:

java.lang.ClassCastException: org.apache.xerces.parsers.SAXParser
    at org.apache.cocoon.serialization.SVGSerializer.notify(Unknown Source)
    at org.apache.cocoon.xml.dom.SVGBuilder.endDocument(Unknown Source)
    at 
org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:91)
    at 
org.apache.cocoon.components.sax.XMLTeePipe.endDocument(XMLTeePipe.java:102)
    at 
org.apache.xerces.parsers.AbstractSAXParser.endDocument(AbstractSAXParser.java:741)
    at 
org.apache.xerces.impl.XMLNamespaceBinder.endDocument(XMLNamespaceBinder.java:705)
    at 
org.apache.xerces.impl.dtd.XMLDTDValidator.endDocument(XMLDTDValidator.java:918)
    at 
org.apache.xerces.impl.XMLDocumentScannerImpl.endEntity(XMLDocumentScannerImpl.java:451)
    at 
org.apache.xerces.impl.XMLEntityManager.endEntity(XMLEntityManager.java:1246)
    at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.load(XMLEntityManager.java:3283)
    at 
org.apache.xerces.impl.XMLEntityManager$EntityScanner.skipSpaces(XMLEntityManager.java:2953)
    at 
org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(XMLDocumentScannerImpl.java:1017)
    at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329)
    at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525)
    at 
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at 
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175)
    at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:264)
    at org.apache.avalon.excalibur.xml.JaxpParser.parse(JaxpParser.java:215)
    at 
org.apache.excalibur.xmlizer.impl.TextXMLizer.toSAX(TextXMLizer.java:44)
    at 
org.apache.excalibur.xmlizer.impl.AbstractXMLizer.toSAX(AbstractXMLizer.java:102)
    at 
org.apache.excalibur.xmlizer.impl.XMLizerImpl.toSAX(XMLizerImpl.java:94)
    at 
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironment.java:536)
    at 
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:140)
    at 
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline.processXMLPipeline(AbstractCachingProcessingPipeline.java:273)
    at 
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:486)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:149)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:83)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:162)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:153)
    at 
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:107)
    at 
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:150)
    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.Main.processLenient(Main.java:979)
    at org.apache.cocoon.Main.getPage(Main.java:934)
    at org.apache.cocoon.Main.processURI(Main.java:805)
    at org.apache.cocoon.Main.process(Main.java:619)
    at org.apache.cocoon.Main.main(Main.java:433)


Anyone got a clue on this one?


Vadim




Mime
View raw message