Error in Automation Plugin

Susanne Harelius [Riada]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2015

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)

1 answer

1 accepted

0 votes
Answer accepted
Matej K
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2015

Which version of ATM plugin are you using?

Susanne Harelius [Riada]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 10, 2015

Version 1.5.3 - latest version.

Matej K
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 11, 2015

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

Susanne Harelius [Riada]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 11, 2015

Thanks! I will have the sysadmin do this asap and get back to you.

Suggest an answer

Log in or Sign up to answer