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

Fix file import using nuxeo-platform-importer

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 8.10-SNAPSHOT
    • Fix Version/s: 8.10
    • Component/s: Importer
    • Upgrade notes:
      Hide

      Before opening a new session should always check if it's active.

      Show
      Before opening a new session should always check if it's active.

      Description

      • Using mongodb, redis and latest firefox version
      • Install nuxeo-platform-importer on a 8.10-SNAPSHOT without a UI package
      • Browse the following URLs (you'll need to adapt the second one to a real path in your machine):

      => An exception is thrown

      DEBUG : Filter with blockSyncPostCommitProcessing set false, blockAsyncProcessing set false, blockMimeTypeDetection set false, blockNotifications set true, blockIndexing set false, bulkMode set true, was added on the importer with the hash code 270627397. The source node name is Downloads
      ERROR : Task exec failed
      =>ERR : NuxeoException:Cannot create a CoreSession outside a transaction
      

      Log shows:

       
      18:29:08,923 ERROR [HttpFileImporterExecutor] Task exec failed
      org.nuxeo.ecm.core.api.NuxeoException: Cannot create a CoreSession outside a transaction
      	at org.nuxeo.ecm.core.api.local.LocalSession.<init>(LocalSession.java:75)
      	at org.nuxeo.ecm.core.api.CoreSessionServiceImpl.createCoreSession(CoreSessionServiceImpl.java:43)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSession(CoreInstance.java:171)
      	at org.nuxeo.ecm.core.api.CoreInstance.openCoreSessionSystem(CoreInstance.java:98)
      	at org.nuxeo.ecm.platform.importer.base.GenericMultiThreadedImporter.run(GenericMultiThreadedImporter.java:203)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: