<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bar File Deployment with BOM does not work in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/bar-file-deployment-with-bom-does-not-work/m-p/21057#M9272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a BAR file which contains a BPMN file, which is UTF-8 encoded with a BOM.&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;Message: Content ist nicht zulässig in Prolog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:596) ~[?:1.8.0_121]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new,courier,monospace; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.activiti.bpmn.converter.BpmnXMLConverter.convertToBpmnModel(BpmnXMLConverter.java:309) ~[activiti-bpmn-converter-5.22.0.jar:5.22.0]&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Looking into it with a HEX Editor revealed the BOM.&lt;/P&gt;&lt;P&gt;Is there a workaround to make the deployment more tolerant, like the old one was?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Frauke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jun 2017 14:17:54 GMT</pubDate>
    <dc:creator>frauke_heyl</dc:creator>
    <dc:date>2017-06-21T14:17:54Z</dc:date>
    <item>
      <title>Bar File Deployment with BOM does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bar-file-deployment-with-bom-does-not-work/m-p/21057#M9272</link>
      <description>Hello,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</description>
      <pubDate>Wed, 21 Jun 2017 14:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bar-file-deployment-with-bom-does-not-work/m-p/21057#M9272</guid>
      <dc:creator>frauke_heyl</dc:creator>
      <dc:date>2017-06-21T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bar File Deployment with BOM does not work</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/bar-file-deployment-with-bom-does-not-work/m-p/21058#M9273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It could be a xerces behaviour&amp;nbsp;as the xerces version changed (&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/activiti-5.11/pom.xml#L391" title="https://github.com/Activiti/Activiti/blob/activiti-5.11/pom.xml#L391" rel="nofollow noopener noreferrer"&gt;Activiti/pom.xml at activiti-5.11 · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;vs&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/5.22.0-release/pom.xml#L507" title="https://github.com/Activiti/Activiti/blob/5.22.0-release/pom.xml#L507" rel="nofollow noopener noreferrer"&gt;Activiti/pom.xml at 5.22.0-release · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&amp;nbsp;) but I would think it's more likely about how the XML stream is created. It looks from some quick searching like in 5.11 the encoding was explicitly specified at creation (&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/activiti-5.11/modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/AbstractConverterTest.java#L21" title="https://github.com/Activiti/Activiti/blob/activiti-5.11/modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/AbstractConverterTest.java#L21" rel="nofollow noopener noreferrer"&gt;Activiti/AbstractConverterTest.java at activiti-5.11 · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;) and it seems like it isn't in 5.22 (&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/converter/BpmnXMLConverter.java#L263" title="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-bpmn-converter/src/main/java/org/activiti/bpmn/converter/BpmnXMLConverter.java#L263" rel="nofollow noopener noreferrer"&gt;Activiti/BpmnXMLConverter.java at 6.0-release · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;). So I'd suggest looking at that. I suspect it would be a code change to alter that behaviour.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 13:39:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/bar-file-deployment-with-bom-does-not-work/m-p/21058#M9273</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-07-07T13:39:52Z</dc:date>
    </item>
  </channel>
</rss>

