Updating Adaptavist ScriptRunner for Confluence stops and locks Add-Ons

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.

Problem

When updating Adaptavist ScriptRunner for Confluence the Add-On screen locks up and cannot be accessed.

The following appears in the atlassian-confluence.log

2017-04-17 13:14:17,982 ERROR [ThreadPoolAsyncTaskExecutor::Thread 6] [plugin.osgi.factory.UnrecognizedModuleDescriptorServiceTrackerCustomizer] canFactoryResolveUnrecognizedDescriptor Unable to transform com.adaptavist.confluence.bubbles:pack-license into actual plugin module using factory com.adaptavist.plm.plugin.licensing.plugin.LicensingModuleDescriptorFactory@75b772b5
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.adaptavist.plm.plugin.licensing.modules.LicenseModuleDescriptor': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.adaptavist.plm.plugin.licensing.modules.LicenseModuleDescriptor]: Constructor threw exception; nested exception is java.lang.NoSuchMethodError: com.atlassian.plugin.descriptors.AbstractModuleDescriptor: method <init>()V not found

and

2017-04-19 12:42:00,493 WARN [ThreadPoolAsyncTaskExecutor::Thread 19] [com.onresolve.licensing.AbstractLicenceChecker] isValidLicense No license available for plugin 'com.onresolve.confluence.groovy.groovyrunner'
 -- url: /rest/plugins/1.0/ | referer: https://confluence.mycompany.com/plugins/servlet/upm/marketplace/search?q=ScriptRunner%20for%20Confluence | traceId: ebfeb812166692a4 | userName: admin

Diagnosis

Environment

  • Upgrading Adaptavist ScriptRunner for Confluence from version 4.x to 5.x.
  • Page Info for ScriptRunner Confluence is also installed

Cause

There is a library mis-match between the old and new versions of the library Adaptavist ScriptRunner for Confluence.

Resolution

Please backup your database and home directory before making these changes.

These changes will not delete the data with the Add-ons.

  1. Shutdown Confluence
  2. Run this SQL to delete the Add-Ons directly from the database. If you don't have Page Info for ScriptRunner Confluence then the second line isn't required.

    delete from plugindata where pluginkey = 'com.onresolve.confluence.groovy.groovyrunner';
    delete from plugindata where pluginkey = 'com.adaptavist.confluence.pageinfo';
  3. Clear the plugin cache, see
  4. Restart Confluence

 

 

Last modified on May 17, 2017

Was this helpful?

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