cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Schwarz" <saschw...@hotmail.com>
Subject Cocoon 2.1rc2 batik 1.5b5 transcoder error
Date Tue, 12 Aug 2003 05:28:50 GMT
Hi
I switched this week from 2.0.4 to 2.1rc2 and svg2png is now throwing on my 
SVG documents with this error:

DEBUG   (2003-08-11) 23:36.50:858   [sitemap.generator.file] 
(/~sschwarz/assets/images/SwayBridge_93.png) PoolThread-3/FileGenerator: 
file resolved to 
file:/home/sschwarz/websites/agilitycourses/assets/images/src/SwayBridge.xml
WARN    (2003-08-11) 23:36.50:889   [sitemap.serializer.svg2png] 
(/~sschwarz/assets/images/SwayBridge_93.png) PoolThread-3/SVGBuilder: 
setDocumentLocator was not called, URI resolution will not work
DEBUG   (2003-08-11) 23:36.50:899   [sitemap.serializer.svg2png] 
(/~sschwarz/assets/images/SwayBridge_93.png) PoolThread-3/SVGSerializer: Got 
transcoder exception writing image, rethrowing nested exception
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:-1
An I/O error occured while processing the URI '#slats' specified on the 
element <use>
        at 
org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown Source)
        at 
org.apache.batik.transcoder.image.ImageTranscoder.transcode(Unknown Source)
        at 
org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown Source)
        at 
org.apache.cocoon.serialization.SVGSerializer.notify(SVGSerializer.java:232)
        at 
org.apache.cocoon.xml.dom.SVGBuilder.endDocument(SVGBuilder.java:162)
        at 
org.apache.xml.serializer.ToXMLSAXHandler.endDocument(ToXMLSAXHandler.java:222)
        at 
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1274)


I'm wondering specifically about:
"setDocumentLocator was not called, URI resolution will not work" which 
might indicate why the only docs that fail are those that contain internal 
xlinks??

i.e.
<?xml version="1.0"?>
<svg width="352px" height="352px" viewBox="0 0 176 176"
xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
  <g id="slats">
    <rect x="0" y="0" width="78" height="20" style="fill:white;"/>
    <line x1="0" y1="10" x2="78" y2="10" 
style="stroke-width:20;stroke-linecap:butt;stroke-dasharray:2,2"/>
  </g>
  <g id="SwayBridge" style="stroke:black; stroke-width:1.5; 
stroke-linecap:round">
    <rect x="0" y="0" width="45" height="20" style="fill:#ffcc33;"/>
    <use xlink:href="#slats" transform="translate(45,0)"/>
    <rect x="123" y="0" width="45" height="20" style="fill:#ffcc33;"/>
  </g>
  </defs>
<g transform="translate(4,78)">
<g id="rotate" transform="rotate(90,84,10)">
  <use xlink:href="#SwayBridge"/>
  </g>
  </g>
</svg>

Any help would be greatly appreciated.
Thanks
Steve

_________________________________________________________________
The new MSN 8: smart spam protection and 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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


Mime
View raw message