JCMA 1.12.52-jira-11 does not Enable in Jira unless JSW is Installed

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Issue Summary

      On 25-February, Atlassian released a new version of the Jira Cloud Migration Plugin for Jira 11.x. 

      When trying to enable JCMA 1.12.52-jira-11 on a site that only has Jira Service Management installed, it fails to enable because of a missing dependency on a Agile component not found in any JSM deployment

      Steps to Reproduce

      1. Deploy Jira Service Management 11.3.3
      2. Update the JCMA app from version 0.99 to 1.12.52-jira-11

       

      Expected Results

      The plugin enables and I can start my cloud migration

      Actual Results

      The below exception is thrown in the atlassian-jira.log file:

      'com.atlassian.jira.migration.jira-migration-plugin' - 'Jira Cloud Migration Assistant'  failed to load.    		Error creating bean with name 'osgiRapidViewServiceProvider': Lookup method resolution failed    			Failed to introspect Class [com.atlassian.jira.migration.export.software.board.retrieve.OsgiRapidViewServiceProvider] from ClassLoader [com.atlassian.jira.migration.jira-migration-plugin [85]]    				com/atlassian/greenhopper/service/rapid/view/RapidViewService    					com.atlassian.greenhopper.service.rapid.view.RapidViewService not found by com.atlassian.jira.migration.jira-migration-plugin [85]    		It was loaded from /var/atlassian/application-data/shared-home/plugins/installed-plugins/jira-migration-plugin-1.12.52-jira-11.jar 

      If you restart JSM or Try to enable the plugin from the Manage Apps Page, then the error looks like this:

      ThreadPoolAsyncTaskExecutor::Thread 67 ERROR      [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.atlassian.jira.
      migration.jira-migration-plugin], unsatisfied dependencies: none
      org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appConsentService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/con
      sent/AppConsentService.class]: Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'migrationSettingService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233
      .0:1/com/atlassian/jira/migration/setup/migrationsettings/MigrationSettingService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'cloudTypeSettingUpdateService' 
      defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/setup/migrationsettings/CloudTypeSettingUpdateService.class]: Unsatisfied dependency expressed through constructor para
      meter 3: Error creating bean with name 'planExecutionService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/execution/PlanExecutionService.class]: Unsatisfied depend
      ency expressed through constructor parameter 5: Error creating bean with name 'preflightService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/PreflightSer
      vice.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'asyncCheckExecutor' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira
      /migration/preflight/AsyncCheckExecutor.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'preflightCheckLookup' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec
      75afd06583_233.0:1/com/atlassian/jira/migration/preflight/PreflightCheckLookup.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'projectReportErrorCheck' defined i
      n URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/dryrun/ProjectReportErrorCheck.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creatin
      g bean with name 'dryRunPreflightService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/dryrun/DryRunPreflightService.class]: Unsatisfied dependency expres
      sed through constructor parameter 0: Error creating bean with name 'projectReportErrorService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/dryrun/Project
      ReportErrorService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'preMigrationReportsService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.
      0:1/com/atlassian/jira/migration/preflight/reports/PreMigrationReportsService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'preMigrationServicesProvider' defin
      ed in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/reports/PreMigrationServicesProvider.class]: Unsatisfied dependency expressed through constructor parameter 4: Err
      or creating bean with name 'duplicateEntitiesReportService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/preflight/reports/DuplicateEntitiesReportService.class]: Un
      satisfied dependency expressed through constructor parameter 3: Error creating bean with name 'serverCloudDataProvider' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration
      /duplicates/configOnly/ServerCloudDataProvider.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'allConfigExporterService' defined in URL [bundle://8efbeb6c-6934-4
      7b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/export/AllConfigExporterService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'allConfigExporterHelpe
      r' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/export/AllConfigExporterHelper.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creat
      ing bean with name 'exportService' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/export/service/ExportService.class]: Unsatisfied dependency expressed through constr
      uctor parameter 3: Error creating bean with name 'entityIdentifierGenerator' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/log/EntityIdentifierGenerator.class]: Unsa
      tisfied dependency expressed through constructor parameter 0: Error creating bean with name 'defaultEntityResolver' defined in URL [bundle://8efbeb6c-6934-47b3-b565-ec75afd06583_233.0:1/com/atlassian/jira/migration/log
      /DefaultEntityResolver.class]: Unsatisfied dependency expressed through constructor parameter 32: Error creating bean with name 'jswEntityResolver' defined in OSGi resource[classpath:com/atlassian/jira/migration/config
      /MainSpringConfiguration.class|bnd.id=233|bnd.sym=com.atlassian.jira.migration.jira-migration-plugin]: Failed to instantiate [com.atlassian.jira.migration.log.JSWEntityResolver]: Factory method 'jswEntityResolver' thre
      w exception with message: com/atlassian/greenhopper/service/rapid/view/RapidViewService
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:804)
              at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:240)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1395)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1232)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)
      ...
      ...
      ...
      Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jswEntityResolver' defined in OSGi resource[classpath:com/atlassian/jira/migration/config/MainSpringConfiguration.class
      |bnd.id=233|bnd.sym=com.atlassian.jira.migration.jira-migration-plugin]: Failed to instantiate [com.atlassian.jira.migration.log.JSWEntityResolver]: Factory method 'jswEntityResolver' threw exception with message: com/
      atlassian/greenhopper/service/rapid/view/RapidViewService
              at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:657)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:645)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1375)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1205)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:569)
              at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:529)
              at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:339)
              at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:373)
              at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:337)
              at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
              at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1770)
              at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1653)
              at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:913)
              at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:791)
              ... 277 more
      Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.jira.migration.log.JSWEntityResolver]: Factory method 'jswEntityResolver' threw exception with message: com/atlassia
      n/greenhopper/service/rapid/view/RapidViewService
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:200)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiateWithFactoryMethod(SimpleInstantiationStrategy.java:89)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:169)
              at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653)
              ... 291 more
      Caused by: java.lang.NoClassDefFoundError: com/atlassian/greenhopper/service/rapid/view/RapidViewService
              at com.atlassian.jira.migration.log.JSWEntityResolverImpl.<init>(JSWEntityResolverImpl.kt:18)
              at com.atlassian.jira.migration.config.MainSpringConfiguration.jswEntityResolver(MainSpringConfiguration.kt:624)
              at com.atlassian.jira.migration.config.MainSpringConfiguration$$SpringCGLIB$$0.CGLIB$jswEntityResolver$53(<generated>)
              at com.atlassian.jira.migration.config.MainSpringConfiguration$$SpringCGLIB$$FastClass$$1.invoke(<generated>)
              at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:258)
              at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:400)
              at com.atlassian.jira.migration.config.MainSpringConfiguration$$SpringCGLIB$$0.jswEntityResolver(<generated>)
              at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
              at java.base/java.lang.reflect.Method.invoke(Method.java:580)
              at org.springframework.beans.factory.support.SimpleInstantiationStrategy.lambda$instantiate$0(SimpleInstantiationStrategy.java:172)
              ... 294 more
      Caused by: java.lang.ClassNotFoundException: com.atlassian.greenhopper.service.rapid.view.RapidViewService not found by com.atlassian.jira.migration.jira-migration-plugin [233]
              at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1591)
              at org.apache.felix.framework.BundleWiringImpl.access$300(BundleWiringImpl.java:79)
              at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1976)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:526)
              ... 304 more

      Workaround

      As a work around, install Jira Software on the same deployment from Settings > Application > Version & Licensing. 

      • No Trial license is required
      • Jira will need to be restarted after installing Jira Software 

              Assignee:
              Robert Lim
              Reporter:
              Patrick Turbett
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: