Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error: java.lang.IllegalStateException: zip file closed

HP July 3, 2013

Hey there,

My confluence throw the error:

2013-07-04 00:53:37,446 ERROR [Finalizer] [osgi.container.felix.FelixOsgiContainerManager] doLog JarContent: Unable to read bytes.
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)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.apache.http.impl.conn.PoolingClientConnectionManager.shutdown(PoolingClientConnectionManager.java:284)
at org.apache.http.impl.conn.PoolingClientConnectionManager.finalize(PoolingClientConnectionManager.java:121)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:178)

Anyone has the same error?

I read this, https://jira.atlassian.com/browse/CONF-7725 , the fix was on version 2. My version is 5.1.2.

Thanks.

4 answers

3 votes
JohnA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 3, 2013

Hi there,

From the look of it you have some corruption in your plugin caches, so to resolve this issue please perform the steps outlined below:

1. Shutdown Confluence
2. Delete the following directories
<confluence-home>/bundled-plugins folder
<confluence-home>/plugin-cache folder
<confluence-home>/plugins-osgi-cache folder
<confluence-home>/plugins-temp folder
3. Restart Confluence

The plugin caches will be refreshed during the startup so this is a safe procedure to perform, and it will more than likely resolve the issue that you are seeing here.

All the best,
John

HP July 4, 2013

Sorry , suppose to give comment,

HI John,

We have tested the solution giving but no luck, we still see the error.

2013-07-04 07:59:50,381 ERROR [Finalizer] [osgi.container.felix.FelixOsgiContainerManager] doLog JarContent: Unable to read bytes.
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)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.apache.http.impl.conn.PoolingClientConnectionManager.shutdown(PoolingClientConnectionManager.java:284)
at org.apache.http.impl.conn.PoolingClientConnectionManager.finalize(PoolingClientConnectionManager.java:121)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:178)

Any idea?

1 vote
Michael S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 1, 2013

The error is usually thrown when a bundled plugin is being overriden by a later version. It shouldn't cause any problems and can safely be ignored.

If you're actually seeing any drop in functionality please create a support request at support.atlassian.com.

0 votes
vijaya reddy September 26, 2013

We also facing this problem after upgrading to 5.1.3. How do i know, which plugin will effect with this error?

We tried the above solution already.

and how do we fix it?

0 votes
HP July 4, 2013

HI John,

We have tested the solution giving but no luck, we still see the error.

2013-07-04 07:59:50,381 ERROR [Finalizer] [osgi.container.felix.FelixOsgiContainerManager] doLog JarContent: Unable to read bytes.
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)
at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
at org.apache.felix.framework.cache.JarContent.getEntryAsBytes(JarContent.java:120)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1738)
at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.apache.http.impl.conn.PoolingClientConnectionManager.shutdown(PoolingClientConnectionManager.java:284)
at org.apache.http.impl.conn.PoolingClientConnectionManager.finalize(PoolingClientConnectionManager.java:121)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:101)
at java.lang.ref.Finalizer.access$100(Finalizer.java:32)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:178)

Any idea?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events