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

documentModelFactory part of importerConfig should be optional

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Importer

      Description

      We want to fix a NPE in DefaultImporterComponent which happens when there's no documentModelFactory defined in the contribution whereas all parameters are optional.

      Stack trace:

      ERROR [RegistrationInfoImpl] Failed to register extension to: service:org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent, xpoint: importerConfiguration in component: service:org.nuxeo.ecm.platform.importer.service.test.contrib
      java.lang.NullPointerException: null
      	at org.nuxeo.ecm.platform.importer.service.DefaultImporterComponent.registerContribution(DefaultImporterComponent.java:56) ~[classes/:?]
      	at org.nuxeo.runtime.model.DefaultComponent.registerExtension(DefaultComponent.java:73) ~[classes/:?]
      	at org.nuxeo.runtime.model.impl.ComponentInstanceImpl.registerExtension(ComponentInstanceImpl.java:215) ~[classes/:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.registerExtension(ComponentManagerImpl.java:421) ~[classes/:?]
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.activate(RegistrationInfoImpl.java:440) [classes/:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponent(ComponentManagerImpl.java:547) [classes/:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.activateComponents(ComponentManagerImpl.java:526) [classes/:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:786) [classes/:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:447) [classes/:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:462) [classes/:?]
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes
                  30m