-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 9.10
-
Fix Version/s: 9.10-HF31, 10.10-HF05, 11.1, 2021.0
-
Component/s: Core
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.
- is required by
-
NXP-28550 Fix test testProxyOnNullTarget on DBS
- Resolved