-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: ADDONS_2021
-
Fix Version/s: ADDONS_2021
-
Component/s: Retention
The fix done in NXP-29080 is incomplete, it results in another NPE at nuxeo startup:
2021-07-06T15:59:24,019 WARN [Transaction] Unexpected exception from afterCompletion; continuing java.lang.NullPointerException: null at org.nuxeo.retention.listeners.RetentionDocumentEventListener.acceptEvent(RetentionDocumentEventListener.java:62) ~[nuxeo-retention-11.0.0-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventListenerDescriptor.filterBundle(EventListenerDescriptor.java:218) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.scheduleListeners(AsyncEventExecutor.java:107) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.run(AsyncEventExecutor.java:89) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEventBundle(EventServiceImpl.java:386) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.handleTxCommited(EventServiceImpl.java:528) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.afterCompletion(EventServiceImpl.java:507) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:559) ~[geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:552) ~[geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:335) ~[geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252) ~[geronimo-transaction-3.1.4.jar:3.1.4] at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.commit(NuxeoContainer.java:418) ~[nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:414) ~[nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:653) ~[nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:623) ~[nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.initRepositories(RepositoryService.java:161) ~[nuxeo-core-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.afterRuntimeStart(RepositoryService.java:104) ~[nuxeo-core-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.lambda$afterStart$7(ComponentManagerImpl.java:1354) ~[nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.lambda$safeLoop$10(ComponentManagerImpl.java:1368) ~[nuxeo-runtime-11.5-SNAPSHOT.jar:?] at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) ~[?:?] at java.util.ArrayList.forEach(ArrayList.java:1541) [?:?] at java.util.stream.SortedOps$RefSortingSink.end(SortedOps.java:395) [?:?] at java.util.stream.Sink$ChainedReference.end(Sink.java:258) [?:?] at java.util.stream.Sink$ChainedReference.end(Sink.java:258) [?:?] at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485) [?:?] at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) [?:?] at java.util.stream.StreamSpliterators$WrappingSpliterator.forEachRemaining(StreamSpliterators.java:312) [?:?] at java.util.stream.Streams$ConcatSpliterator.forEachRemaining(Streams.java:735) [?:?] at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:658) [?:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.safeLoop(ComponentManagerImpl.java:1366) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.afterStart(ComponentManagerImpl.java:1354) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:890) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:989) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:453) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:468) [nuxeo-runtime-11.5-SNAPSHOT.jar:?] at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:222) [nuxeo-runtime-osgi-11.5-SNAPSHOT.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225) [nuxeo-runtime-osgi-11.5-SNAPSHOT.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124) [nuxeo-runtime-osgi-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) [nuxeo-runtime-deploy-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-11.5-SNAPSHOT.jar:?] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4716) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.45] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.45] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:706) [catalina.jar:9.0.45] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689) [catalina.jar:9.0.45] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1881) [catalina.jar:9.0.45] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.45] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?] at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:582) [catalina.jar:9.0.45] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) [catalina.jar:9.0.45] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1611) [catalina.jar:9.0.45] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.45] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:843) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.45] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.45] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.45] at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util.jar:9.0.45] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.45] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.45] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.45] at org.apache.catalina.startup.Catalina.start(Catalina.java:772) [catalina.jar:9.0.45] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?] at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:342) [bootstrap.jar:9.0.45] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) [bootstrap.jar:9.0.45] 2021-07-06T15:59:24,097 WARN [Transaction] Unexpected exception from afterCompletion; continuing java.lang.NullPointerException: null at org.nuxeo.retention.listeners.RetentionDocumentEventListener.acceptEvent(RetentionDocumentEventListener.java:62) ~[nuxeo-retention-11.0.0-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventListenerDescriptor.filterBundle(EventListenerDescriptor.java:218) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.scheduleListeners(AsyncEventExecutor.java:107) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.AsyncEventExecutor.run(AsyncEventExecutor.java:89) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEventBundle(EventServiceImpl.java:386) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.handleTxCommited(EventServiceImpl.java:528) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.afterCompletion(EventServiceImpl.java:507) ~[nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:559) [geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionImpl.afterCompletion(TransactionImpl.java:552) [geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:335) [geronimo-transaction-3.1.4.jar:3.1.4] at org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:252) [geronimo-transaction-3.1.4.jar:3.1.4] at org.nuxeo.runtime.jtajca.NuxeoContainer$UserTransactionImpl.commit(NuxeoContainer.java:418) [nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.commitOrRollbackTransaction(TransactionHelper.java:414) [nuxeo-runtime-jtajca-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.runWorkWithTransaction(AbstractWork.java:562) [nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.work.AbstractWork.run(AbstractWork.java:385) [nuxeo-core-event-11.5-SNAPSHOT.jar:?] at org.nuxeo.ecm.core.work.WorkHolder.run(WorkHolder.java:57) [nuxeo-core-event-11.5-SNAPSHOT.jar:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?]
- is caused by
-
NXP-29080 Fix RetentionManager init
- Resolved
- Is referenced in