Post Confluence 6.x Upgrade : Confluence throw error creating bean with name: licenseReceiptValidator

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

問題

After upgrading Confluence to version 6 and above, the following appears in the atlassian-confluence.log :

ERROR [ThreadPoolAsyncTaskExecutor::Thread 7] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.upm.plugin-license-storage-plugin'
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'licenseReceiptValidator' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument wit
h index 0 of type [com.atlassian.upm.license.internal.PluginLicenseRepository]: Error creating bean with name 'pluginLicenseRepository' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]:
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pluginLicenseRepository' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor a
rgument with index 0 of type [com.atlassian.upm.license.internal.HostLicenseProvider]: Error creating bean with name 'confluenceHostLicenseProvider' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]: 
...
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'confluenceHostLicenseProvider' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constru
ctor argument with index 1 of type [com.atlassian.upm.license.internal.LicenseManagerProvider]: Error creating bean with name 'licenseManagerProvider' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]:
...
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'licenseManagerProvider' defined in URL [bundle://204.0:0/META-INF/spring/atlassian-plugins-components.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.upm.license.internal.impl.LicenseManagerProviderImpl]: 
...
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.upm.license.internal.impl.LicenseManagerProviderImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
...
Caused by: java.lang.NoSuchMethodError: com.google.common.collect.ImmutableSet.of([Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;

原因

The java.lang.NoSuchMethodError error was originated from Confluence's Universal Plugin Manager - Plugin License Storage Plugin which have been deprecated in Confluence version 6.x.

ソリューション

  1. Confluence をシャットダウンします。

  2. Confluence を再起動します。

(info) If you're not able to remove the plugin from UI, please remove the plugin from the database :
  1. Confluence をシャットダウンします。

  2. Run the following queries in the database :

    select PLUGINDATAID, PLUGINKEY, FILENAME, LASTMODDATE from PLUGINDATA WHERE PLUGINKEY = 'com.atlassian.upm.plugin-license-storage-plugin';
    delete from PLUGINDATA where PLUGINDATAID='<INSERT-ID-HERE>';

    データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。

  3. Clear Confluence plugins cache

  4. Confluence を再起動します。

 

最終更新日 2018 年 11 月 15 日

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

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