cancel
Showing results for 
Search instead for 
Did you mean: 

no existing history activity entity found for execution

ryu
Champ in-the-making
Champ in-the-making
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
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Looks like you hit a bug that is in 5.2. It is fixed in 5.3 (just one day of patience, relzase is tomorrow ;-))

ryu
Champ in-the-making
Champ in-the-making
Hi jbarrez,

would you please point me to that bug "no existing history" in Jira tracker? I couldn't find it

thank you

jbarrez
Star Contributor
Star Contributor