Uploaded image for project: 'Nuxeo AI Core'
  1. Nuxeo AI Core
  2. AICORE-580

Nuxeo AI addon not compatible with 2021-HF27

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.5.1
    • Fix Version/s: 3.5.2
    • Component/s: AI Nuxeo Services

      Description

      Typically, nuxeo server doesn't even start when having WOPI and AI addon installed:

      2022-10-15T02:07:50,416 ERROR [main] [org.nuxeo.runtime.deployment.NuxeoStarter] Exception during startup
      java.lang.NoSuchMethodError: 'com.fasterxml.jackson.databind.cfg.MutableCoercionConfig com.fasterxml.jackson.dataformat.xml.XmlMapper.coercionConfigDefaults()'
       at com.fasterxml.jackson.dataformat.xml.XmlMapper.<init>(XmlMapper.java:176) ~[jackson-dataformat-xml-2.12.7.jar:2.12.7]
       at com.fasterxml.jackson.dataformat.xml.XmlMapper.<init>(XmlMapper.java:145) ~[jackson-dataformat-xml-2.12.7.jar:2.12.7]
       at com.fasterxml.jackson.dataformat.xml.XmlMapper.<init>(XmlMapper.java:127) ~[jackson-dataformat-xml-2.12.7.jar:2.12.7]
       at org.nuxeo.wopi.WOPIDiscovery.<clinit>(WOPIDiscovery.java:62) ~[nuxeo-wopi-2021.27.13.jar:?]
       at org.nuxeo.wopi.WOPIServiceImpl.loadDiscovery(WOPIServiceImpl.java:139) ~[nuxeo-wopi-2021.27.13.jar:?]
       at org.nuxeo.wopi.WOPIServiceImpl.loadDiscovery(WOPIServiceImpl.java:131) ~[nuxeo-wopi-2021.27.13.jar:?]
       at org.nuxeo.wopi.WOPIServiceImpl.start(WOPIServiceImpl.java:106) ~[nuxeo-wopi-2021.27.13.jar:?]
       at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:372) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:758) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:740) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:841) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:470) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:485) ~[nuxeo-runtime-2021.27.13.jar:?]
       at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223) ~[nuxeo-runtime-osgi-2021.27.13.jar:?]
       at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:226) ~[nuxeo-runtime-osgi-2021.27.13.jar:?]
       at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125) ~[nuxeo-runtime-osgi-2021.27.13.jar:?]
       at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) ~[nuxeo-runtime-deploy-2021.27.13.jar:?]
       at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-2021.27.13.jar:?]
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4769) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5231) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.67]
       at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726) [catalina.jar:9.0.67]
       at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:698) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:696) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:690) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1889) [catalina.jar:9.0.67]
       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.67]
       at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?]
       at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:583) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:473) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1618) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:319) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.67]
       at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:946) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:835) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.67]
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396) [catalina.jar:9.0.67]
       at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386) [catalina.jar:9.0.67]
       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.67]
       at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
       at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.67]
       at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) [catalina.jar:9.0.67]
       at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.67]
       at org.apache.catalina.startup.Catalina.start(Catalina.java:772) [catalina.jar:9.0.67]
       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:345) [bootstrap.jar:9.0.67]
       at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476) [bootstrap.jar:9.0.67]
      

      Because AI addon has an explicit dependency on Jackson 2.10.2 (https://github.com/nuxeo/nuxeo-ai/blob/v3.5.1/pom.xml#L29) while we upgraded the platform version to 2.12.7 (https://github.com/nuxeo/nuxeo-lts/commit/44eaf973b72c720e5795a3a56748960a361c1e46#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R106).

      As a direct result, we end up with Jackson jar in both versions in the classpath

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: