You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by irfan ali <al...@jaydemail.com> on 2002/05/28 17:47:47 UTC

Run time errors, please help

Hello everyone,

I am having this problem for long time now and I don't know what to do. I am able to complie SaveAsJPEG.java sample file but when I try to run the class file with my sample svg file it generates following errors. 

============================================================

C:\Apache Group\Batik\xml-batik>java SaveAsJPEG barchartnew.svg


java.io.IOException: The current document is unable to create an element of the
requested type (namespace: http://www.w3.org/2000/svg, name: coordinates).
        at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(Unknown S
ource)
        at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
 Source)
        at org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(Unknown
 Source)
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at SaveAsJPEG.main(SaveAsJPEG.java:23)
Exception in thread "main" org.apache.batik.transcoder.TranscoderException: null

Enclosed Exception:
The current document is unable to create an element of the requested type (names
pace: http://www.w3.org/2000/svg, name: coordinates).
        at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
ource)
        at SaveAsJPEG.main(SaveAsJPEG.java:23)

============================================================

Any help is highly appreciated. 

Thanks,
Irfan



-- 
===

Another FREE service from Jayde Online <http://www.jayde.com>
Private, Web-based email accounts at http://www.jaydemail.com

Powered by Outblaze

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


RE: Run time errors, please help

Posted by Thierry Kormann <tk...@ilog.fr>.
> I am having this problem for long time now and I don't know what
> to do. I am able to complie SaveAsJPEG.java sample file but when
> I try to run the class file with my sample svg file it generates
> following errors.

Could you please send us your document.

Anyway, before that, please check that your svg file has the following
header:

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     ...>

...
</svg>

Thierry.



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