'Atlassian Universal Plugin Manager - Plugin License Storage plugin' failed to load.

Anuj November 17, 2015

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?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

5 votes
Answer accepted
Anuj August 12, 2016

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>
Balvant Biradar August 30, 2017

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

1 vote
Akeles
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 29, 2015

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 supported

If 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

Anuj Sapate January 21, 2016

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.

Damian Kaczmarek June 6, 2016

Have you been able to fix it? I'm bumping into the same problem.

Akeles
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2016

Did you remove the components from atlassian-plugin.xml as well after removing the dependency from pom.xml?

Anuj June 16, 2016

@Akeles I've already removed the unwanted dependencies and entries from pom.xml and plugin.xml. still there is no success. sad

@Damian Kaczmarek no luck yet. 

Ahm CHA August 9, 2016

me too, any Suggestions?

 

Anuj August 12, 2016

@Ahm CHA, @Damian Kaczmarek I've provided the solution which works for me. I hope this will work for both of you too. smile

TAGS
AUG Leaders

Atlassian Community Events