SIL error with admReindex()

I am getting an error with a nightly service that uses SIL to trigger a reindex in JIRA. am only calling the admReindex function in my code, nothing else. It was working in JIRA 5 and SIL version 2.5.13 but now we are on JIRA 6.1 and SIL 2.6.8 and I am getting an error:

2014-04-17 03:58:24,842 QuartzScheduler_Worker-1 ERROR serviceuser    reIndex [plugins.jjupin.services.SILService] Problem executing SIL program: E:\Atlassian\Application Data\JIRA\silprograms\Services\reIndex.sil
com.keplerrominfo.jira.commons.sil.SILException: Exception while executing SIL program >>Srv:E:\Atlassian\Application Data\JIRA\silprograms\Services\reIndex.sil<<
	at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.throwAway(UnifiedSilRunner.java:244)
	at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:139)
	at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:90)
	at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:64)
	at com.keplerrominfo.jira.plugins.jjupin.services.SILService.run(SILService.java:127)
	at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61)
	at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:48)
	at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: com.keplerrominfo.jira.commons.sil.SILInfoException: [SIL Error on line: 7, column: 20] com/atlassian/jira/task/context/Contexts
	at com.keplerrominfo.jira.commons.sil.SILUtils.throwAway(SILUtils.java:137)
	at com.keplerrominfo.jira.commons.sil.SILUtils.throwAway(SILUtils.java:127)
	at com.keplerrominfo.jira.commons.sil.ASTCallNode.interpret(ASTCallNode.java:70)
	at com.keplerrominfo.jira.commons.sil.SILNode.interpret(SILNode.java:133)
	at com.keplerrominfo.jira.commons.sil.ASTDeclWithInitNode.interpret(ASTDeclWithInitNode.java:35)
	at com.keplerrominfo.jira.commons.sil.ASTBlock.interpret(ASTBlock.java:27)
	at com.keplerrominfo.jira.commons.sil.SILNode.interpret(SILNode.java:133)
	at com.keplerrominfo.jira.commons.sil.ASTIfNode.interpret(ASTIfNode.java:70)
	at com.keplerrominfo.jira.commons.sil.SILNode.interpret(SILNode.java:133)
	at com.keplerrominfo.jira.commons.sil.ASTParseNode.interpret(ASTParseNode.java:37)
	at com.keplerrominfo.jira.commons.sil.executors.DirectInterpreterExecutor.interpret(DirectInterpreterExecutor.java:50)
	at com.keplerrominfo.jira.commons.sil.SILInterpreter.interpret(SILInterpreter.java:104)
	at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(IssueSILInterpreter.java:166)
	at com.keplerrominfo.jira.commons.silrunner.UnifiedSilRunner.interpret(UnifiedSilRunner.java:130)
	... 7 more
Caused by: java.lang.NoClassDefFoundError: com/atlassian/jira/task/context/Contexts
	at com.keplerrominfo.jira.commons.ivm.routines.admin.ReindexRoutine.executeRoutine(ReindexRoutine.java:39)
	at com.keplerrominfo.jira.commons.sil.AbstractRoutine.execute(AbstractRoutine.java:55)
	at com.keplerrominfo.jira.commons.sil.ASTCallNode.interpret(ASTCallNode.java:68)

Anyone have any ideas???

Thanks

3 answers

1 accepted

That's strange. Can you please open a bug on http://bugs.kepler-rominfo.com/browse/IMJ? We'll investigate this, the class is definively there.

Have you tried to restart JIRA? How did you made the upgrade. Make sure you do not have two katl-commons in the plugins directory (happened before, at upgrade, versions for JIRA 5 remain )

Seems to have worked itself out. I am guessing the server was reboted. Thanks.

I get the same issue with the user group picker plugin.

It seems not  to be able to be enabled.

I uninstalled all kepler plugins and reinstalled them but user group picker still not able to be enabled.

We run on JIRA 6.3.13, after the upgrade this plugins fails to start with ClassNotFoundExceptions.

I also have cleared the plugin caches and restarted JIRA several times.

Is this a known issue ?

I had multiple version of katl-commons but removed the duplicates and restarted jira.

installed-plugin content:

user_group_picker_issue_installed_plugins.JPG

The atlassian-jira.log says the following:

2015-01-19 12:33:08,000 UpmAsynchronousTaskManager:thread-3 WARN ccadmin 747x231x2 63z2nk 10.70.34.4,0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [keplerrominfo.sil.ldap.LDAPUserConfig] LDAP access is not configured. Any attempt to access LDAP will result in error
2015-01-19 12:34:08,459 atlassian-scheduler-quartz1.clustered_Worker-2 INFO ServiceRunner    Subversion Index Update Service [revisions.scheduling.clustersafe.UpdateSvnIndexService] Indexing job started at Mon Jan 19 12:34:08 CET 2015
2015-01-19 12:34:10,349 UpmAsynchronousTaskManager:thread-3 INFO ccadmin 747x231x2 63z2nk 10.70.34.4,0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [atlassian.plugin.loaders.ScanningPluginLoader] No plugins found to be installed
2015-01-19 12:34:11,437 UpmAsynchronousTaskManager:thread-3 ERROR ccadmin 747x231x2 63z2nk 10.70.34.4,0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [plugin.osgi.factory.OsgiPlugin] Detected an error (BundleException) enabling the plugin 'com.keplerrominfo.jira.plugins.usergrouppicker' : Activator start error in bundle com.keplerrominfo.jira.plugins.usergrouppicker [168]..  This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN
2015-01-19 12:34:11,437 UpmAsynchronousTaskManager:thread-3 WARN ccadmin 747x231x2 63z2nk 10.70.34.4,0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [plugin.osgi.factory.OsgiPlugin] Unable to enable plugin 'com.keplerrominfo.jira.plugins.usergrouppicker'
2015-01-19 12:34:11,437 UpmAsynchronousTaskManager:thread-3 WARN ccadmin 747x231x2 63z2nk 10.70.34.4,0:0:0:0:0:0:0:1 /rest/plugins/1.0/installed-marketplace [plugin.osgi.factory.OsgiPlugin] Because of this exception
com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: com.keplerrominfo.jira.plugins.usergrouppicker
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:486)
        at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:309)
        at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:134)
        at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:104)
        at com.atlassian.plugin.manager.DefaultPluginManager.addPlugins(DefaultPluginManager.java:1061)
        at com.atlassian.plugin.manager.DefaultPluginManager.scanForNewPlugins(DefaultPluginManager.java:743)
        at com.atlassian.plugin.manager.DefaultPluginManager.installPlugins(DefaultPluginManager.java:644)
        at com.atlassian.jira.plugin.JiraPluginManager.installPlugins(JiraPluginManager.java:149)  <+3>
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
        at com.sun.proxy.$Proxy120.installPlugins(Unknown Source)  <+3>
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
        at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
        at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy1458.installPlugins(Unknown Source)
        at com.atlassian.upm.core.install.PluginArtifactInstallerImpl$1.doInTransaction(PluginArtifactInstallerImpl.java:55)
        at com.atlassian.upm.core.install.PluginArtifactInstallerImpl$1.doInTransaction(PluginArtifactInstallerImpl.java:50)
        at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)
        at com.atlassian.jira.DefaultHostContextAccessor.doInTransaction(DefaultHostContextAccessor.java:34)  <+2>
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)
        at com.sun.proxy.$Proxy203.doInTransaction(Unknown Source)  <+2>
        at java.lang.reflect.Method.invoke(Unknown Source)
        at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)
        at com.sun.proxy.$Proxy203.doInTransaction(Unknown Source)
        at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:21)  <+2>
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
        at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58)
        at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56)
        at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at com.sun.proxy.$Proxy1598.execute(Unknown Source)
        at com.atlassian.upm.core.install.PluginArtifactInstallerImpl.installPlugins(PluginArtifactInstallerImpl.java:49)
        at com.atlassian.upm.core.install.ObrPluginInstallHandler.installResources(ObrPluginInstallHandler.java:230)
        at com.atlassian.upm.core.install.ObrPluginInstallHandler.installPluginInternal(ObrPluginInstallHandler.java:157)
        at com.atlassian.upm.core.install.AbstractPluginInstallHandler.installPlugin(AbstractPluginInstallHandler.java:48)
        at com.atlassian.upm.core.install.DefaultPluginInstallationService.execute(DefaultPluginInstallationService.java:111)
        at com.atlassian.upm.core.install.DefaultPluginInstallationService.install(DefaultPluginInstallationService.java:87)
        at com.atlassian.upm.install.UpmPluginInstallationService.install(UpmPluginInstallationService.java:94)
        at com.atlassian.upm.core.rest.resources.install.InstallTask.installFromFile(InstallTask.java:123)
        at com.atlassian.upm.core.rest.resources.install.InstallFromUriTask.executeTask(InstallFromUriTask.java:88)
        at com.atlassian.upm.core.rest.resources.install.InstallTask.call(InstallTask.java:60)
        at com.atlassian.upm.core.rest.resources.install.InstallTask.call(InstallTask.java:34)
        at com.atlassian.upm.core.rest.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:78)
        at com.atlassian.upm.core.rest.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:73)
        at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.osgi.framework.BundleException: Activator start error in bundle com.keplerrominfo.jira.plugins.usergrouppicker [168].
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1864)
        at org.apache.felix.framework.Felix.startBundle(Felix.java:1734)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905)
        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:892)
        at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:462)
Caused by: java.lang.NoClassDefFoundError: com/keplerrominfo/jira/commons/sil/AbstractRoutine
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.findClass(ModuleImpl.java:1829)
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:716)
        at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.keplerrominfo.jira.plugins.usergrouppicker.UserPickerBrowserBundleActivator.<clinit>(UserPickerBrowserBundleActivator.java:39)  <+3>
        at java.lang.reflect.Constructor.newInstance(Unknown Source)
        at java.lang.Class.newInstance(Unknown Source)
        at org.apache.felix.framework.Felix.createBundleActivator(Felix.java:3659)
        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1812)
        ... 91 more
Caused by: java.lang.ClassNotFoundException: com.keplerrominfo.jira.commons.sil.AbstractRoutine
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:772)
        at org.apache.felix.framework.ModuleImpl.access$200(ModuleImpl.java:73)
        at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1690)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 106 more

 

 

Ok I just found out that User Group Picker support has been dropped, so forget this comment.

(The former message were created by me, with a colleagues account)

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

376 views 1 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you