- 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):
- http://localhost:8080/nuxeo/site/fileImporter/logActivate?language=en
- http://localhost:8080/nuxeo/site/fileImporter/run?targetPath=/default-domain/workspaces&inputPath=/home/nuxeo/Downloads&batchSize=10&interactive=false&nbThreads
- http://localhost:8080/nuxeo/site/fileImporter/log
=> 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)
- is related to
-
NXP-19361 Don't allow use of CoreSession outside a transaction
- Resolved