JIRA error BundlesVersionDiscovery - Can't read manifest of file

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

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.

*Fisheye および Crucible は除く

問題

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)
...

原因

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. 

ソリューション

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

  1. Jira を停止します。
  2. Remove jar file from <JIRA_HOME>/plugins/installed-plugins
  3. Jira を起動します。

 

Last modified on Mar 31, 2017

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

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