我使用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
答案 0 :(得分: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