Wired tests with an upgrade to java 11

Hi all,

I was trying to upgrade our application to java 11 but I have encountered a problem with the wired test bundle. The problem is that the plugin: atlassian-plugins-osgi-testrunner-bundle, is unable to start.

We are using the latest version of this dependency (2.0.3) and the error is as follows.

 Unable to enable plugin com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle
 com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle
   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:424)
   at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:260)
   at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:120)
   at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:97)
   at com.atlassian.plugin.manager.DefaultPluginManager.lambda$enableDependentPlugins$24(DefaultPluginManager.java:1245)
   at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
   at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1229)
   at com.atlassian.plugin.manager.DefaultPluginManager.lambda$addPlugins$22(DefaultPluginManager.java:1214)
   at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
   at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1114)
   at com.atlassian.plugin.manager.DefaultPluginManager.lambda$lateStartup$6(DefaultPluginManager.java:657)
   at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
   at com.atlassian.plugin.manager.DefaultPluginManager.lateStartup(DefaultPluginManager.java:650)
   at com.atlassian.confluence.plugin.ConfluencePluginManager.lateStartup(ConfluencePluginManager.java:149)
   at com.atlassian.confluence.plugin.PluginFrameworkContextListener.contextInitialized(PluginFrameworkContextListener.java:84)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4766)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5230)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1024)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1911)
   at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
   at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
   at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:825)
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:475)
   at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319)
   at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
   at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
   at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
   at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946)
   at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
   at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
   at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
   at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
   at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
   at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
   at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
 Caused by: org.osgi.framework.BundleException: Activator start error in bundle com.atlassian.plugins.atlassian-plugins-osgi-testrunner-bundle [303].
   at org.apache.felix.framework.Felix.activateBundle(Felix.java:2290)
   at org.apache.felix.framework.Felix.startBundle(Felix.java:2146)
   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:998)
   at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:984)
   at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:405)
   ... 55 more
 Caused by: java.lang.IllegalArgumentException
   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
   at org.objectweb.asm.ClassReader.<init>(Unknown Source)
   at com.atlassian.plugins.osgi.test.asm.BundleTestScanner.processUrl(BundleTestScanner.java:47)
   at com.atlassian.plugins.osgi.test.asm.BundleTestScanner.scan(BundleTestScanner.java:33)
   at com.atlassian.plugins.osgi.test.BundleTestClassesManager.registerBundle(BundleTestClassesManager.java:49)
   at com.atlassian.plugins.osgi.test.BundleTestClassesActivator.addBundle(BundleTestClassesActivator.java:94)
   at com.atlassian.plugins.osgi.test.BundleTestClassesActivator.start(BundleTestClassesActivator.java:68)
   at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
   at org.apache.felix.framework.Felix.activateBundle(Felix.java:2240)
   ... 59 more

I wonder if I’m missing some extra configuration or it’s compatibility with the dependency.
I would appreciate any kind of answer on this issue.

Best regards,

Beatriz.