Exception in thread “flowable-async-job-executor-thread-2” java.lang.NullPointerException
at org.flowable.engine.impl.persistence.entity.JobEntityManagerImpl.delete(JobEntityManagerImpl.java:142)
at org.flowable.engine.impl.persistence.entity.JobEntityManagerImpl.delete(JobEntityManagerImpl.java:35)
at org.flowable.engine.impl.persistence.entity.AbstractEntityManager.delete(AbstractEntityManager.java:89)
at org.flowable.engine.impl.persistence.entity.JobEntityManagerImpl.delete(JobEntityManagerImpl.java:128)
at org.flowable.engine.impl.persistence.entity.JobEntityManagerImpl.delete(JobEntityManagerImpl.java:35)
at org.flowable.engine.impl.persistence.entity.AbstractEntityManager.delete(AbstractEntityManager.java:84)
at org.flowable.engine.impl.asyncexecutor.DefaultJobManager.unacquire(DefaultJobManager.java:284)
at org.flowable.engine.impl.asyncexecutor.ExecuteAsyncRunnable$3.execute(ExecuteAsyncRunnable.java:168)
at org.flowable.engine.impl.asyncexecutor.ExecuteAsyncRunnable$3.execute(ExecuteAsyncRunnable.java:166)
at org.flowable.engine.impl.interceptor.CommandInvoker$1.run(CommandInvoker.java:44)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperation(CommandInvoker.java:86)
at org.flowable.engine.impl.interceptor.CommandInvoker.executeOperations(CommandInvoker.java:65)
at org.flowable.engine.impl.interceptor.CommandInvoker.execute(CommandInvoker.java:49)
at org.flowable.engine.impl.interceptor.TransactionContextInterceptor.execute(TransactionContextInterceptor.java:51)
at org.flowable.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:64)
at org.flowable.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:36)
at org.flowable.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:56)
at org.flowable.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:51)
at org.flowable.engine.impl.asyncexecutor.ExecuteAsyncRunnable.unacquireJob(ExecuteAsyncRunnable.java:166)
at org.flowable.engine.impl.asyncexecutor.ExecuteAsyncRunnable.lockJobIfNeeded(ExecuteAsyncRunnable.java:153)
at org.flowable.engine.impl.asyncexecutor.ExecuteAsyncRunnable.run(ExecuteAsyncRunnable.java:72)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
My process definiton
I am invoking restful web service in service task(Work to be done).So when the response from system is too late it breaks the time cycle .Is there any better way of invoking a restful service in Flowable.