<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://jogamp.org/bugzilla/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.2"
          urlbase="https://jogamp.org/bugzilla/"
          
          maintainer="sgothel@jausoft.com"
>

    <bug>
          <bug_id>728</bug_id>
          
          <creation_ts>2013-05-06 17:58:56 +0200</creation_ts>
          <short_desc>Java Web Start: Exception &quot;java.lang.IllegalStateException: zip file closed&quot;</short_desc>
          <delta_ts>2013-06-13 21:27:58 +0200</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>3</classification_id>
          <classification>JogAmp</classification>
          <product>Jogl</product>
          <component>macosx</component>
          <version>2</version>
          <rep_platform>All</rep_platform>
          <op_sys>all</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>---</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Derek Wright">derek.wright</reporter>
          <assigned_to name="Sven Gothel">sgothel</assigned_to>
          <cc>gouessej</cc>
          
          <cf_type>---</cf_type>
          <cf_scm_refs>jogl 33b4f95581938ebbb5af4c37a1c5c2b5ee968f76</cf_scm_refs>
          <cf_workaround>TRUE</cf_workaround>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2567</commentid>
    <comment_count>0</comment_count>
    <who name="Derek Wright">derek.wright</who>
    <bug_when>2013-05-06 17:58:56 +0200</bug_when>
    <thetext>When attempting to exit our application, on Mac OS X 10.8, running from a JNLP file, the error listed below is produced. The application then hangs and has to be  closed with Force Quit. This is only a problem when the application is run with Java Web Start; when the jar file is run from the command line, the application closes normally. The error is specific to Mac and is not produced on Windows or Linux.

Apologies in advance in case turns out to be a JDK bug and not to do with JogAmp.

JogAmp version: 2.0.2-rc-20130425 from the JogAmp Maven repository
OS version: Mac OS X 10.8.3
Java version: 1.7.0_17

20130506_162817: Exception &quot;java.lang.IllegalStateException: zip file closed&quot; occurred in thread ID 65(Thread-25)
java.util.zip.ZipFile.ensureOpen(ZipFile.java:632)
java.util.zip.ZipFile.getEntry(ZipFile.java:303)
java.util.jar.JarFile.getEntry(JarFile.java:226)
com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
java.util.jar.JarFile.getJarEntry(JarFile.java:209)
com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
java.net.URLClassLoader$1.run(URLClassLoader.java:358)
java.net.URLClassLoader$1.run(URLClassLoader.java:355)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(URLClassLoader.java:354)
com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(ClassLoader.java:423)
java.lang.ClassLoader.loadClass(ClassLoader.java:410)
java.lang.ClassLoader.loadClass(ClassLoader.java:356)
jogamp.opengl.egl.EGLDrawableFactory.destroy(EGLDrawableFactory.java:242)
javax.media.opengl.GLDrawableFactory.shutdownImpl(GLDrawableFactory.java:214)
javax.media.opengl.GLDrawableFactory.access$100(GLDrawableFactory.java:96)
javax.media.opengl.GLDrawableFactory$1.run(GLDrawableFactory.java:233)
java.lang.Thread.run(Thread.java:722)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2581</commentid>
    <comment_count>1</comment_count>
    <who name="Derek Wright">derek.wright</who>
    <bug_when>2013-05-09 18:19:34 +0200</bug_when>
    <thetext>Worked around the IllegalStateException by calling Thread.setDefaultUncaughtExceptionHandler(null); which stops the program hanging, although the IllegalStateException is still generated.

Exception in thread &quot;Thread-13&quot; java.lang.IllegalStateException: zip file closed

Also noted that IllegalStateException is generated on quitting the JOGL Gears Demo, run from Web Start. The following is generated in the trace file:

Exception in thread &quot;Thread-10&quot; java.lang.IllegalStateException: zip file closed
	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:632)
	at java.util.zip.ZipFile.getEntry(ZipFile.java:303)
	at java.util.jar.JarFile.getEntry(JarFile.java:226)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2584</commentid>
    <comment_count>2</comment_count>
    <who name="Julien Gouesse">gouessej</who>
    <bug_when>2013-05-11 18:31:34 +0200</bug_when>
    <thetext>I suspect a bug in Oracle JDK under Mac too but please enable all logs. It would be fine to know which JAR fails to be opened.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2662</commentid>
    <comment_count>3</comment_count>
    <who name="Sven Gothel">sgothel</who>
    <bug_when>2013-06-13 21:27:58 +0200</bug_when>
    <thetext>Catch any occurring exception at GLDrawable shutdown, report them briefly and verbose w/ DEBUG enabled.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>