<?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 Document checkin fails in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32440#M13732</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are getting this exception while checking in multiple versions of the document. It seems like the update is not complete yet and checkin appears too early. Is there a way to confirm that document versions has been updated before we check in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;CmisStorageException: Expected 29184 bytes but retrieved 0 bytes!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:362)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.bindings.spi.browser.VersioningServiceImpl.checkIn(VersioningServiceImpl.java:123)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.checkIn()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Many thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;Krzysztof&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2017 13:17:47 GMT</pubDate>
    <dc:creator>longinus</dc:creator>
    <dc:date>2017-12-22T13:17:47Z</dc:date>
    <item>
      <title>Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32440#M13732</link>
      <description>Hello AllWe are getting this exception while checking in multiple versions of the document. It seems like the update is not complete yet and checkin appears too early. Is there a way to confirm that document versions has been updated before we check in?CmisStorageException: Expected 29184 bytes but</description>
      <pubDate>Fri, 22 Dec 2017 13:17:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32440#M13732</guid>
      <dc:creator>longinus</dc:creator>
      <dc:date>2017-12-22T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32441#M13733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you post the Java code that is performing the checkout and the check-in someone might be able to help you. Otherwise, we can only guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2017 14:22:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32441#M13733</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2017-12-27T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32442#M13734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, sorry about that. I are using OpenCMIS api to call alfresco core:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; font-family: 'Courier New'; font-size: 9pt; background-color: #2b2b2b;"&gt;ObjectId pwcId = ((Document) target).checkOut()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;Document pwcDocument = (Document) session.getObject(pwcId)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;ContentStream contentStream = createContentStream(name&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;contentlength&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;mimeType&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;content)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;ObjectId newVersionId = pwcDocument.checkIn(updateMajor&lt;SPAN style="color: #cc7832;"&gt;, null, &lt;/SPAN&gt;contentStream&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #6a8759;"&gt;"new version"&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is we update the document in batch, creating new versions. It seems like previous update is not complete when we attempt to check out for new version.&lt;/P&gt;&lt;P&gt;It would be nice to instruct CMIS to perform checkout when the previous check-in is complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 11:00:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32442#M13734</guid>
      <dc:creator>longinus</dc:creator>
      <dc:date>2018-01-02T11:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32443#M13735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you say that DocumentProperties.isVersionSeriesCheckedOut() is a good assumption about document being ready for checkout? Or if clients should sleep and try again in 2s?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 17:25:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32443#M13735</guid>
      <dc:creator>longinus</dc:creator>
      <dc:date>2018-02-12T17:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32444#M13736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Longinus,&lt;/P&gt;&lt;P&gt;Have you found to solution for this issue? I'm&amp;nbsp; facing the same issue. So I must Sleep 2s, a try again later. But I don't like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2019 04:44:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32444#M13736</guid>
      <dc:creator>phong_van</dc:creator>
      <dc:date>2019-08-07T04:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Document checkin fails</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32445#M13737</link>
      <description>&lt;P&gt;I'm running into this using Alfresco Community - 6.0.7 (rb4fe76b5-b113). This is definitely a race condition or some other less-than-predictable problem within Alfresco since if I run the same code again, the files that failed originally now succeed, while other files that succeeded earlier fail.&lt;/P&gt;&lt;P&gt;The code is also confirmed to submit the correct data over the wire using Browser bindings (through HTTP sniffing).&lt;/P&gt;&lt;P&gt;I found &lt;A href="https://www.mail-archive.com/dev@chemistry.apache.org/msg05292.html" target="_blank" rel="noopener nofollow noreferrer"&gt;this thread&lt;/A&gt; that seems to suggest this is some sort of an issue with TempFileProvider, which would make sense since it seems to be sporadic. While that thread does reference the SVN for Alfresco 4.2f, I suspect this is one of those issues that has simply slept its way into the future b/c of how infrequently it rears its head.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Oct 2021 15:26:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/document-checkin-fails/m-p/32445#M13737</guid>
      <dc:creator>drivera</dc:creator>
      <dc:date>2021-10-16T15:26:43Z</dc:date>
    </item>
  </channel>
</rss>

