-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 11.2
-
Component/s: Nuxeo Drive
-
Team:AT
-
Sprint:nxAT 11.1.24
-
Story Points:1
The following error can be seen at server startup when the drive package is installed. This happens when the drive template is not activated (as it is the one configuring the drive cache):
2020-09-03T16:11:43,928 ERROR [EventServiceImpl] Exception during nuxeoDriveCacheInvalidationListener sync listener execution, continuing to run other listeners java.lang.NullPointerException: null at org.nuxeo.drive.service.impl.NuxeoDriveManagerImpl.clearCache(NuxeoDriveManagerImpl.java:130) ~[nuxeo-drive-core-11.2.13.jar:?] at org.nuxeo.drive.service.impl.NuxeoDriveManagerImpl.handleFolderDeletion(NuxeoDriveManagerImpl.java:304) ~[nuxeo-drive-core-11.2.13.jar:?] at org.nuxeo.drive.listener.NuxeoDriveCacheInvalidationListener.handleEvent(NuxeoDriveCacheInvalidationListener.java:61) ~[nuxeo-drive-core-11.2.13.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:246) ~[nuxeo-core-event-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:287) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.setACP(AbstractSession.java:622) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.setACP(AbstractSession.java:604) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.setAcl(SimpleTemplateBasedFactory.java:94) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.createContentStructure(SimpleTemplateBasedFactory.java:55) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executeFactoryForType(ContentTemplateServiceImpl.java:154) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.listener.ContentCreationListener.handleEvent(ContentCreationListener.java:53) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:246) ~[nuxeo-core-event-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:287) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:770) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedFactory.createContentStructure(SimpleTemplateBasedFactory.java:66) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executeFactoryForType(ContentTemplateServiceImpl.java:154) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.listener.ContentCreationListener.handleEvent(ContentCreationListener.java:53) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:246) ~[nuxeo-core-event-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:287) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.api.AbstractSession.createDocument(AbstractSession.java:770) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.factories.SimpleTemplateBasedRootFactory.createContentStructure(SimpleTemplateBasedRootFactory.java:55) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.service.ContentTemplateServiceImpl.executeFactoryForType(ContentTemplateServiceImpl.java:154) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.platform.content.template.listener.RepositoryInitializationListener.doInitializeRepository(RepositoryInitializationListener.java:38) ~[nuxeo-platform-content-template-manager-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:93) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:91) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:91) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:91) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService$2.run(RepositoryService.java:159) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:123) ~[nuxeo-core-api-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:161) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.doInitRepositories(RepositoryService.java:143) ~[nuxeo-core-11.3.23.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.lambda$runInTransaction$5(TransactionHelper.java:580) ~[nuxeo-runtime-jtajca-11.3.23.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:600) [nuxeo-runtime-jtajca-11.3.23.jar:?] at org.nuxeo.runtime.transaction.TransactionHelper.runInTransaction(TransactionHelper.java:580) [nuxeo-runtime-jtajca-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService.initRepositories(RepositoryService.java:100) [nuxeo-core-11.3.23.jar:?] at org.nuxeo.ecm.core.repository.RepositoryService$1.afterStart(RepositoryService.java:78) [nuxeo-core-11.3.23.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl$Listeners.afterStart(ComponentManagerImpl.java:1178) [nuxeo-runtime-11.3.23.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:735) [nuxeo-runtime-11.3.23.jar:?] at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:832) [nuxeo-runtime-11.3.23.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:453) [nuxeo-runtime-11.3.23.jar:?] at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:468) [nuxeo-runtime-11.3.23.jar:?] at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223) [nuxeo-runtime-osgi-11.3.23.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225) [nuxeo-runtime-osgi-11.3.23.jar:?] at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124) [nuxeo-runtime-osgi-11.3.23.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) [nuxeo-runtime-deploy-11.3.23.jar:?] at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-11.3.23.jar:?] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4678) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5139) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:717) [catalina.jar:9.0.37] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705) [catalina.jar:9.0.37] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631) [catalina.jar:9.0.37] at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1830) [catalina.jar:9.0.37] 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.37] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?] at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526) [catalina.jar:9.0.37] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425) [catalina.jar:9.0.37] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576) [catalina.jar:9.0.37] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.37] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:936) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) [catalina.jar:9.0.37] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) [catalina.jar:9.0.37] 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.37] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.37] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.37] at org.apache.catalina.startup.Catalina.start(Catalina.java:738) [catalina.jar:9.0.37] 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.37] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:473) [bootstrap.jar:9.0.37]
Exception is triggered by an event listener while the framework is starting: the drive cache has not been initialized yet, hence the NPE.
- is related to
-
NXP-29371 Automate explorer reference export
- Resolved
- Is referenced in