Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8012912

IllegalStateException: zip file closed

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 7u5, 7u7, 7u17, 7u21
    • deploy
    • None

      FULL PRODUCT VERSION :
      java version " 1.7.0_21 "
      Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
      Java HotSpot(TM) Client VM (build 23.21-b01, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [version 6.1.7601]

      A DESCRIPTION OF THE PROBLEM :
      IllegalStateException thrown while exiting a java web start application.
      It works fine until Jre 1.7.0_u5 (included).

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      No exception
      ACTUAL -
      12:11:48,809 WARN DisposableBeanAdapter:193 - Invocation of destroy method failed on bean with name 'FXMLFiles': java.lang.IllegalStateException: zip file closed
      12:11:48,809 WARN DisposableBeanAdapter:193 - Invocation of destroy method failed on bean with name 'FMenuRights': java.lang.IllegalStateException: zip file closed
      Exception in thread " Thread-11 " java.lang.IllegalStateException: zip file closed
      at java.util.zip.ZipFile.ensureOpen(Unknown Source)
      at java.util.zip.ZipFile.getEntry(Unknown Source)
      at java.util.jar.JarFile.getEntry(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
      at java.util.jar.JarFile.getJarEntry(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
      at org.apache.log4j.Category.forcedLog(Category.java:379)
      at org.apache.log4j.Category.log(Category.java:844)
      at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:251)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:490)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431)
      at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048)
      at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1022)
      at org.springframework.context.support.AbstractApplicationContext$3.run(AbstractApplicationContext.java:940)

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      12:11:48,809 WARN DisposableBeanAdapter:193 - Invocation of destroy method failed on bean with name 'FXMLFiles': java.lang.IllegalStateException: zip file closed
      12:11:48,809 WARN DisposableBeanAdapter:193 - Invocation of destroy method failed on bean with name 'FMenuRights': java.lang.IllegalStateException: zip file closed
      Exception in thread " Thread-11 " java.lang.IllegalStateException: zip file closed
      at java.util.zip.ZipFile.ensureOpen(Unknown Source)
      at java.util.zip.ZipFile.getEntry(Unknown Source)
      at java.util.jar.JarFile.getEntry(Unknown Source)
      at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
      at java.util.jar.JarFile.getJarEntry(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
      at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
      at org.apache.log4j.Category.forcedLog(Category.java:379)
      at org.apache.log4j.Category.log(Category.java:844)
      at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:251)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:490)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:463)
      at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:431)
      at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1048)
      at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:1022)
      at org.springframework.context.support.AbstractApplicationContext$3.run(AbstractApplicationContext.java:940)

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      The problem occurs on destroy method call, so no special source code is necessary.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      No work around found

            dcherepanov Dmitry Cherepanov
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: