JIRA error BundlesVersionDiscovery - Can't read manifest of file

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

JIRA 7 can log following messages in log after upgrade from JIRA 6.x:

2016-03-13 15:08:48,442 JIRA-Bootstrap WARN      [c.a.j.application.install.BundlesVersionDiscovery] Can't read manifest of file: /jira/application-data/jira_7.1/plugins/installed-plugins/plugin.1597635671198788949.jira-calendar-plugin-2.1.11.jar
java.lang.NullPointerException
        at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.getValidatedAttribute(OsgiHeaderUtil.java:433)
        at com.atlassian.plugin.osgi.util.OsgiHeaderUtil.extractOsgiPluginInformation(OsgiHeaderUtil.java:472)
        at com.atlassian.jira.application.install.BundlesVersionDiscovery.getBundleNameAndVersion(BundlesVersionDiscovery.java:76)
        at com.atlassian.jira.application.install.BundlesVersionDiscovery.getBundleNameAndVersion(BundlesVersionDiscovery.java:68)
        at com.atlassian.jira.application.install.PluginBundleInstaller.lambda$getInstalledPluginVersions$3(ApplicationInstaller.java:160)
        at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
        at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
        at com.atlassian.jira.application.install.PluginBundleInstaller.getInstalledPluginVersions(ApplicationInstaller.java:163)
...

Cause

Plugin doesn't have valid META-INF/MANIFEST.MF file, it doesn't have following section in it:

Bundle-Version: X.Y

JIRA7 is more strict about file structure and cheks it. 

Resolution

Most likely the plugin is not JIRA7 compatible, please remove the plugin and use updated version if possible. 

  1. Stop JIRA.
  2. Remove jar file from <JIRA_HOME>/plugins/installed-plugins
  3. Start JIRA.

 

Last modified on Mar 31, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.