Deployment doesn't work after a first error

Hi,
I Have the following problem:
Suppose I forgot to specify the type of a field (in camunda:formField tag in the bpmn file). The first time, I deploy the bpmn, I got the following error. This is normal.

2019-12-09 11:16:15.856 ERROR — [nio-8085-exec-1] org.camunda.bpm.engine.context : ENGINE-16004 Exception while closing command context: ENGINE-09005 Could not parse BPMN process. Errors:

  • form field must have a ‘type’ attribute | Publication Terme Metier TaskCreateListener No type.bpmn | line 8 | column 97

org.camunda.bpm.engine.ProcessEngineException: ENGINE-09005 Could not parse BPMN process. Errors:

  • form field must have a ‘type’ attribute | Publication Terme Metier TaskCreateListener No type.bpmn | line 8 | column 97

The second time, I deploy a bpmn without error ( which is working before), the deployment blocked at .deploy() without display any error. I can’t deploy anything without restarting camunda.

            deployment = repositoryService
                    .createDeployment()
                    .name(uploadedFile.getOriginalFilename())        
                    .addInputStream(uploadedFile.getOriginalFilename(), uploadedFile.getInputStream())
                    .deploy()

I am using:

  • Camunda 7.9
  • Modeler 2.0.1
  • Ubuntu 16.04

Thank you.