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

SchedulerService may fail to start when launching multiple nodes simultaneously

    XMLWordPrintable

    Details

      Description

      On December 8, 2018 we launched at least 3 Nuxeo nodes around 6:27:58 AM UTC+1.

      We end up with the following stacktrace:

      2018-12-08 05:33:40,286 ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.core.scheduler.SchedulerService notification of appl
      ication started failed: null
      java.lang.NullPointerException
              at com.novemberain.quartz.mongodb.util.Keys.toFilter(Keys.java:58)
              at com.novemberain.quartz.mongodb.dao.JobDao.getJob(JobDao.java:69)
              at com.novemberain.quartz.mongodb.TriggerAndJobPersister.getTriggersForJob(TriggerAndJobPersister.java:35)                                                                           
              at com.novemberain.quartz.mongodb.MongoDBJobStore.getTriggersForJob(MongoDBJobStore.java:321)                                                                                        
              at org.quartz.core.QuartzScheduler.getTriggersOfJob(QuartzScheduler.java:1476)
              at org.quartz.core.QuartzScheduler.deleteJob(QuartzScheduler.java:989)
              at org.quartz.impl.StdScheduler.deleteJob(StdScheduler.java:301)
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.unschedule(SchedulerServiceImpl.java:264)                                                                                       
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.unregisterSchedule(SchedulerServiceImpl.java:259)                                                                               
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.schedule(SchedulerServiceImpl.java:235)                                                                                         
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.registerSchedule(SchedulerServiceImpl.java:198)                                                                                 
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.registerSchedule(SchedulerServiceImpl.java:187)                                                                                 
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.setupScheduler(SchedulerServiceImpl.java:116)                                                                                   
              at org.nuxeo.ecm.core.scheduler.SchedulerServiceImpl.start(SchedulerServiceImpl.java:146)                                                                                            
              at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:382)                                                                                            
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:710)                                                                                   
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:690)                                                                                  
              at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:793)                                                                                            
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:460)                                                                                            
              at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:475)                                                                                             
              at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:223)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:226)
              at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:125)
              at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124)
              at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
              at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
              at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
              at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
              at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
              at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 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 - 30 minutes
                  30m

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.