Hi Guys,
Our appilcation works on scala , so listeners also we have implemented in scala language
so we override notify method and return future of unit.
But , I m getting below exception while completing tasks
[ERROR] [2019/11/30 09:22:25.025] [ReactorActorSystem-akka.actor.default-dispatcher-28] [o.c.b.e.context] - ENGINE-16004 Exception while closing command context: null
java.lang.NullPointerException: null
at java.lang.String.compareTo(String.java:1155)
at org.camunda.bpm.engine.impl.db.entitymanager.operation.comparator.DbEntityOperationComparator.compare(DbEntityOperationComparator.java:39)
at org.camunda.bpm.engine.impl.db.entitymanager.operation.comparator.DbEntityOperationComparator.compare(DbEntityOperationComparator.java:28)
at java.util.TreeMap.put(TreeMap.java:552)
at java.util.TreeSet.add(TreeSet.java:255)
at org.camunda.bpm.engine.impl.db.entitymanager.operation.DbOperationManager.addOperation(DbOperationManager.java:80)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.performEntityOperation(DbEntityManager.java:675)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushCachedEntity(DbEntityManager.java:553)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flushEntityCache(DbEntityManager.java:519)
at org.camunda.bpm.engine.impl.db.entitymanager.DbEntityManager.flush(DbEntityManager.java:294)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.flushSessions(CommandContext.java:208)
at org.camunda.bpm.engine.impl.interceptor.CommandContext.close(CommandContext.java:137)
at org.camunda.bpm.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:116)
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.TaskServiceImpl.complete(TaskServiceImpl.java:177)
at org.camunda.bpm.engine.impl.TaskServiceImpl.complete(TaskServiceImpl.java:173)
at com.reactore.hf.repo.mongoHelper.TaskDetailHelper.$anonfun$completeTask$3(TaskDetailHelper.scala:119)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:23)
Could you please help me with solution for this