Post Confluence 6.x Upgrade : Confluence throw error creating bean with name: licenseReceiptValidator
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
After upgrading Confluence to version 6 and above, the following appears in the atlassian-confluence.log :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
Cause
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.
Resolution
Shut Down Confluence
Restart Confluence
ℹ️
If you're not able to remove the plugin from UI, please remove the plugin from the database :
Shut Down Confluence
Run the following queries in the database :
1 2
select PLUGINDATAID, PLUGINKEY, FILENAME, LASTMODDATE from PLUGINDATA WHERE PLUGINKEY = 'com.atlassian.upm.plugin-license-storage-plugin'; delete from PLUGINDATA where PLUGINDATAID='<INSERT-ID-HERE>';
Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Restart Confluence
Was this helpful?