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

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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 :

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

  1. Shut Down Confluence

  2. Restart Confluence

(info) If you're not able to remove the plugin from UI, please remove the plugin from the database :
  1. Shut Down 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>';

    Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

  3. Clear Confluence plugins cache

  4. Restart Confluence

 

Last modified on Nov 15, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.