如何通过CMIS API调用文档上的cancelCheckOut()来消除CmisConstraintException

时间:2016-04-15 07:43:16

标签: exception sharepoint opencmis apache-chemistry

我在SharePoint 2013 version : 11274-2048中有一个签出的文档。每次我使用CMIS API调用doc.cancelCheckOut()时,我都会遇到异常:

com.datacert.core.common.exception.BaseApplicationException:
com.datacert.core.common.exception.BaseApplicationException:
org.apache.chemistry.opencmis.commons.exceptions.CmisConstraintException:
The operation is attempting to perform an action on a non-current version of a Document that cannot be performed on a non-current version.

我还尝试从存储库中获取新对象或使用doc.refresh()刷新对象。

0 个答案:

没有答案