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"> 
  <importerConfig> 
    <bulkMode>false</bulkMode> 
  </importerConfig> 
</extension>

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">
<require>org.nuxeo.ecm.platform.importer.service.jaxrs.contrib</require>
<extension target="org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent" point="importerConfiguration">
<importerConfig sourceNodeClass ="org.nuxeo.ecm.platform.importer.source.FileWithMetadataSourceNode" >
<bulkMode>false</bulkMode>
<documentModelFactory leafType="File" folderishType="Folder" documentModelFactoryClass="org.nuxeo.ecm.platform.importer.factories.DefaultDocumentModelFactory" />
<enablePerfLogging>true</enablePerfLogging>
</importerConfig>
</extension>
</component>

What do you think ?

0 votes

2 answers

177 views

ANSWER



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.

Regards,

Manon

0 votes



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

1 votes



Welcome back Benjamin !!! :)
01/24/2019

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.

Thanks.

03/25/2019