It is happening randomly at different activities like when call activity completes or long running service task ends.
Call is coming from JobEntity class via AsyncContinuationJobHandler.java class in execute()
I have been able to debug the code and found that in that execution, activity id is null there and when i check database, it reflects same for that executionId.
StackTrace:
java.lang.NullPointerException at org.camunda.bpm.engine.impl.pvm.runtime.LegacyBehavior.isAsync(LegacyBehavior.java:540}
at org.camunda.bpm.engine.impl.pvm.runtime.LegacyBehavior.repairMultiInstanceAsyncJob(LegacyBehavior.java:569}
at org.camunda.bpm.engine.impl.jobexecutor.AsyncContinuationJobHandler.execute(AsyncContinuationJobHandler.java:67}
at com.anuta.atom.workflow.async.CustomAsyncContinuationJobHandler.execute(CustomAsyncContinuationJobHandler.java:35}
at com.anuta.atom.workflow.async.CustomAsyncContinuationJobHandler.execute(CustomAsyncContinuationJobHandler.java:23}
at org.camunda.bpm.engine.impl.persistence.entity.JobEntity.execute(JobEntity.java:125}
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:109}
at org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd.execute(ExecuteJobsCmd.java:42}
at org.camunda.bpm.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:28}
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:110}
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:46}
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:140}
at org.camunda.bpm.engine.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:44}
at org.camunda.bpm.engine.impl.interceptor.ProcessApplicationContextInterceptor.execute(ProcessApplicationContextInterceptor.java:70}
at org.camunda.bpm.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:33}
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobHelper.executeJob(ExecuteJobHelper.java:57}
at org.camunda.bpm.engine.impl.jobexecutor.ExecuteJobsRunnable.run(ExecuteJobsRunnable.java:71}
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149}
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624}
at java.lang.Thread.run(Thread.java:748}
CustomAsyncContinuationJobHandler.java is same as posted in the topic:Error on async after
Hi @gumang - sounds like it might be a good idea to create a JIRA ticket for this so that we can work out if it’s a bug or not. If you like you can then post a link to the ticket here
One more observation is that when these async points exceptions are seen, for those exceptions, act_id in ACT_RU_EXECUTION table is also empty and data is there in act_inst_id.
May be if we figure out when this happen, it can give some clue