JIRA error BundlesVersionDiscovery - Can't read manifest of file
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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:
1
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.
Stop JIRA.
Removejar file from <JIRA_HOME>/plugins/installed-plugins
Start JIRA.
Was this helpful?