我正在使用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
在处理Alfresco时(对文件启用版本控制)。创建的任何文件都必须具有document_versioning_state(次要或主要),默认情况下不能为零。
因此,解决方案是在位于C:\Ephesoft\Application\WEB-INF\classes\META-INF\dcma-cmis Folder下的Ephesoft dcma-cmis.properties文件中进行修改。
此行必须是
cmis.document_versioning_state=MAJOR