Hi Stan,

engineering wrote:

I don't see what I might have done to cause this error with Batik 1.6. "resources/XMLResourceDescriptor.properties" is in batik-util.jar which
is included in the ARCHIVE list along with the other Batik jars.


I have tried the binary distribution and compiling from source.

I suspect that it can't get the resource file, but I must admit that I'm unsure why. You say 'ARCHIVE' list is this in an applet? If so the problem may be that it can't get it's class reference? I know there are some weirdnesses in Applets with respect to class loader accesses (which is what getResourceAsStream uses).

On Tue, 2005-04-26 at 14:42, engineering wrote:

In Batik 1.6, I'm getting the following error when I call
JSVGCanvas.setURI():

java.lang.NullPointerException
        at java.util.Properties$LineReader.readLine(Properties.java:365)
        at java.util.Properties.load(Properties.java:293)
        at org.apache.batik.util.XMLResourceDescriptor.getParserProps(Unknown
Source)
        at
org.apache.batik.util.XMLResourceDescriptor.getXMLParserClassName(Unknown 
Source)
        at
org.apache.batik.swing.svg.SVGUserAgentAdapter.getXMLParserClassName(Unknown 
Source)
        at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgent.getXMLParserClassName(Unknown
 Source)
        at
org.apache.batik.swing.svg.JSVGComponent$BridgeUserAgentWrapper.getXMLParserClassName(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
Source)
        at org.apache.batik.swing.JSVGCanvas.setURI(Unknown Source)
        at ems.SysDisplay.setURI(SysDisplay.java:3050)

This seems to be when getParserProps loads
"resources/XMLResourceDescriptor.properties".  Any thoughts?

Thanks


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



Reply via email to