<?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 Re: CmisStorageException on cmis checkin in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286483#M239613</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am wary of using a version of OpenCMIS that is newer than what Alfresco ships with. In your case, 5.0.d ships with OpenCMIS 0.11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see this problem when using 0.11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can you post the source of your getContentStream method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Nov 2016 19:15:21 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2016-11-21T19:15:21Z</dc:date>
    <item>
      <title>CmisStorageException on cmis checkin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286482#M239612</link>
      <description>Hi,i have a big problem with cmis checkin.I use Alfresco 5.0.d with Apache OpenCmis 1.0.0 (previous 0.13.0) and AtomPub implementation.My client side&amp;nbsp;code is&lt;IMG id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;ocument doc = null; Document pwc = null; ContentStream contentStream = null; try { // refresh object //document.refresh();// document checkou</description>
      <pubDate>Fri, 11 Nov 2016 15:39:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286482#M239612</guid>
      <dc:creator>marcolf</dc:creator>
      <dc:date>2016-11-11T15:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: CmisStorageException on cmis checkin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286483#M239613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am wary of using a version of OpenCMIS that is newer than what Alfresco ships with. In your case, 5.0.d ships with OpenCMIS 0.11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you see this problem when using 0.11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, can you post the source of your getContentStream method?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Nov 2016 19:15:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286483#M239613</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2016-11-21T19:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: CmisStorageException on cmis checkin</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286484#M239614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Jeff Potts ha scritto:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am wary of using a version of OpenCMIS that is newer than what Alfresco ships with. In your case, 5.0.d ships with OpenCMIS 0.11.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you see this problem when using 0.11?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, can you post the source of your getContentStream method?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;thank you for reply.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;First I tried with OpenCMIS 0.13 with the same results. I will try with 0.11 and I'll let you know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;The source code of getContentStream method is: &lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public static ContentStream getContentStream(Session session, String fileName, byte[] content) {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// get mime-type&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;String mimeType = MimeTypes.getMIMEType(fileName);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;// create content stream&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ByteArrayInputStream stream = new ByteArrayInputStream(content);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ContentStream contentStream = session.getObjectFactory().createContentStream(fileName, content.length, mimeType, stream);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return contentStream;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I checked in debug and all parameters of&amp;nbsp;&lt;EM&gt;session.getObjectFactory().createContentStream(...)&lt;/EM&gt; are correctly filled.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;If I insert a (little 500ms) waiting time between checkout and checkin the problem does not occur. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;If I insert a loop that retry n times the checkin, the second time it works properly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thank you very much,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Marco.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2016 08:44:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cmisstorageexception-on-cmis-checkin/m-p/286484#M239614</guid>
      <dc:creator>marcolf</dc:creator>
      <dc:date>2016-11-22T08:44:57Z</dc:date>
    </item>
  </channel>
</rss>

