loadModelException: extensionElements in model


#1

I have edited a process model use Camunda model tools. In it , I have added some extensionElements, then publish into the system. When I load this process model in code, some times it runs ok, but some times it will report exception like bellow:

ENGINE-16004 Exception while closing command context: ENGINE-03023 Could not load BPMN Model for process definition with id ‘’.

org.camunda.bpm.engine.ProcessEngineException: ENGINE-03023 Could not load BPMN Model for process definition with id

Caused by: org.xml.sax.SAXException: Error: URI=null Line=738: cvc-complex-type.2.4.a: find element ‘{“http://www.omg.org/spec/BPMN/20100524/MODEL”:extensionElements}’ begin, invalids content, should be with ‘{“http://www.omg.org/spec/BPMN/20100524/MODEL”:outgoing, “http://www.omg.org/spec/BPMN/20100524/MODEL”:ioSpecification, “http://www.omg.org/spec/BPMN/20100524/MODEL”:property, “http://www.omg.org/spec/BPMN/20100524/MODEL”:dataInputAssociation, “http://www.omg.org/spec/BPMN/20100524/MODEL”:dataOutputAssociation, “http://www.omg.org/spec/BPMN/20100524/MODEL”:resourceRole, “http://www.omg.org/spec/BPMN/20100524/MODEL”:loopCharacteristics, “http://www.omg.org/spec/BPMN/20100524/MODEL”:rendering}’

ENGINE-03023 Could not load BPMN Model for process definition
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.loadModelException(EnginePersistenceLogger.java:270)