Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-23797

CMIS does not take into account hot-reloaded document types

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.1
    • Component/s: CMIS

      Description

      Steps to reproduce:

      PHASE I

      Nuxeo Studio configuration:

      • Create a document type, i.e. "SABISEvaluacion"
      • Create a schema, called "eval", with three fields
        • name
        • account
        • qr
      • Associate the schema with the document type
      • Deploy on your instance

      Ephesoft configuration

      • Create a batch class (copy the Mail Automation Template).
      • Define a document type called "SABISEvaluacion".
      • Define the index fields:
        • name
        • account
      • Define the key value extraction for those fields.
      • Configure CMIS plugin
      • Configure the field mapping.

        SABISEvaluacion=SABISEvaluacion
        SABISEvaluacion.name=eval
        SABISEvaluacion.account=eval:account

      • Upload a file from Ephesoft and process it until is send to Nuxeo through CMIS. (The file is uploaded to Nuxeo properly)

      PHASE II

      • Nuxeo
        • Access to Nuxeo Studio
        • Rename "qr" field in your schema. (New name: "cardId")
        • Deploy your changes
      • Ephesoft
        • Define the index fields:
          • cardId
        • Configure the field mapping (add the new field).
        • Upload a file from Ephesoft and process it until is send to Nuxeo through CMIS. (The file is NOT uploaded to Nuxeo)

      Ephesoft logs:

      The CMIS export is failing with this error message:
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:10,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Error occured while uploading files. Caught CMIS specific exception.
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:10,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - exceptionName invalidArgument
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:10,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Cause
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:10,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - cmisErrorMessage No such type: SABISEvaluacion
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:12,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Error occured while uploading files. Caught CMIS specific exception.
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:12,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - exceptionName invalidArgument
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:12,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Cause
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:12,787 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - cmisErrorMessage No such type: SABISEvaluacion
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:14,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Error occured while uploading files. Caught CMIS specific exception.
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:14,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - exceptionName invalidArgument
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:14,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Cause
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:14,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - cmisErrorMessage No such type: SABISEvaluacion
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:16,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Error occured while uploading files. Caught CMIS specific exception.
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:16,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - exceptionName invalidArgument
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:16,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Cause
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:16,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - cmisErrorMessage No such type: SABISEvaluacion
      4.1.3.0 Windows Server 2012 R2 2017-11-30 00:30:16,803 ERROR pool-3-thread-3 com.ephesoft.dcma.cmis.service.AbstractFileUploader - Error while uploading document with identifier: DOC1 for batch instance: BIE
      com.ephesoft.dcma.core.exception.DCMAApplicationException: Unable to upload the document : BIE_documentDOC1.pdf
      at com.ephesoft.dcma.cmis.service.AbstractFileUploader.uploadFile(AbstractFileUploader.java:275)
      at com.ephesoft.dcma.cmis.service.AbstractFileUploader.uploadDocument(AbstractFileUploader.java:211)
      at com.ephesoft.dcma.cmis.service.PdfFileUploader.uploadFile(PdfFileUploader.java:97)
      at com.ephesoft.dcma.cmis.CMISExporter.uploadFile(CMISExporter.java:600)
      at com.ephesoft.dcma.cmis.CMISExporter.exportFiles(CMISExporter.java:365)
      at com.ephesoft.dcma.cmis.service.CMISExportServiceImpl.exportContent(CMISExportServiceImpl.java:77)
      at sun.reflect.GeneratedMethodAccessor867.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
      ...

      SEE: https://www.nuxeo.com/blog/direct-document-capture-nuxeo-using-ephesoft-cmis/

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours
                4h