Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Stash plugin with License API: Failed to parse AuditLogEntry

will October 25, 2012

I've created a new plugin with atlas-create-stash-plugin, and a license servlet with atlas-create-stash-plugin-module.

Without modifying any code, starting Stash results in exceptions in the log and a webpage with the error

"Required plugin com.atlassian.upm.atlassian-universal-plugin-manager-plugin has failed to start"

The errors in the logs boil down to:

Failed to parse AuditLogEntry from JSON string: {"username":"Stash","date":1351165259890,"i18nKey":"upm.auditLog.upm.startup","entryType":"UPM_STARTUP","params":[]}

This is with SDK v4.0. UPM in Stash is v2.4.1, and the UPM version in the pom is 2.3 (but updating to 2.7.6 has the same outcome).

3 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

3 votes
Answer accepted
will October 27, 2012

The problem is a version mismatch between the project pom and the UPM version in Stash.

The solution to this problem is to update the UPM version in pom properties (to match the Stash UPM version):

<upm.license.compatibility.version>2.4.1</upm.license.compatibility.version>

And use the property in the bundled artifact (where it was previously 1.6.3).

<bundledArtifact>
    <groupId>com.atlassian.upm</groupId>
    <artifactId>atlassian-universal-plugin-manager-plugin</artifactId>
    <version>${upm.license.compatibility.version}</version>
</bundledArtifact>

Source: https://jira.atlassian.com/browse/STASH-2735

Laura Kolker
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.
December 11, 2012

This was helpful, although with latest SDK, I had to update the UPM to the latest (2.7.0, right now) because there was no mismatch between the pom and the default Stash UPM version (2.4.1), but Stash wouldn't launch. After updating to 2.7.0 Stash will launch, the licensing works, etc., but I'm still seeing the error message in the logs. :/

1 vote
Ulrich Kuhnhardt
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.
January 12, 2013

This problem can also be encountered after adding the licensing module with atlas-create-stash-plugin-module to a stash add-on. An ancient version of the UPM is bundled then. The UPM related bundle instructions need to be removed from the pom.

<!--
<bundledArtifact>
    <groupId>com.atlassian.upm</groupId>
    <artifactId>atlassian-universal-plugin-manager-plugin</artifactId>
    <version>1.6.3</version>
</bundledArtifact>
-->

0 votes
Stefan Saasen
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 17, 2013

Thanks Ulrich,

The issue is tracked here: https://jira.atlassian.com/browse/STASH-2969 and we are going to update AMPS so that the atlas-create-stash-plugin-module goal behaves: https://ecosystem.atlassian.net/browse/AMPS-917

Cheers,

Stefan

TAGS
AUG Leaders

Atlassian Community Events