<?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 Error Parsing XML in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/error-parsing-xml/m-p/128398#M90266</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 5.13 and trying to make an Upload Deployment rest API post including my .bar file, and I continue to get a 500 error, "Error parsing XML".&amp;nbsp; I've tried using several rest clients to do this, including cURL and Postman, and all give me the same error.&amp;nbsp; I've tried uploading the straight .bpmn file as well, with the same result.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is my cURL call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;curl –basic –user kermit:kermit –form "fileupload=@testProcess.bar" &lt;/SPAN&gt;&lt;A href="http://localhost:8080/activiti-rest/service/deployment" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/activiti-rest/service/deployment&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All other rest calls except for uploading seem to work just fine.&amp;nbsp; I'm rather new to Activiti, so it's probably a simple error that I'm making.&amp;nbsp; Can anyone see what I'm doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2013 19:25:06 GMT</pubDate>
    <dc:creator>chadwyck</dc:creator>
    <dc:date>2013-06-26T19:25:06Z</dc:date>
    <item>
      <title>Error Parsing XML</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-parsing-xml/m-p/128398#M90266</link>
      <description>Hello,I am using 5.13 and trying to make an Upload Deployment rest API post including my .bar file, and I continue to get a 500 error, "Error parsing XML".&amp;nbsp; I've tried using several rest clients to do this, including cURL and Postman, and all give me the same error.&amp;nbsp; I've tried uploading the straigh</description>
      <pubDate>Wed, 26 Jun 2013 19:25:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-parsing-xml/m-p/128398#M90266</guid>
      <dc:creator>chadwyck</dc:creator>
      <dc:date>2013-06-26T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error Parsing XML</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/error-parsing-xml/m-p/128399#M90267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;CODE&gt;&lt;BR /&gt;if (fileName.endsWith(".bpmn20.xml") || fileName.endsWith(".bpmn")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deploymentBuilder.addInputStream(fileName, uploadItem.getInputStream());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else if (fileName.toLowerCase().endsWith(".bar") || fileName.toLowerCase().endsWith(".zip")) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; deploymentBuilder.addZipInputStream(new ZipInputStream(uploadItem.getInputStream()));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiIllegalArgumentException("File must be of type .bpmn20.xml, .bpmn, .bar or .zip");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;You're sure the file you're uploading is a ZIP-file? Also, are you sure the XML file (bpmn) is actually valid XML to start with? We have a test for this behavior, perhaps you can try that with you're file to be sure it's not the client you're using. See &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/847e5bf49237211c1744ff9f46786397bddab3db/modules/activiti-rest/src/test/java/org/activiti/rest/api/repository/DeploymentResourceTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/847e5bf49237211c1744ff9f46786397bddab3db/modules/activiti-rest/src/test/java/org/activiti/rest/api/repository/DeploymentResourceTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Jun 2013 12:03:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/error-parsing-xml/m-p/128399#M90267</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-06-27T12:03:15Z</dc:date>
    </item>
  </channel>
</rss>

