I've updaded my pom.xml to support JIRA 7.0.0. But after upgrading, it fails to load the UPM - License Storage plugin.
Error log
******************************************************************************************************************************************************************************************************** [talledLocalContainer] ___ FAILED PLUGIN REPORT _____________________ [talledLocalContainer] [talledLocalContainer] 1 plugin failed to load during JIRA startup. [talledLocalContainer] [talledLocalContainer] 'com.atlassian.upm.plugin-license-storage-plugin' - 'Atlassian Universal Plugin Manager - Plugin License Storage plugin' failed to load. [talledLocalContainer] Error creating bean with name 'licenseReceiptValidator' defined in URL [bundle://168.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 0 of type [com.atlassian.upm.license.internal.PluginLicenseRepository]: : Error creating bean with name 'pluginLicenseRepository' defined in URL [bundle://168.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 4 of type [com.atlassian.upm.license.internal.PluginLicenseCache]: : Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker;; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'pluginLicenseRepository' defined in URL [bundle://168.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 4 of type [com.atlassian.upm.license.internal.PluginLicenseCache]: : Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker; [talledLocalContainer] Error creating bean with name 'pluginLicenseRepository' defined in URL [bundle://168.0:0/META-INF/spring/atlassian-plugins-components.xml]: Unsatisfied dependency expressed through constructor argument with index 4 of type [com.atlassian.upm.license.internal.PluginLicenseCache]: : Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker;; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker; [talledLocalContainer] Error creating bean with name 'pluginLicenseCache' defined in URL [bundle://168.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.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker; [talledLocalContainer] Failed to instantiate [com.atlassian.upm.license.internal.impl.PluginLicenseCacheImpl]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker; [talledLocalContainer] com.google.common.collect.MapMaker.expiration(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/collect/MapMaker; [talledLocalContainer] [talledLocalContainer] It was loaded from /home/anuj/../target/container/tomcat8x/cargo-jira-home/webapps/jira/WEB-INF/atlassian-bundled-plugins/plugin-license-storage-plugin-2.15.3.jar [talledLocalContainer] [talledLocalContainer] ********************************************************************************************************************************************************************************************************
pom.xml
<dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-lib</artifactId> <version>2.20.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>2.15.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>licensing-api</artifactId> <version>2.20.4</version> <scope>provided</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>upm-api</artifactId> <version>2.20.4</version> <scope>provided</scope> </dependency>
Is there any other dependencies related to "com.google.guava" needed to add or exclude?
Community moderators have prevented the ability to post new answers.
Finally, I've fixed this issue by removing following entry from pom.xml
<bundledArtifact> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>${upm.license.storage.compatibility.version}</version> </bundledArtifact>
Hi Anuj,
I am also getting same error on test jira, but please confirm exact path of pom file because I am getting 3 pom files. I am using 7.3.8 jira version
$ find -iname pom.xml
./atlassian-jira/WEB-INF/classes/META-INF/maven/com.atlassian.jira/jira-core/pom.xml
./atlassian-jira/META-INF/maven/com.atlassian.jira/jira-webapp-dist/pom.xml
./atlassian-jira/META-INF/maven/com.atlassian.jira/atlassian-jira-webapp/pom.xml
Please confirm is backward comability possible in jira
7.3.8 database backup on 7.0.11 backup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to remove the
<dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-lib</artifactId> <version>2.20.4</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.atlassian.upm</groupId> <artifactId>plugin-license-storage-plugin</artifactId> <version>2.15.3</version> <scope>provided</scope> </dependency>
The reason is because
plugin-license-storage-lib
library no longer supportedIf your add-on bundles the
plugin-license-storage-lib
library from the Universal Plugin Manager (UPM), your add-on will not work with JIRA 7.0. This library has been deprecated for a while, and won't work with JIRA 7.0.To fix this, you will need to use UPM's
licensing-api
module instead. Follow the instructions in this tutorial: Tutorial: Adding licensing support to your add-on to do this. Note, use the versions provided by the application for the import packages; don't specify a version range for the import packages.You will also need to remove references to the old
plugin-license-storage-lib
library.
For details, check out https://developer.atlassian.com/jiradev/latest-updates/preparing-for-jira-7-0/jira-7-0-platform-changes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Akeles for the reply. But the error shows plugin-license-storage-plugin failed to load and that was not related to plugin-license-storage-lib. Anyway I've removed lib dependency but that didn't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Have you been able to fix it? I'm bumping into the same problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Did you remove the components from atlassian-plugin.xml as well after removing the dependency from pom.xml?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Akeles I've already removed the unwanted dependencies and entries from pom.xml and plugin.xml. still there is no success.
@Damian Kaczmarek no luck yet.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.