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

Fix IllegalArgumentException in TagsRelationsToFacetsMigrator

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF23, 10.3
    • Component/s: Tagging
    • Release Notes Summary:
      The Tags Migrator handles null document Ids to avoid an IllegalArgumentException during tag migration.
    • Backlog priority:
      400
    • Sprint:
      nxsupport 10.3.4, nxsupport 10.10.1
    • Story Points:
      1

      Description

      Customer gets the following exception, which stops the tag migration

      ERROR [Nuxeo-Migrator-tag-storage] [org.nuxeo.runtime.migration.MigrationServiceImpl] Exception during execution of step: relations-to-facets for migration: tag-storage
      java.lang.IllegalArgumentException: null reference
              at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:333)
              at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:945)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.addTags(TagsRelationsToFacetsMigrator.java:219)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.lambda$migrateSession$4(TagsRelationsToFacetsMigrator.java:198)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.processBatched(TagsRelationsToFacetsMigrator.java:265)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.migrateSession(TagsRelationsToFacetsMigrator.java:198)
              at org.nuxeo.ecm.core.api.CoreInstance$3.run(CoreInstance.java:311)
              at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:131)
              at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:313)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.lambda$migrateRepository$0(TagsRelationsToFacetsMigrator.java:161)
              at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$3(TransactionHelper.java:569)
              at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:589)
              at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:569)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.migrateRepository(TagsRelationsToFacetsMigrator.java:161)
              at java.util.ArrayList.forEach(ArrayList.java:1257)
              at org.nuxeo.ecm.platform.tag.TagsRelationsToFacetsMigrator.run(TagsRelationsToFacetsMigrator.java:143)
              at org.nuxeo.runtime.migration.MigrationServiceImpl.lambda$runStep$1(MigrationServiceImpl.java:480)
              at org.nuxeo.runtime.migration.MigrationServiceImpl$MigratorWithContext.run(MigrationServiceImpl.java:311)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

      Expected outcome: The migration of tags should proceed and swallow the IllegalArgumentException

      (The root cause of the null document reference is unknown)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1 day, 4 hours, 50 minutes
                1d 4h 50m