1

我将 Ephesoft-Community-Edition-2.4.0.7 与 alfresco 4.0 一起使用,当我尝试使用元数据导出上传的文件时出现 CmisObjectNotFoundException。

这是 dcma-all.log 中的日志

- batchInstanceIdentifierIdentifier : BI16  inputFileName : BI16_batch.xml  outputFileName : PRE_STATE_BI16_batch.xml
 - Successfully copy of the file for batch Instance identifier : BI16
- CMIS export plugin.
- Initializing properties...
- CMIS: HTTP Basic Authentication will be used for CMIS messaging.
Determining if the target folder "Sites" exists within the repository folder "/".
   - Folder already present
   - Found the child folder. Its folder ID is workspace://SpacesStore/383973c1-0325-408f-8f54-551c9bd86ebc.
   - Determining if the target folder "ephesoftintegration" exists within the repository folder "/Sites".
   - Folder already present
   - Found the child folder. Its folder ID is workspace://SpacesStore/5c4c7e20-7148-4c59-a3a8-edd76748aa3d.
   - Determining if the target folder "documentLibrary" exists within the repository folder "/Sites/ephesoftintegration".
   - Folder already present
   - Found the child folder. Its folder ID is workspace://SpacesStore/9ecc0217-4e5f-456a-b22c-9cb8b57a4152.
   - Determining if the target folder "files" exists within the repository folder "/Sites/ephesoftintegration/documentLibrary".
   - Folder already present
   - Found the child folder. Its folder ID is workspace://SpacesStore/32469808-a4cc-4cf9-acf4-2ab8e9a892a6.
   - Content mime type is: application/pdf
   - property - keyString : MyDocType , property-value : my:document
   - {cmis:objectTypeId=my:document, cmis:name=BI16_documentDOC1.pdf}
2016-01-16 16:07:43,662 ERROR  - Introuvable
org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Introuvable
4

1 回答 1

1

使用(启用文件版本控制)处理 Alfresco 时。创建的任何文件都必须具有 document_versioning_state (MINOR OR MAJOR),默认情况下不能为 NONE。

所以解决方法是修改位于 C:\Ephesoft\Application\WEB-INF\classes\META-INF\dcma-cmis 文件夹下的 Ephesoft dcma-cmis.properties 文件。

这条线必须是

cmis.document_versioning_state=MAJOR
于 2016-01-18T08:45:58.587 回答