AnsweredAssumed Answered

no existing history activity entity found for execution

Question asked by ryu on Feb 25, 2011
Latest reply on Mar 1, 2011 by jbarrez
Hi everybody,
I have the same exactly errors here.
The Activiti designer 0.7.0 generates error ids for start and end event of a subprocess
//errors ids
<subProcess id="subprocess1">
   <startEvent id="startevent" name="Start"></startEvent>
   <sequenceFlow id="flow46" sourceRef="subprocess1_startevent" targetRef="…">

</subProcess>
As tombaeyens supposed, I updated Start and End event element ids with global unique ids.
//correct start and end event ids like this
<subProcess id="subprocess1">
   <startEvent id="subprocess1_startevent" name="Start"></startEvent>

</subProcess>
But then the following exception occurs. It looks like the Activiti engine 5.2 cannot find an exit event or something?
org.activiti.engine.ActivitiException: no existing history activity entity found for execution 3406 in activity null
   at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:82)
   at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:42)
   at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:75)
   at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.findActivityInstance(ActivityInstanceEndHandler.java:42)
   at org.activiti.engine.impl.history.handler.ActivityInstanceEndHandler.notify(ActivityInstanceEndHandler.java:37)
   at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:38)
   at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:62)
   at org.activiti.engine.impl.runtime.ExecutionEntity.performOperation(ExecutionEntity.java:483)
   at org.activiti.engine.impl.runtime.ExecutionEntity.take(ExecutionEntity.java:342)
   at org.activiti.engine.impl.pvm.runtime.OutgoingExecution.take(OutgoingExecution.java:38)
   at org.activiti.engine.impl.runtime.ExecutionEntity.takeAll(ExecutionEntity.java:465)
   at org.activiti.engine.impl.bpmn.SubProcessActivity.lastExecutionEnded(SubProcessActivity.java:44)
   at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityEnd.eventNotificationsCompleted(AtomicOperationActivityEnd.java:62)
   at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:52)
   at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:62)
   at org.activiti.engine.impl.runtime.ExecutionEntity.performOperation(ExecutionEntity.java:483)
   at org.activiti.engine.impl.runtime.ExecutionEntity.end(ExecutionEntity.java:316)

Anyideas? Please please help me

Outcomes