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

NPE on accessing proxy without source document

    Details

    • Release Notes Summary:
      A proxy without a source document can be reindexed.
    • Tags:
    • Backlog priority:
      700
    • Sprint:
      nxcore 11.1.7
    • Story Points:
      3

      Description

      This NPE has been observed during re-indexing on a 9.10

      java.lang.NullPointerException
      	at org.nuxeo.ecm.core.api.DocumentModelFactory.createDocumentModel(DocumentModelFactory.java:89)
      	at org.nuxeo.ecm.core.api.AbstractSession.readModel(AbstractSession.java:355)
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1187)
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1115)
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1108)
      	at org.nuxeo.ecm.core.api.AbstractSession.query(AbstractSession.java:1088)
      	at org.nuxeo.elasticsearch.work.BucketIndexingWorker.fetchDocuments(BucketIndexingWorker.java:118)
      	at org.nuxeo.elasticsearch.work.BucketIndexingWorker.getIndexingCommands(BucketIndexingWorker.java:98)
      	at org.nuxeo.elasticsearch.work.BucketIndexingWorker.doWork(BucketIndexingWorker.java:78)
      	at org.nuxeo.elasticsearch.work.BaseIndexingWorker.work(BaseIndexingWorker.java:48)
      	at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:435)
      	at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:355)
      	at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:748) 

      The NPE is on:

               boolean immutable = doc.isVersion() || (doc.isProxy() && sourceDoc.isVersion());
      

      For sure doc is not null, this means that having a proxy document without sourceDoc is possible and this proxy cannot be loaded.

      This prevent to re-index the repository and to have index in sync with the repository.

       

        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 - 1 day, 4 hours
                  1d 4h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.