I am using jbpm 5.1.2 + drools 5.3.0
When I run the code below, SOMETIMES I get the ConcurrentModificationException.
private org.jbpm.task.TaskService localTaskService;
...
localTaskService.complete(task1.getId(), actor, contentData);
...
Here is the exception I encounter.
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at org.jbpm.task.event.MessagingTaskEventListener.taskCompleted(MessagingTaskEventListener.java:72)
at org.jbpm.task.event.TaskEventSupport.fireTaskCompleted(TaskEventSupport.java:47)
at org.jbpm.task.service.TaskServiceSession.postTaskCompleteOperation(TaskServiceSession.java:497)
at org.jbpm.task.service.TaskServiceSession.taskOperation(TaskServiceSession.java:463)
at org.jbpm.task.service.local.LocalTaskService.complete(LocalTaskService.java:73)
Q1: Is it a known bug in this version?
Q2: Is it fixed?
Q3: Can bypass it?