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

Fix mongodb error with AI core

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: NXP-10.3-SNAPSHOT
    • Fix Version/s: NXP-10.3
    • Component/s: AI Nuxeo Services
    • Tags:
    • Backlog priority:
      1,200
    • Sprint:
      nxAI Sprint 10.10.2
    • Story Points:
      3

      Description

      Reproduce

      • With AI AWS and Mongodb/redis
      • Start nuxeo server
        =!> error bellow
        =!> AI doesn't work
      2018-11-20T11:14:32,851 ERROR [ComponentManager] Component service:org.nuxeo.runtime.stream.service notification of application started failed: null
      java.lang.NullPointerException: null
      	at org.nuxeo.runtime.mongodb.MongoDBConnectionHelper.getDatabase(MongoDBConnectionHelper.java:159) ~[nuxeo-runtime-mongodb-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.mongodb.MongoDBComponent.getDatabase(MongoDBComponent.java:96) ~[nuxeo-runtime-mongodb-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.directory.mongodb.MongoDBSession.<init>(MongoDBSession.java:103) ~[nuxeo-platform-directory-mongodb-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.directory.mongodb.MongoDBDirectory.getSession(MongoDBDirectory.java:74) ~[nuxeo-platform-directory-mongodb-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.ecm.directory.DirectoryEntryResolver.fetch(DirectoryEntryResolver.java:164) ~[nuxeo-platform-directory-core-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.ecm.core.schema.types.resolver.AbstractObjectResolver.validate(AbstractObjectResolver.java:60) ~[nuxeo-core-schema-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.ai.services.AIComponent.initialize(AIComponent.java:121) ~[nuxeo-ai-core-2.0-I20181119_0355.jar:?]
      	at org.nuxeo.ai.services.AIComponent.getEnrichmentService(AIComponent.java:162) ~[nuxeo-ai-core-2.0-I20181119_0355.jar:?]
      	at org.nuxeo.ai.enrichment.EnrichingStreamProcessor.getTopology(EnrichingStreamProcessor.java:74) ~[nuxeo-ai-core-2.0-I20181119_0355.jar:?]
      	at org.nuxeo.runtime.stream.StreamServiceImpl.initProcessor(StreamServiceImpl.java:157) ~[nuxeo-runtime-stream-10.3-I20181119_0125.jar:?]
      	at java.util.ArrayList.forEach(ArrayList.java:1540) ~[?:?]
      	at org.nuxeo.runtime.stream.StreamServiceImpl.start(StreamServiceImpl.java:144) ~[nuxeo-runtime-stream-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:381) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:709) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:691) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:792) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:447) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:462) [nuxeo-runtime-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223) [nuxeo-runtime-osgi-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:225) [nuxeo-runtime-osgi-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:124) [nuxeo-runtime-osgi-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) [nuxeo-runtime-deploy-10.3-I20181119_0125.jar:?]
      	at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-10.3-I20181119_0125.jar:?]
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4643) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5109) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:703) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1840) [catalina.jar:9.0.12]
      	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.12]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:118) [?:?]
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:525) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:424) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1585) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:308) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:424) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:367) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:969) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:839) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) [catalina.jar:9.0.12]
      	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.12]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) [?:?]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:944) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:261) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:422) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.12]
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:770) [catalina.jar:9.0.12]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.12]
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:682) [catalina.jar:9.0.12]
      	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:350) [bootstrap.jar:9.0.12]
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) [bootstrap.jar:9.0.12]
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by javassist.util.proxy.SecurityActions (file:/Users/tiago/Nuxeo/Servers/nuxeo-server-10.3-I20181119_0125-tomcat/nxserver/lib/javassist-3.21.0-GA.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
      WARNING: Please consider reporting this to the maintainers of javassist.util.proxy.SecurityActions
      WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
      WARNING: All illegal access operations will be denied in a future release
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 days
                2d