I have a servlet that reads an SVG from a URL and then feeds that (via a
TranscoderInput) into the JPEGTranscoder.
If I have define a clippath (I have it in the <defs> and then I
references this in the body (e.g.,
<g clip-path="url(#plotClipArea)" ...
then I get the following exception traceback
Exception in: R( /clearview + /servlet + /transcode) -
java.lang.NullPointerException
at java.util.Hashtable.get(Hashtable.java:320)
at java.net.URL.getURLStreamHandler(URL.java:884)
at java.net.URL.<init>(URL.java:305)
at java.net.URL.<init>(URL.java:224)
at java.net.URL.<init>(URL.java:243)
at org.apache.batik.util.ParsedURLData.buildURL(Unknown Source)
at
org.apache.batik.util.ParsedURLData.openStreamInternal(Unknown Source)
at org.apache.batik.util.ParsedURLData.openStream(Unknown Source)
at org.apache.batik.util.ParsedURL.openStream(Unknown Source)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
Source)
at org.apache.batik.bridge.DocumentLoader.loadDocument(Unknown
Source)
at org.apache.batik.bridge.URIResolver.getNode(Unknown Source)
at org.apache.batik.bridge.URIResolver.getElement(Unknown Source)
at
org.apache.batik.bridge.BridgeContext.getReferencedElement(Unknown Source)
at org.apache.batik.bridge.CSSUtilities.convertClipPath(Unknown
Source)
at
org.apache.batik.bridge.AbstractGraphicsNodeBridge.buildGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
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 com.clearmetrix.outreach.actions.TranscoderAction
I am using JDK 1.3.1 on a Windows platform using Batik 1.5Beta3.
Any suggestions would be appreciated.
I have attached the SVG with the clip-path that causes the exception.
Any help is appreciated.
Thanks in advance,
Charlie

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]