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.
ソリューション
Confluence をシャットダウンします。
- Confluence を再起動します。
Confluence をシャットダウンします。
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 コマンドの変更、挿入、更新、または削除を行うようにします。
Confluence を再起動します。