We just started to use Automation plugin and created a rule that should act on created issues. If a certain value is set it should be transitioned to a specific status. This does not work, instead we get an error.
2015-05-26 15:36:56,387 pool-8-thread-1 ERROR vernsenb 885x637410x2 1mk17sc 10.30.61.204 /secure/AddComment.jspa [plugin.automation.scheduler.RuleCallable] Exception while executing the rule java.lang.NullPointerException at com.atlassian.plugin.automation.jira.util.JqlMatcherService.getMatchedIssue(JqlMatcherService.java:65) at com.atlassian.plugin.automation.jira.trigger.IssueEventTrigger.getItems(IssueEventTrigger.java:116) at com.atlassian.plugin.automation.scheduler.RuleCallable.call(RuleCallable.java:48) at com.atlassian.plugin.automation.scheduler.RuleCallable.call(RuleCallable.java:19) at com.atlassian.plugin.automation.scheduler.ThreadLocalExecutor.executeAs(ThreadLocalExecutor.java:55) at com.atlassian.plugin.automation.scheduler.DefaultAutomationEventHandler$2.doInTransaction(DefaultAutomationEventHandler.java:96) 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.$Proxy438.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.$Proxy438.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.$Proxy2252.execute(Unknown Source) at com.atlassian.plugin.automation.scheduler.DefaultAutomationEventHandler.execute(DefaultAutomationEventHandler.java:89) at com.atlassian.plugin.automation.scheduler.DefaultAutomationEventHandler.access$000(DefaultAutomationEventHandler.java:16) at com.atlassian.plugin.automation.scheduler.DefaultAutomationEventHandler$1.run(DefaultAutomationEventHandler.java:81) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 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)
Which version of ATM plugin are you using?
Version 1.5.3 - latest version.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've just published 1.5.4. Can you try that one and post stacktrace if possible? Probably you should move this to https://bitbucket.org/atlassianlabs/automation/issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks! I will have the sysadmin do this asap and get back to you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.