Thanks for the help Tom.  It seems that this problem only occurs when I try to load a 
particular SVG document.  I guess I will have to take a closer look at the document 
and see what it is trying to do.

-----Original Message-----
From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 13, 2004 3:30 PM
To: Batik Users
Subject: Re: Error in opening zip file under Batik1.5.1rc2


Mike Favata wrote:

> I checked all the jar files that I downloaded with the batik-1.5.1rc2 release and 
> they all seem ok.  
> When I revert back to the 1.5.0 release this problem goes away, which makes it a 
> 1.5.1-rc2 
> problem (I guess). 

    Can you check permissions on the jar files?  I think Win zip can
get permissions wrong if the unpack path includes spaces (the Java
'jar' command doesn't have this problem).

    Can do run 'hello world'?

    cd batik-1.5.1
    java -jar batik-squiggle.jar samples/3D.svg

    If this fails then something is corrupt with your download.
Otherwise what is the command line you use?  Sample file?


> 
> -----Original Message-----
> From: Thomas DeWeese [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, January 13, 2004 12:49 PM
> To: Batik Users
> Subject: Re: Error in opening zip file under Batik1.5.1rc2
> 
> 
> Mike Favata wrote:
> 
> 
>>I just upgraded Batik 1.5 to 1.5.1rc2 and I am running into the following 
>>exception when trying to load an SVG document into a JSVGCanvas instance:
> 
> 
>>The SVG document loads regardless of this exception.  Has anyone delt 
>>with this before?  Thanks!
> 
> 
>    Is it possible that you have a 'bad' jar file on the class path?
> 
> 
> 
>>java.util.zip.ZipException: error in opening zip file
>>      at java.util.zip.ZipFile.open(Native Method)
>>      at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>>      at java.util.jar.JarFile.<init>(JarFile.java:138)
>>      at java.util.jar.JarFile.<init>(JarFile.java:80)
>>      at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:526)
>>      at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:491)
>>      at sun.misc.URLClassPath$2.run(URLClassPath.java:287)
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
>>      at sun.misc.URLClassPath.getLoader(URLClassPath.java(Compiled Code))
>>      at sun.misc.URLClassPath.getResource(URLClassPath.java(Compiled Code))
>>      at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java(Compiled Code))
>>      at java.security.AccessController.doPrivileged(Native Method)
>>      at java.net.URLClassLoader.findClass(URLClassLoader.java(Compiled Code))
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code))
>>      at java.lang.ClassLoader.loadClass(ClassLoader.java:446)
>>      at 
>> org.mozilla.javascript.NativeJavaPackage.findClass(NativeJavaPackage.java:286)
>>      at 
>> org.mozilla.javascript.NativeJavaPackage.getPkgProperty(NativeJavaPackage.java:223)
>>      at 
>> org.mozilla.javascript.ImporterTopLevel.getPackageProperty(ImporterTopLevel.java:128)
>>      at org.mozilla.javascript.ImporterTopLevel.get(ImporterTopLevel.java:109)
>>      at 
>> org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1396)
>>      at org.apache.batik.script.rhino.RhinoInterpreter.bindObject(Unknown Source)
>>      at org.apache.batik.script.InterpreterPool.createInterpreter(Unknown Source)
>>      at org.apache.batik.bridge.BridgeContext.getInterpreter(Unknown Source)
>>      at org.apache.batik.bridge.BaseScriptingEnvironment.getInterpreter(Unknown 
>> Source)
>>      at org.apache.batik.bridge.BaseScriptingEnvironment.loadScripts(Unknown Source)
>>      at org.apache.batik.bridge.UpdateManager.dispatchSVGLoadEvent(Unknown Source)
>>      at org.apache.batik.swing.svg.SVGLoadEventDispatcher.run(Unknown Source)
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 




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


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

Reply via email to