Bobswift HTML plugin not enabling due to Cloud Migration Assistant app - java.lang.NoSuchMethodError

XMLWordPrintable

    • 4
    • Severity 3 - Minor
    • 0

      Issue Summary

      On Confluence from 7.13.0, Bobswift HTML 5.8.1 plugin is installed but disabled. When trying to enable it, it throws error "This app failed to enable. Refer to the logs for more information."

      Steps to Reproduce

      1. Spin up a Confluence 7.13.0 instance.
      2. Instal has Bobswift HTML plugin 5.8.1.
      3. Update Confluence Cloud Migration Assistant plugin to version 3.2.5.
      4. Disable Bobswift HTML plugin
      5. Enable Bobswift HTML plugin.

      Expected Results

      • Bobswift HTML plugin will be enabled.

      Actual Results

      • We see the following error on UI: "This app failed to enable. Refer to the logs for more information."

      • The below exception is thrown in the atlassian-confluence.log file:
        2021-09-17 12:04:31,011 ERROR [ThreadPoolAsyncTaskExecutor::Thread 34] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'org.swift.confluence.html'
         -- referer: https://confluence.sbx.era.nih.gov/plugins/servlet/upm | url: /rest/plugins/1.0/org.swift.confluence.html-key | traceId: 5bccb214c911fe84 | userName: kadhanagalh2@nih.gov
        org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appMigrationServiceImpl': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: 'void com.atlassian.migration.app.AppCloudMigrationGateway.registerListener(com.atlassian.migration.app.AppCloudMigrationListener)'
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1769)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:592)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:514)
        	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:321)
        	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
        	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:319)
        	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
        	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:866)
        	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:878)
        	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.access$1600(AbstractDelegatedExecutionApplicationContext.java:57)
        	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext$4.run(AbstractDelegatedExecutionApplicationContext.java:322)
        	at org.eclipse.gemini.blueprint.util.internal.PrivilegedUtils.executeWithCustomTCCL(PrivilegedUtils.java:85)
        	at org.eclipse.gemini.blueprint.context.support.AbstractDelegatedExecutionApplicationContext.completeRefresh(AbstractDelegatedExecutionApplicationContext.java:287)
        	at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$CompleteRefreshTask.run(DependencyWaiterApplicationContextExecutor.java:137)
        	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        	at java.base/java.lang.Thread.run(Thread.java:829)
        Caused by: java.lang.NoSuchMethodError: 'void com.atlassian.migration.app.AppCloudMigrationGateway.registerListener(com.atlassian.migration.app.AppCloudMigrationListener)'
        	at com.atlassian.migration.app.tracker.BoundCloudMigrationGateway.registerListener(BoundCloudMigrationGateway.java:34)
        	at com.atlassian.migration.app.tracker.CloudMigrationAccessor.sendToRegistrar(CloudMigrationAccessor.java:75)
        	at com.atlassian.migration.app.tracker.CloudMigrationAccessor.registerListener(CloudMigrationAccessor.java:35)
        	at org.swift.confluence.html.service.AppMigrationServiceImpl.afterPropertiesSet(AppMigrationServiceImpl.java:119)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1828)
        	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1765)
        	... 16 more
        

      Workaround

      Disable the Cloud Migration Assistant plugin.

      1. Navigate to > Manage apps > User installed.
      2. Locate the Confluence Cloud Migration Assistant and disable it.
      3. Enable the Bobswift plugin.

       

            Assignee:
            Unassigned
            Reporter:
            Gustavo Serrano (Inactive)
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: