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

Fix DocumentNotFoundException with BridgeTagService

    XMLWordPrintable

    Details

      Description

      A DocumentNotFoundException is raised when trying to get tags / untag  of a document that is deleted with the BridgeTagService :

      org.nuxeo.ecm.core.api.DocumentNotFoundException: db6f7ddb-ea4c-4849-9f78-2bb650cef754
      	at org.nuxeo.ecm.core.storage.sql.coremodel.SQLSession.getDocumentByUUID(SQLSession.java:188) ~[nuxeo-core-storage-sql-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:332) ~[nuxeo-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.api.AbstractSession.getDocument(AbstractSession.java:937) ~[nuxeo-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.FacetedTagService.doUntag(FacetedTagService.java:109) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.BridgeTagService.doUntag(BridgeTagService.java:83) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.AbstractTagService.lambda$untag$1(AbstractTagService.java:127) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.api.CoreInstance$4.run(CoreInstance.java:239) ~[nuxeo-core-api-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:117) ~[nuxeo-core-api-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.api.CoreInstance.doPrivileged(CoreInstance.java:241) ~[nuxeo-core-api-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.AbstractTagService.untag(AbstractTagService.java:126) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.AbstractTagService.removeTags(AbstractTagService.java:167) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.TaggedVersionListener.handleEvent(TaggedVersionListener.java:72) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.platform.tag.TaggedVersionListener.handleEvent(TaggedVersionListener.java:53) ~[nuxeo-platform-tag-core-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor$EventBundleRunner.call(PostCommitEventExecutor.java:251) [nuxeo-core-event-10.10-I20190113_2305.jar:?]
      	at org.nuxeo.ecm.core.event.impl.PostCommitEventExecutor$EventBundleRunner.call(PostCommitEventExecutor.java:210) [nuxeo-core-event-10.10-I20190113_2305.jar:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      

        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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h