-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Component/s: Tagging
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)