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 Hitesh Harnal <hh...@yahoo.co.in> on 2006/04/29 12:00:35 UTC
Problem with loading SVG files using SVGApplication tutorial on Batik
Hi,
I am having problem in loading SVG documents using the setURI() function of JSVGCanvas.
I get the following exception when I attempt to load any file.:
*******************************************************************************
java.lang.NullPointerException
at java.io.Reader.<init>(Unknown Source)
at java.io.InputStreamReader.<init>(Unknown Source)
at java.util.Properties.load(Unknown Source)
at org.apache.batik.util.XMLResourceDescriptor.getParserProps(Unknown So
urce)
at org.apache.batik.util.XMLResourceDescriptor.getXMLParserClassName(Unk
nown Source)
at org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.getXMLParser
ClassName(Unknown Source)
at org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgentWrapper.getXM
LParserClassName(Unknown Source)
at org.apache.batik.bridge.DocumentLoader.<init>(Unknown Source)
at org.apache.batik.swing.svg.JSVGComponent$1.run(Unknown Source)
at org.apache.batik.swing.svg.JSVGComponent.stopThenRun(Unknown Source)
at org.apache.batik.swing.svg.JSVGComponent.loadSVGDocument(Unknown Sour
ce)
at org.apache.batik.swing.JSVGCanvas.setURI(Unknown Source)
at SVGApplication$2.actionPerformed(SVGApplication.java:66)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknow
n Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
at java.awt.Component.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
**************************************************************************************
Can anyone please let me know what is going wrong.
Thanks
Hitesh
---------------------------------
Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.
Re: Problem with loading SVG files using SVGApplication tutorial on Batik
Posted by Hitesh Harnal <hh...@yahoo.co.in>.
Thanks Thomas, The resources directory was missing.
thomas.deweese@kodak.com wrote: Hi Hitesh,
Hitesh Harnal wrote on 04/29/2006 06:00:35 AM:
> I am having problem in loading SVG documents using the setURI() function
of JSVGCanvas.
> I get the following exception when I attempt to load any file.:
It looks like you are missing a jar file or perhaps the 'resources'
directory
from your class path.
> java.lang.NullPointerException
> at java.io.Reader.(Unknown Source)
> at java.io.InputStreamReader.(Unknown Source)
> at java.util.Properties.load(Unknown Source)
> at
org.apache.batik.util.XMLResourceDescriptor.getParserProps(Unknown So
> urce)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: Problem with loading SVG files using SVGApplication tutorial on Batik
Posted by th...@kodak.com.
Hi Hitesh,
Hitesh Harnal <hh...@yahoo.co.in> wrote on 04/29/2006 06:00:35 AM:
> I am having problem in loading SVG documents using the setURI() function
of JSVGCanvas.
> I get the following exception when I attempt to load any file.:
It looks like you are missing a jar file or perhaps the 'resources'
directory
from your class path.
> java.lang.NullPointerException
> at java.io.Reader.<init>(Unknown Source)
> at java.io.InputStreamReader.<init>(Unknown Source)
> at java.util.Properties.load(Unknown Source)
> at
org.apache.batik.util.XMLResourceDescriptor.getParserProps(Unknown So
> urce)
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org