JIRA application startup or shutdown displays llegalStateException zip file closed error

症状

The following appears in the atlassian-jira.log during startup or shutdown:

2012-05-04 13:33:46,966 main ERROR      [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes.
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 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(Unknown Source)

原因

These log messages indicate a plugin has failed to unregister itself, either on startup or shutdown. There are several bugs that contribute to this behaviour, specifically:

ソリューション

If the workarounds in the provided bugs above do not resolve the issue, then we must identify the problematic plugin:

  1. If the JIRA application is starting:
    1. Disable all user plugins by enabling Safe Mode ('Administration' -> 'Manage Add-ons' (or 'Find New Add-ons') -> 'Enable Safe Mode');
    2. Start enabling plugins one by one until the error message returns;
      (info) Try to enable the plugin which was having problem first.
  2. If the JIRA application is not starting:
    1. Backup and move all plugins out of the $JIRA_HOME/plugins/installed-plugins folder so that it is empty
    2. Jira を起動します。
    3. One by one, move each plugin back into the installed-plugins folder followed by a JIRA restart to confirm which plugin is causing the error



最終更新日: 2025 年 1 月 23 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.