I have a BAR file which contains a BPMN file, which is UTF-8 encoded with a BOM.
With our old Activiti version 5.11 deployment worked with that BAR file, but now after updating to Activiti 5.22.0 I get a BPMN parse error:
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Content ist nicht zulässig in Prolog. at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596) ~[?:1.8.0_121] at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:309) ~[activiti-bpmn-converter-5.22.0.jar:5.22.0]
Looking into it with a HEX Editor revealed the BOM.
Is there a workaround to make the deployment more tolerant, like the old one was?