ZipException: error in opening zip file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ZipException: error in opening zip file

Hotzenplotz
I downloaded jogl-2.0-b544 and gluegen-2.0-b437, extracted the files and copied the jars (gluegen.jar,gluegen-rt.jar,jogl.all.jar) to the jar-folder of the jogl-demos(v2.0). I also copied the native .so files into that jar-folder. Then i executed the command:
java -cp jogl-demos.jar:jogl-demos-data.jar:jogl-demos-util.jar:jogl.all.jar:gluegen.jar:gluegen-rt.jar -Djava.library.path=. demos.gears.Gears

The demo application does start an i can see the rotating gears, but in the console a lot of ZipExceptions are logged (full output):

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:135)
	at java.util.jar.JarFile.<init>(JarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
	at com.jogamp.common.util.JarUtil.getJarFile(JarUtil.java:153)
	at com.jogamp.common.os.Platform$3.run(Platform.java:312)
	at java.security.AccessController.doPrivileged(Native Method)
	at com.jogamp.common.os.Platform.loadGlueGenRTImpl(Platform.java:303)
	at com.jogamp.common.os.Platform.<clinit>(Platform.java:212)
	at javax.media.opengl.GLProfile.<clinit>(GLProfile.java:1141)
	at demos.gears.Gears.<clinit>(Gears.java:24)
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:135)
	at java.util.jar.JarFile.<init>(JarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
	at com.jogamp.common.util.JarUtil.getJarFile(JarUtil.java:153)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:162)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:188)
	at javax.media.opengl.GLProfile$1.run(GLProfile.java:119)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:112)
	at demos.gears.Gears.<clinit>(Gears.java:24)
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:135)
	at java.util.jar.JarFile.<init>(JarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
	at com.jogamp.common.util.JarUtil.getJarFile(JarUtil.java:153)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:162)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:188)
	at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:45)
	at java.security.AccessController.doPrivileged(Native Method)
	at jogamp.nativewindow.NWJNILibLoader.loadNativeWindow(NWJNILibLoader.java:41)
	at jogamp.nativewindow.jawt.JAWTUtil.<clinit>(JAWTUtil.java:80)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.jogamp.common.util.ReflectionUtil.callMethod(ReflectionUtil.java:309)
	at javax.media.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:218)
	at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1164)
	at javax.media.opengl.GLProfile.access$000(GLProfile.java:73)
	at javax.media.opengl.GLProfile$1.run(GLProfile.java:121)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:112)
	at demos.gears.Gears.<clinit>(Gears.java:24)
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:135)
	at java.util.jar.JarFile.<init>(JarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.<init>(URLJarFile.java:72)
	at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:48)
	at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:55)
	at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
	at sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:71)
	at com.jogamp.common.util.JarUtil.getJarFile(JarUtil.java:153)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:162)
	at com.jogamp.common.jvm.JNILibLoaderBase.addNativeJarLibs(JNILibLoaderBase.java:188)
	at jogamp.nativewindow.NWJNILibLoader$1.run(NWJNILibLoader.java:45)
	at java.security.AccessController.doPrivileged(Native Method)
	at jogamp.nativewindow.NWJNILibLoader.loadNativeWindow(NWJNILibLoader.java:41)
	at jogamp.nativewindow.x11.X11Util.initSingleton(X11Util.java:85)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.jogamp.common.util.ReflectionUtil.callMethod(ReflectionUtil.java:309)
	at com.jogamp.common.util.ReflectionUtil.callStaticMethod(ReflectionUtil.java:331)
	at javax.media.nativewindow.NativeWindowFactory.initNativeImpl(NativeWindowFactory.java:147)
	at javax.media.nativewindow.NativeWindowFactory.initSingleton(NativeWindowFactory.java:230)
	at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1164)
	at javax.media.opengl.GLProfile.access$000(GLProfile.java:73)
	at javax.media.opengl.GLProfile$1.run(GLProfile.java:121)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:112)
	at demos.gears.Gears.<clinit>(Gears.java:24)
Info: XInitThreads() called for concurrent Thread support
Gears: Init: AWT-GLCanvas[Realized true,
	jogamp.opengl.x11.glx.X11OnscreenGLXDrawable,
	Realized true,
	Factory   jogamp.opengl.x11.glx.X11GLXDrawableFactory@c68c26c,
	handle    0x4a00012,
	Drawable size 298x273,
	AWT pos 1/21, size 298x273,
	visible true,
	AWTGraphicsConfiguration[AWTGraphicsScreen[AWTGraphicsDevice[type AWT[subType X11], connection :0.0, unitID 0, awtDevice X11GraphicsDevice[screen=0], handle 0x7f3a8c21c100], idx 0],
	chosen    GLCaps[0x29 0x29: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc]],
	requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc]],
	X11GraphicsConfig[dev=X11GraphicsDevice[screen=0],vis=0x29],
	encapsulated X11GLXGraphicsConfiguration[X11GraphicsScreen[X11GraphicsDevice[type X11, connection :0.0, unitID 0, handle 0x7f3a8c21c100], idx 0], visualID 0x29, fbConfigID 0x29,
	requested GLCaps[on-scr, rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc]],
	chosen    GLCaps[0x29 0x29: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc]]]]]
Chosen GLCapabilities: GLCaps[0x29 0x29: on-scr, rgba 0x8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms: 24/0/0, dbl, mono  , hw, GLProfile[GL4bc/GL4bc]]
INIT GL IS: jogamp.opengl.gl4.GL4bcImpl
GL_VENDOR: ATI Technologies Inc.
GL_RENDERER: AMD Radeon HD 6800 Series 
GL_VERSION: 4.1.10665 Compatibility Profile Context
Gears: Reshape: 0/0 298x273
X11Util.Display: Shutdown (close open / pending Displays: false, open (no close attempt): 1/1, pending (not closed, marked uncloseable): 1)
X11Util: Open X11 Display Connections: 1
X11Util: [0]: NamedX11Display[:0.0, 0x7f3a8c21c100, refCount 1, unCloseable true]
X11Util: Pending X11 Display Connections: 1
X11Util: [0]: NamedX11Display[:0.0, 0x40ed12a0, refCount 0, unCloseable true]
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007f3a99d65978, pid=20180, tid=139889691526912
#
# JRE version: 6.0_26-b03
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.1-b02 mixed mode linux-amd64 compressed oops)
# Problematic frame:
# C  [libX11.so.6+0x35978]  XQueryExtension+0x28
#
# An error report file with more information is saved as:
# /home/ragmaanir/hobbys/programming/scala/projects/jogl-demos/jogl-demos-2.0-20110223-linux-amd64/jar/hs_err_pid20180.log
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
./gears.sh: line 1: 20180 Aborted                 java -cp jogl-demos.jar:jogl-demos-data.jar:jogl-demos-util.jar:jogl.all.jar:gluegen.jar:gluegen-rt.jar -Djava.library.path=. demos.gears.Gears