-
Type: Task
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 10.10-HF54, 2021.11
-
Component/s: Core
-
Release Notes Summary:The facet SystemDocument is added on core management documents.
-
Tags:
-
Team:PLATFORM
-
Sprint:nxplatform #47
-
Story Points:2
We faced the error below when a versioning policy will auto version the core management documents:
2021-08-05T20:57:48,923 WARN [DocumentModelStatusPersister] Unable to fetch status for service org.nuxeo.ecm.instance.availability in instance Linux-5fdb281ce217f3c395c9f08123080744-541919faa7dd4c486571a01a732ab0f1 2021-08-05T20:57:48,930 ERROR [ComponentManagerImpl] An error occurred during afterStart listener execution java.lang.NullPointerException: null at org.nuxeo.ecm.platform.web.common.admin.AdministrativeStatusListener.handleEvent(AdministrativeStatusListener.java:75) ~[nuxeo-platform-web-common-2021.3.2.jar:?] at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:126) ~[nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.services.event.EventService.sendEvent(EventService.java:100) ~[nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.statuses.RuntimeEventNotifier.notifyEvent(RuntimeEventNotifier.java:35) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.statuses.AdministrativeStatusManagerImpl.notifyEvent(AdministrativeStatusManagerImpl.java:78) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.statuses.AdministrativeStatusManagerImpl.notifyOnStatus(AdministrativeStatusManagerImpl.java:152) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.statuses.AdministrativeStatusManagerImpl.doNotifyAllStatuses(AdministrativeStatusManagerImpl.java:118) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.statuses.AdministrativeStatusManagerImpl.onNuxeoServerStartup(AdministrativeStatusManagerImpl.java:104) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.CoreManagementComponent.onNuxeoServerStartup(CoreManagementComponent.java:140) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.management.storage.DocumentStoreManager.doInitializeRepository(DocumentStoreManager.java:107) ~[nuxeo-core-management-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:92) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService$2.run(RepositoryService.java:226) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:123) ~[nuxeo-core-api-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:228) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.doInitRepositories(RepositoryService.java:210) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$4(TransactionHelper.java:623) ~[nuxeo-runtime-jtajca-2021.3.2.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:643) ~[nuxeo-runtime-jtajca-2021.3.2.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:623) ~[nuxeo-runtime-jtajca-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.initRepositories(RepositoryService.java:167) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService$1.afterStart(RepositoryService.java:103) ~[nuxeo-core-2021.3.2.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.lambda$afterStart$5(ComponentManagerImpl.java:1176) ~[nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.safeLoop(ComponentManagerImpl.java:1190) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.afterStart(ComponentManagerImpl.java:1176) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:744) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:841) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:453) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:468) [nuxeo-runtime-2021.3.2.jar:?] at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223) [nuxeo-runtime-osgi-2021.3.2.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225) [nuxeo-runtime-osgi-2021.3.2.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124) [nuxeo-runtime-osgi-2021.3.2.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) [nuxeo-runtime-deploy-2021.3.2.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-2021.3.2.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]
This is due to the way we retrieve such documents.
The query doesn't exclude the versions and the code returns null if there's no match or there's more than one document.
An additional action could be to add ecm:isVersion = 0 to the NXQL in DocumentModelStatusPersister.StatusFetcher.
- is related to
-
NXP-30287 Possible NPE in AdministrativeStatusListener preventing to start Nuxeo
- Resolved
- Is referenced in