Cannot deploy : NuxeoCmisContextListener.activate

Hello,

I have the following stacktrace on starting Nuxeo 10.10 on unbuntu, was working fine before the stop, and now cannot restart.

SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.nuxeo.ecm.core.opencmis.bindings.ContextListenerDelayer]

2020-05-21 19:04:12.795 SEVERE [main] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.nuxeo.ecm.core.opencmis.bindings.ContextListenerDelayer]
 java.lang.NullPointerException
    at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisContextListener.activate(NuxeoCmisContextListener.java:63)
    at org.nuxeo.ecm.core.opencmis.bindings.NuxeoCmisContextListener.contextInitialized(NuxeoCmisContextListener.java:57)
    at org.nuxeo.ecm.core.opencmis.bindings.ContextListenerDelayer.contextInitialized(ContextListenerDelayer.java:83)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4663)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5131)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:631)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1832)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:514)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:526)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:425)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1577)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309)
    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
    at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424)
    at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:934)
    at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1382)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1372)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
    at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
    at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140)
    at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:907)
    at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:933)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:637)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.base/java.lang.reflect.Method.invoke(Method.java:564)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)

If i go to source code, i found this, but this do not help much. Any help appreciated !

061    protected void activate(final ServletContextEvent sce) {
062        NuxeoCmisServiceFactoryManager manager = Framework.getService(NuxeoCmisServiceFactoryManager.class);
063        CmisServiceFactory factory = manager.getNuxeoCmisServiceFactory();
064        sce.getServletContext().setAttribute(CmisRepositoryContextListener.SERVICES_FACTORY, factory);
065    }
0 votes

2 answers

66 views

ANSWER



Hello, thanks for your answer.

The jar is present in nexserver/bundle (nuxeo-opencmis-impl-10.10.jar).

0 votes



Hello,

if nuxeo is giving a NullPointerException in line 63, it seems to be because the NuxeoCmisServiceFactoryManager service cannot be retrieved. According to nuxeo explorer, this class is part of the nuxeo-opencmis-binding bundle: https://explorer.nuxeo.com/nuxeo/site/distribution/Nuxeo%20Platform-6.0/viewBundle/org.nuxeo.ecm.core.opencmis.bindings

Check then if you have that bundle in the ${NUXEO_HOME}/nxserver/bundles. It should be named nuxeo-opencmis-bindings-10.10.jar.

Regards.

0 votes