Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-24453

Unable to read bytes error on JIRA startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Answered
    • Low
    • None
    • 4.3, 4.3.1, 4.3.2
    • None
    • Windows 7

    Description

      Here are the following steps on how to reproduce this bug:

      1. Start up a clean JIRA 4.3.x instance
      2. Go to Administration -> System -> Plugins page
      3. Click on Upgrade tab and you will be able to see JIRA FishEye Plugin in there
      4. Click on Download button and we will see something like "JIRA FishEye Plugin" cannot be installed by the UPM. Visit the plugin homepage to read the installation instructions:
      5. After downloading the latest plugin version 3.1.5, shut down JIRA 4.3.x instance
      6. Place the plugin inside <JIRA_43x_Home>/plugins/installed-plugins/ directory
      7. Start up JIRA
      8. After the JIRA server startup, these error messages will be shown:
        ...
        2011-04-11 13:09:12,159 main ERROR      [osgi.container.felix.FelixOsgiContainerManager] JarContent: Unable to read bytes.
        java.lang.IllegalStateException: zip file closed
        	at java.util.zip.ZipFile.ensureOpen(ZipFile.java:416)
        	at java.util.zip.ZipFile.getEntry(ZipFile.java:161)
        	at java.util.jar.JarFile.getEntry(JarFile.java:208)
        	at org.apache.felix.framework.util.JarFileX.getEntry(JarFileX.java:61)
        ...
        2011-04-11 13:09:12,161 main ERROR      [atlassian.event.internal.EventPublisherImpl] There was an exception thrown trying to dispatch event 'com.atlassian.jira.extension.JiraStartedEvent@27f6f3d1' from the invoker 'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@172a45c9'.
        java.lang.RuntimeException: com/opensymphony/module/propertyset/PropertySet
        	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)
        	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$2.run(AsynchronousAbleEventDispatcher.java:60)
        	at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1.execute(AsynchronousAbleEventDispatcher.java:28)
        ...
        Caused by: java.lang.NoClassDefFoundError: com/opensymphony/module/propertyset/PropertySet
        	at com.atlassian.jirafisheyeplugin.FishEyePropertiesImpl.getText(FishEyePropertiesImpl.java:67)
        	at com.atlassian.jirafisheyeplugin.FishEyePropertiesImpl.getText(FishEyePropertiesImpl.java:35)
        	at com.atlassian.jirafisheyeplugin.config.FishEyeConfigImpl.validateConfiguration(FishEyeConfigImpl.java:135)
        ...
        Caused by: java.lang.ClassNotFoundException: com.opensymphony.module.propertyset.PropertySet
        	at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
        	at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
        ...
        
      9. Going over to Administration -> System -> Plugins, JIRA Fisheye Plugin has been successfully upgraded to 3.1.5. To counter-check, clicking at the Upgrade tab does not show JIRA FishEye Plugin anymore. This shows that the FishEye plugin got upgraded successfully but still throwing some errors in the startup logs.

      JIRA FishEye plugin (3.1.2) is already bundled together in JIRA 4.3.x.

      It looks like the newest version of the FishEye plugin is relying on some classes that are not what they used to be in. It should not be a problem after replacing a bundled plugin with a more recent version.

      Workaround

      Please refer to this comment below.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jcooi JoachimA
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: