Bulk importer - diable bulk mode in documentation seems not correct

Hi, I follow the documentation here : https://doc.nuxeo.com/nxdoc/nuxeo-bulk-document-importer/ That says to put that to disable bulk mode :

<extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration"> 

I have a null pointer exception here :

            Class<? extends DefaultDocumentModelFactory> docFactoryClass = descriptor.getDocumentModelFactory().getDocumentModelFactoryClass();

I gonna try to fix that with this contribution :

<?xml version="1.0" encoding="UTF-8"?>
<component name="com.nuxeo.disable.bulk.mode" version="1.0.0">
<extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration">
<importerConfig sourceNodeClass ="org.nuxeo.ecm.platform.importer.source.FileWithMetadataSourceNode" >
<documentModelFactory leafType="File" folderishType="Folder" documentModelFactoryClass="org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory" />

What do you think ?

0 votes

2 answers



Hi Benjamin!

Thank you very much for your help! I created a JIRA ticket to fix the page, if you want to follow its resolution.



0 votes

It seems working. Maybe this can be fixed in the documentation ?

1 votes

Welcome back Benjamin !!! :)

Hello Benjamin,

Documentation is what is supposed to be, but due to a bug in our code documentModelFactory xml node is not optional as it's supposed to be. I created https://jira.nuxeo.com/browse/NXP-27066 to fix the issue. Meanwhile, documentation will be updated in order to add this (empty) node.