Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-5294

SLA condition for automation is not working for some Cloud instances

    XMLWordPrintable

Details

    Description

      Summary

      The SLA Time Remaining condition is broken. The error will happen whenever the SLA "when" condition is used. When used, the automation will not trigger.

      Affected Versions

      ServiceDesk 3.3.0-OD-01-001-D20160706T042017+ in combination with Automation plugin 2.3.0-D20160705T014023+ .This was deployed during daily update on 12/07/2016

      Log visibility

       
      [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'java.lang.ClassCastException - java.lang.Long cannot be cast to java.lang.String'. 
      

      After setting ozymandias logger to debug:

       
      2016-07-14 12:09:02.002951500 2016-07-14 12:09:01,998 Caesium-1-1 DEBUG administrador.bi [c.atlassian.ozymandias.SafePluginPointAccess] Unable to run plugin code because of 'java.lang.ClassCastException - java.lang.Long cannot be cast to java.lang.String'. 
      2016-07-14 12:09:02.002953500 java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.String 
      2016-07-14 12:09:02.002954500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.RuleMessageImpl.lambda$getValue$0(RuleMessageImpl.java:62) 
      2016-07-14 12:09:02.003005500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.RuleMessageImpl$$Lambda$3629/22471835.apply(Unknown Source) 
      2016-07-14 12:09:02.003006500 at com.atlassian.fugue.Option.map(Option.java:272) 
      2016-07-14 12:09:02.003006500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.RuleMessageImpl.getValue(RuleMessageImpl.java:62) 
      2016-07-14 12:09:02.003017500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.helper.RuleMessageConversionHelper.getLongFromRuleMessage(RuleMessageConversionHelper.java:12) 
      2016-07-14 12:09:02.003019500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.helper.IssueMessageHelperImpl.loadIssue(IssueMessageHelperImpl.java:197) 
      2016-07-14 12:09:02.003049500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.helper.IssueMessageHelperImpl.getIssue(IssueMessageHelperImpl.java:139) 
      2016-07-14 12:09:02.003050500 at com.atlassian.servicedesk.plugins.automation.internal.execution.message.helper.IssueMessageHelperImpl.getIssue(IssueMessageHelperImpl.java:88) 
      2016-07-14 12:09:02.003061500 at sun.reflect.GeneratedMethodAccessor1802.invoke(Unknown Source) 
      2016-07-14 12:09:02.003061500 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
      2016-07-14 12:09:02.003062500 at java.lang.reflect.Method.invoke(Method.java:497) 
      2016-07-14 12:09:02.003062500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302) 
      2016-07-14 12:09:02.003071500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) 
      2016-07-14 12:09:02.003071500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) 
      2016-07-14 12:09:02.003072500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
      2016-07-14 12:09:02.003087500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 
      2016-07-14 12:09:02.003099500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 
      2016-07-14 12:09:02.003099500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
      2016-07-14 12:09:02.003100500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) 
      2016-07-14 12:09:02.003111500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) 
      2016-07-14 12:09:02.003111500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
      2016-07-14 12:09:02.003112500 at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) 
      2016-07-14 12:09:02.003121500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
      2016-07-14 12:09:02.003122500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 
      2016-07-14 12:09:02.003132500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 
      2016-07-14 12:09:02.003133500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 
      2016-07-14 12:09:02.003133500 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208) 
      2016-07-14 12:09:02.003142500 at com.sun.proxy.$Proxy4040.getIssue(Unknown Source) 
      2016-07-14 12:09:02.003142500 at com.atlassian.servicedesk.plugins.automation.modules.rulethen.WorkflowTransitionThenAction.invoke(WorkflowTransitionThenAction.java:59) 
      2016-07-14 12:09:02.003143500 at com.atlassian.servicedesk.plugins.automation.internal.module.ThenActionManagerImpl$3.onModuleShouldDisplay(ThenActionManagerImpl.java:148) 
      2016-07-14 12:09:02.003151500 at com.atlassian.servicedesk.plugins.automation.internal.module.ThenActionManagerImpl$3.onModuleShouldDisplay(ThenActionManagerImpl.java:137) 
      2016-07-14 12:09:02.003152500 at com.atlassian.servicedesk.plugins.automation.internal.descriptors.condition.ConditionAwarePluginPointFunction.onModule(ConditionAwarePluginPointFunction.java:20) 
      2016-07-14 12:09:02.003162500 at com.atlassian.ozymandias.SafePluginPointAccess$AccumulatingVisitor.visit(SafePluginPointAccess.java:602) 
      2016-07-14 12:09:02.003174500 at com.atlassian.ozymandias.SafePluginPointAccess.invokeModule(SafePluginPointAccess.java:528) 
      2016-07-14 12:09:02.003174500 at com.atlassian.ozymandias.SafePluginPointAccess.descriptors(SafePluginPointAccess.java:206) 
      2016-07-14 12:09:02.003175500 at com.atlassian.ozymandias.SafePluginPointAccess.descriptor(SafePluginPointAccess.java:215) 
      2016-07-14 12:09:02.003176500 at com.atlassian.ozymandias.SafePluginPointAccess.forKey(SafePluginPointAccess.java:136) 
      2016-07-14 12:09:02.003188500 at com.atlassian.ozymandias.SafePluginPointAccess.forKey(SafePluginPointAccess.java:114) 
      2016-07-14 12:09:02.003188500 at com.atlassian.servicedesk.plugins.automation.internal.module.ThenActionManagerImpl.executeThenAction(ThenActionManagerImpl.java:136) 
      2016-07-14 12:09:02.003189500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleActionInvoker.executeThenAction(RuleActionInvoker.java:110) 
      2016-07-14 12:09:02.003200500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleActionInvoker.invokeActions(RuleActionInvoker.java:92) 
      2016-07-14 12:09:02.003200500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.processIfThen(RuleProcessorImpl.java:153) 
      2016-07-14 12:09:02.003214500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.processImpl(RuleProcessorImpl.java:115) 
      2016-07-14 12:09:02.003215500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.process(RuleProcessorImpl.java:87) 
      2016-07-14 12:09:02.003215500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.doExecute(RuleProcessorImpl.java:59) 
      2016-07-14 12:09:02.003229500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.RuleProcessorImpl.doExecute(RuleProcessorImpl.java:39) 
      2016-07-14 12:09:02.003230500 at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:66) 
      2016-07-14 12:09:02.003239500 at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.access$100(RuleExecutionInterceptorManagerImpl.java:21) 
      2016-07-14 12:09:02.003240500 at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl$TailInterceptorChain.next(RuleExecutionInterceptorManagerImpl.java:92) 
      2016-07-14 12:09:02.003253500 at com.atlassian.servicedesk.internal.automation.PortalContextRuleExecutionInterceptor$$anonfun$doIntercept$1.apply$mcV$sp(PortalContextRuleExecutionInterceptor.scala:21) 
      2016-07-14 12:09:02.003254500 at com.atlassian.servicedesk.internal.automation.PortalContextRuleExecutionInterceptor$$anonfun$doIntercept$1.apply(PortalContextRuleExecutionInterceptor.scala:21) 
      2016-07-14 12:09:02.003265500 at com.atlassian.servicedesk.internal.automation.PortalContextRuleExecutionInterceptor$$anonfun$doIntercept$1.apply(PortalContextRuleExecutionInterceptor.scala:21) 
      2016-07-14 12:09:02.003266500 at scala.Option.fold(Option.scala:158) 
      2016-07-14 12:09:02.003267500 at com.atlassian.servicedesk.internal.automation.PortalContextRuleExecutionInterceptor.doIntercept(PortalContextRuleExecutionInterceptor.scala:22) 
      2016-07-14 12:09:02.003277500 at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:72) 
      2016-07-14 12:09:02.003278500 at com.atlassian.servicedesk.plugins.automation.internal.module.RuleExecutionInterceptorManagerImpl.runInterceptors(RuleExecutionInterceptorManagerImpl.java:39) 
      2016-07-14 12:09:02.003290500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processWithInterceptors(ExecutionJobProcessorImpl.java:188) 
      2016-07-14 12:09:02.003291500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl$2.run(ExecutionJobProcessorImpl.java:175) 
      2016-07-14 12:09:02.003300500 at com.atlassian.servicedesk.plugins.automation.internal.execution.context.user.RunAsUserServiceImpl.runAsUser(RunAsUserServiceImpl.java:43) 
      2016-07-14 12:09:02.003301500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processInUserContext(ExecutionJobProcessorImpl.java:166) 
      2016-07-14 12:09:02.003386500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processJobImpl(ExecutionJobProcessorImpl.java:148) 
      2016-07-14 12:09:02.003387500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.process.ExecutionJobProcessorImpl.processJob(ExecutionJobProcessorImpl.java:85) 
      2016-07-14 12:09:02.003413500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.async.AsynchronousExecutionJobExecutor.execute(AsynchronousExecutionJobExecutor.java:33) 
      2016-07-14 12:09:02.003414500 at com.atlassian.servicedesk.plugins.automation.internal.execution.engine.async.AsynchronousExecutionThreadManagerImpl$ServiceDeskAutomationAsynchronousRuleExecutionJobRunner.runJob(AsynchronousExecutionThreadManagerImpl.java:95)
      2016-07-14 12:09:02.003422500 at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153) 
      2016-07-14 12:09:02.003422500 at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118) 
      2016-07-14 12:09:02.003422500 at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97) 
      2016-07-14 12:09:02.003430500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401) 
      2016-07-14 12:09:02.003431500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:369) 
      2016-07-14 12:09:02.003431500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:347) 
      2016-07-14 12:09:02.003437500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255) 
      2016-07-14 12:09:02.003443500 at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252) 
      2016-07-14 12:09:02.003444500 at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65) 
      2016-07-14 12:09:02.003444500 at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59) 
      2016-07-14 12:09:02.003449500 at com.atlassian.scheduler.caesium.impl.Sc 
      

      Workaround

      There is no workaround.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              vchin Vincent Chin (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: