Our veracode de jira software plugin stopped working on the jira software 10.0. the same plugin is working on the previous versions without any code change. Here are a few more details:
-
It is failing to create the bean with the name “
compatibilityPluginScheduler
“ which is the component key used in our codebase for the class[com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler]
-
This component key is declared in altassian-plugin.xml and it is being used in most of the classes we have for the scheduled import of the jira issues/tickets to the jira project.
-
CompatibilityPluginScheduler is to support old versions of Jira and 7.x.x and up.
-
Please find below error logs for the same.
2024-09-10 17:05:00,266+0530 UpmAsynchronousTaskManager:thread-3 WARN admin [c.a.p.o.hook.dmz.DmzResolverHook] Package org.apache.commons.lang.text is internal and is not available for export to plugin com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer
2024-09-10 17:05:00,267+0530 UpmAsynchronousTaskManager:thread-3 WARN admin [c.a.p.o.hook.dmz.DmzResolverHook] Package org.objectweb.asm is internal and is not available for export to plugin com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer
2024-09-10 17:05:00,271+0530 UpmAsynchronousTaskManager:thread-3 WARN admin [c.a.p.o.hook.dmz.DmzResolverHook] Package com.opensymphony.workflow.spi is deprecated and will be made unavailable for export to plugin com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer in a future release
2024-09-10 17:05:00,271+0530 UpmAsynchronousTaskManager:thread-3 WARN admin [c.a.p.o.hook.dmz.DmzResolverHook] Package com.opensymphony.workflow is deprecated and will be made unavailable for export to plugin com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer in a future release
2024-09-10 17:05:00,336+0530 UpmAsynchronousTaskManager:thread-3 INFO admin [c.a.plugin.util.WaitUntil] Plugins that have yet to be enabled: (1): [com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer], 300 seconds remaining
2024-09-10 17:05:00,394+0530 ThreadPoolAsyncTaskExecutor::Thread 29 ERROR [c.a.p.osgi.factory.OsgiPlugin] Unable to start the plugin container for plugin 'com.veracode.jira.plugin.synchronize.veracode-jira-flaws-synchronizer'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compatibilityPluginScheduler': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
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:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:276)
... 18 more
Caused by: java.lang.NoClassDefFoundError: com/atlassian/util/concurrent/LazyReference
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467)
... 20 more
Caused by: java.lang.ClassNotFoundException: com.atlassian.util.concurrent.LazyReference not found by com.veracode.jira.plugin-server [243]
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:520)
... 24 more
2024-09-10 17:05:00,397+0530 ThreadPoolAsyncTaskExecutor::Thread 29 ERROR [o.e.g.b.e.internal.support.ExtenderConfiguration] Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.veracode.jira.plugin-server, config=osgibundle:/META-INF/spring/*.xml))
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compatibilityPluginScheduler': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
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:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:276)
... 18 more
Caused by: java.lang.NoClassDefFoundError: com/atlassian/util/concurrent/LazyReference
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467)
... 20 more
Caused by: java.lang.ClassNotFoundException: com.atlassian.util.concurrent.LazyReference not found by com.veracode.jira.plugin-server [243]
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:520)
... 24 more
2024-09-10 17:05:00,398+0530 ThreadPoolAsyncTaskExecutor::Thread 29 ERROR [o.e.g.b.e.i.dependencies.startup.DependencyWaiterApplicationContextExecutor] Unable to create application context for [com.veracode.jira.plugin-server], unsatisfied dependencies: none
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'compatibilityPluginScheduler': Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:298)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineConstructorsFromBeanPostProcessors(AbstractAutowireCapableBeanFactory.java:1302)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1219)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:336)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:334)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:209)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
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:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:842)
Caused by: java.lang.IllegalStateException: Failed to introspect Class [com.atlassian.scheduler.compat.AutoDetectingCompatibilityPluginScheduler] from ClassLoader [com.veracode.jira.plugin-server [243]]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485)
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.determineCandidateConstructors(AutowiredAnnotationBeanPostProcessor.java:276)
... 18 more
Caused by: java.lang.NoClassDefFoundError: com/atlassian/util/concurrent/LazyReference
at java.base/java.lang.Class.getDeclaredMethods0(Native Method)
at java.base/java.lang.Class.privateGetDeclaredMethods(Class.java:3402)
at java.base/java.lang.Class.getDeclaredMethods(Class.java:2504)
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467)
... 20 more
Caused by: java.lang.ClassNotFoundException: com.atlassian.util.concurrent.LazyReference not found by com.veracode.jira.plugin-server [243]
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:520)
... 24 more
2024-09-10 17:05:02,346+0530 UpmScheduler:thread-1 WARN admin [c.a.upm.pac.PacClientImpl] The request to check for app updates may take longer than expected because 192 apps are installed that could have updates. This may impact the performance of loading the Manage Apps page.
2024-09-10 17:05:03,385+0530 http-nio-8080-exec-5 url: /rest/plugins/1.0/installed-marketplace; user: admin WARN admin 1025x132x1 1xbmnln 0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [c.a.upm.pac.PacClientImpl] The request to check for app updates may take longer than expected because 192 apps are installed that could have updates. This may impact the performance of loading the Manage Apps page.
2024-09-10 17:05:27,413+0530 Caesium-1-4 INFO ServiceRunner [c.a.j.issue.index.DefaultIndexManager] Start to check for index consistency.
2024-09-10 17:05:27,414+0530 Caesium-1-4 INFO ServiceRunner [c.a.j.issue.index.DefaultIndexManager] Index consistency check finished. indexConsistent: true; timeToCheckIndexConsistency: 1 ms
2024-09-10 17:07:27,413+0530 Caesium-1-2 INFO ServiceRunner [c.a.j.issue.index.DefaultIndexManager] Start to check for index consistency.
2024-09-10 17:07:27,414+0530 Caesium-1-2 INFO ServiceRunner [c.a.j.issue.index.DefaultIndexManager] Index consistency check finished. indexConsistent: true; timeToCheckIndexConsistency: 0 ms
2024-09-10 17:07:59,806+0530 jira-stats-0 INFO [c.a.j.util.stats.JiraStats] [JIRA-STATS] [INDEXING-LIMITS] snapshot stats: duration=PT5M0.012S, statsOverhead=n/a, data={"_statsName":"INDEXING-LIMITS","_statsType":"snapshot","_time":"2024-09-10T11:37:59.781Z","_timestamp":1725968279781,"_duration":"PT5M0.012S","_invocations":3,"_statsOverhead":"n/a","settings":{"maxCommentsIndexed":500,"maxWorklogsIndexed":100,"maxChangeHistoryIndexed":100,"shouldFilterOutUnsupportedFields":true},"indexIssueWithRelated":0,"indexComments":0,"indexWorklogs":0,"indexChangeHistory":0,"indexAll":0,"numberOfTimesCommentsLimited":0,"numberOfTimesWorklogsLimited":0,"numberOfTimesChangeHistoryLimited":0,"numberOfComments":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}},"numberOfWorklogs":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}},"numberOfChangeHistory":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}},"filtering":{"numberOfChangeHistoryBeforeFiltering":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}},"numberOfChangeHistoryItemsBeforeFiltering":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}},"numberOfChangeHistoryItemsAfterFiltering":{"count":0,"min":0,"max":0,"sum":0,"avg":0,"distributionCounter":{"0":0,"1":0,"10":0,"100":0,"500":0,"1000":0,"10000":0,"20000":0,"50000":0}}},"topIssuesWithLimitedComments":{},"topIssuesWithLimitedWorklogs":{},"topIssuesWithLimitedChangeHistory":{}}