AnsweredAssumed Answered

NPE when completing a task

Question asked by robdiana on Oct 7, 2015
Latest reply on Mar 18, 2017 by david.miller@armedia.com
Recently, we started to have one workflow throw a NullPointerException when trying to complete the first task in the workflow. This is a user task that is being completed, so no other operations on the workflow are happening at the same time. We have other workflows that are functioning correctly.

We are running v5.16.4 and using the standalone process engine (programmatic configuration) with some basic JDBC credentials.

Any ideas why this would be occuring or why it would suddenly start being a problem after at least a month of using the workflow? Below is the relevant stack trace.

2015-10-06 12:28:35.883 rsuite-server WARN http-bio-8080-exec-840 <RestAPIv1.req-3910> org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation - NullPointerException
java.lang.NullPointerException
at org.activiti.engine.impl.db.DbSqlSession$CheckedDeleteOperation.sameIdentity(DbSqlSession.java:263)
at org.activiti.engine.impl.db.DbSqlSession.removeUnnecessaryOperations(DbSqlSession.java:609)
at org.activiti.engine.impl.db.DbSqlSession.flush(DbSqlSession.java:571)
at org.activiti.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:211)
at org.activiti.engine.impl.interceptor.CommandContext.close(CommandContext.java:137)
at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:66)
at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:31)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:40)
at org.activiti.engine.impl.cfg.CommandExecutorImpl.execute(CommandExecutorImpl.java:35)
at org.activiti.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:175)

Outcomes