Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-18124

Possible NPE in MongoDBRepository init

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.4
    • Fix Version/s: 7.10
    • Component/s: Core MongoDB

      Description

      2015-10-12 02:35:40,674 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.core.repository.RepositoryServiceComponent notification of application started failed.
      java.lang.NullPointerException
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.bsonToState(MongoDBRepository.java:245)
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.findOne(MongoDBRepository.java:651)
      	at org.nuxeo.ecm.core.storage.mongodb.MongoDBRepository.readChildState(MongoDBRepository.java:544)
      	at org.nuxeo.ecm.core.storage.dbs.DBSTransactionState.getChildState(DBSTransactionState.java:232)
      	at org.nuxeo.ecm.core.storage.dbs.DBSSession.resolvePath(DBSSession.java:234)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.nuxeo.ecm.core.storage.dbs.DBSRepositoryBase$DBSSessionInvoker.invoke(DBSRepositoryBase.java:400)
      	at com.sun.proxy.$Proxy66.resolvePath(Unknown Source)
      	at org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:328)
      	at org.nuxeo.ecm.core.api.AbstractSession.exists(AbstractSession.java:794)
      	at org.nuxeo.ecm.core.management.storage.DocumentStoreManager.setupRootlet(DocumentStoreManager.java:126)
      	at org.nuxeo.ecm.core.management.storage.DocumentStoreManager.doInitializeRepository(DocumentStoreManager.java:89)
      	at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:86)
      	at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:84)
      	at org.nuxeo.ecm.core.repository.RepositoryInitializationHandler.initializeRepository(RepositoryInitializationHandler.java:84)
      	at org.nuxeo.ecm.core.repository.RepositoryService$3.run(RepositoryService.java:144)
      	at org.nuxeo.ecm.core.api.UnrestrictedSessionRunner.runUnrestricted(UnrestrictedSessionRunner.java:139)
      	at org.nuxeo.ecm.core.repository.RepositoryService.initializeRepository(RepositoryService.java:146)
      	at org.nuxeo.ecm.core.repository.RepositoryService.applicationStarted(RepositoryService.java:102)
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:325)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.notifyComponentsOnStarted(OSGiRuntimeService.java:480)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.fireApplicationStarted(OSGiRuntimeService.java:516)
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:526)
      	at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:232)
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:246)
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:126)
      	at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:118)
      

      Seen on CI :
      http://qa.nuxeo.org/jenkins/job/FT-nuxeo-master-bench-dm-tomcat-mongodb/52/artifact/nuxeo-distribution/nuxeo-distribution-cap-funkload-tests/target/tomcat/log/server.log

      This happens when the list has 2 elements and the first one is null.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: