Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-4388

repo/scheduler not found exception, when Oracle DB is the repo

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: OpenIDM 4.0.0
    • Fix Version/s: OpenIDM 4.5.0
    • Component/s: Module - Scheduler
    • Environment:
      OpenIDM recent builds (checked 671, 675 and 676) with OrientDB as repo
    • Target Version/s:
    • Story Points:
      5
    • Sprint:
      OpenIDM Sprint 52, OpenIDM Sprint 55

      Description

      Brendan noticed the issue initially and it was reproducible. When starting OpenIDM with recent builds, intermittently see the following error and the startup would fail.

      Executing ./startup.sh...
      Using OPENIDM_HOME:   /home/testuser/Downloads/openidm
      Using PROJECT_HOME:   /home/testuser/Downloads/openidm
      Using OPENIDM_OPTS:   -Xmx1024m -Xms1024m
      Using LOGGING_CONFIG: -Djava.util.logging.config.file=/home/testuser/Downloads/openidm/conf/logging.properties
      Using boot properties at /home/testuser/Downloads/openidm/conf/boot/boot.properties
      -> Error getting trigger group names
      org.forgerock.json.resource.NotFoundException: Resource 'repo/scheduler' not found
      	at org.forgerock.json.resource.Router.getBestMatch(Router.java:224)
      	at org.forgerock.json.resource.Router.handleCreate(Router.java:250)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:69)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter$2.apply(ScriptedFilter.java:96)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter$2.apply(ScriptedFilter.java:93)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:200)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:184)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter.filterResourceResponseRequest(ScriptedFilter.java:167)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter.filterCreate(ScriptedFilter.java:92)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.audit.filter.AuditFilter.filterCreate(AuditFilter.java:106)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$5.filterCreate(ServletConnectionFactory.java:494)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.maintenance.impl.PassthroughFilter.filterCreate(PassthroughFilter.java:48)
      	at org.forgerock.openidm.maintenance.impl.MaintenanceService.filterCreate(MaintenanceService.java:229)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:213)
      	at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:44)
      	at org.forgerock.json.resource.AbstractAsynchronousConnection.create(AbstractAsynchronousConnection.java:44)
      	at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:96)
      	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.create(ServletConnectionFactory.java:175)
      	at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:96)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.getOrCreateRepoList(RepoJobStore.java:2041)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.getTriggerGroupNames(RepoJobStore.java:826)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.cleanUpInstance(RepoJobStore.java:2195)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.initialize(RepoJobStore.java:168)
      	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1318)
      	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1509)
      	at org.forgerock.openidm.scheduler.SchedulerService.createPersistentScheduler(SchedulerService.java:703)
      	at org.forgerock.openidm.scheduler.SchedulerService.initPersistentScheduler(SchedulerService.java:695)
      	at org.forgerock.openidm.scheduler.SchedulerService.activate(SchedulerService.java:207)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
      	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.reconfigure(ImmediateComponentManager.java:398)
      	at org.apache.felix.scr.impl.config.ConfiguredComponentHolder.configurationUpdated(ConfiguredComponentHolder.java:201)
      	at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.configurationEvent(ConfigurationComponentRegistry.java:277)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
      	at java.lang.Thread.run(Unknown Source)
      Error initializing RepoJobStore
      org.quartz.JobPersistenceException: Error getting trigger group names [See nested exception: org.forgerock.json.resource.NotFoundException: Resource 'repo/scheduler' not found]
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.getTriggerGroupNames(RepoJobStore.java:829)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.cleanUpInstance(RepoJobStore.java:2195)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.initialize(RepoJobStore.java:168)
      	at org.quartz.impl.StdSchedulerFactory.instantiate(StdSchedulerFactory.java:1318)
      	at org.quartz.impl.StdSchedulerFactory.getScheduler(StdSchedulerFactory.java:1509)
      	at org.forgerock.openidm.scheduler.SchedulerService.createPersistentScheduler(SchedulerService.java:703)
      	at org.forgerock.openidm.scheduler.SchedulerService.initPersistentScheduler(SchedulerService.java:695)
      	at org.forgerock.openidm.scheduler.SchedulerService.activate(SchedulerService.java:207)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      	at java.lang.reflect.Method.invoke(Unknown Source)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invokeMethod(BaseMethod.java:227)
      	at org.apache.felix.scr.impl.helper.BaseMethod.access$500(BaseMethod.java:38)
      	at org.apache.felix.scr.impl.helper.BaseMethod$Resolved.invoke(BaseMethod.java:591)
      	at org.apache.felix.scr.impl.helper.BaseMethod.invoke(BaseMethod.java:472)
      	at org.apache.felix.scr.impl.helper.ActivateMethod.invoke(ActivateMethod.java:146)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createImplementationObject(ImmediateComponentManager.java:226)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.createComponent(ImmediateComponentManager.java:118)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:997)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceAdded(DependencyManager.java:283)
      	at org.apache.felix.scr.impl.manager.DependencyManager.serviceChanged(DependencyManager.java:170)
      	at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:932)
      	at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:793)
      	at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:543)
      	at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4419)
      	at org.apache.felix.framework.Felix.registerService(Felix.java:3423)
      	at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:449)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerComponentService(AbstractComponentManager.java:460)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager$Unsatisfied.activate(AbstractComponentManager.java:1009)
      	at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:333)
      	at org.apache.felix.scr.impl.manager.ImmediateComponentManager.reconfigure(ImmediateComponentManager.java:398)
      	at org.apache.felix.scr.impl.config.ConfiguredComponentHolder.configurationUpdated(ConfiguredComponentHolder.java:201)
      	at org.apache.felix.scr.impl.config.ConfigurationComponentRegistry.configurationEvent(ConfigurationComponentRegistry.java:277)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.sendEvent(ConfigurationManager.java:2032)
      	at org.apache.felix.cm.impl.ConfigurationManager$FireConfigurationEvent.run(ConfigurationManager.java:2002)
      	at org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)
      	at java.lang.Thread.run(Unknown Source)
      Caused by: org.forgerock.json.resource.NotFoundException: Resource 'repo/scheduler' not found
      	at org.forgerock.json.resource.Router.getBestMatch(Router.java:224)
      	at org.forgerock.json.resource.Router.handleCreate(Router.java:250)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:69)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:62)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter$2.apply(ScriptedFilter.java:96)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter$2.apply(ScriptedFilter.java:93)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:200)
      	at org.forgerock.util.promise.Promises$CompletedPromise.thenAsync(Promises.java:184)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter.filterResourceResponseRequest(ScriptedFilter.java:167)
      	at org.forgerock.openidm.servlet.internal.ScriptedFilter.filterCreate(ScriptedFilter.java:92)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.audit.filter.AuditFilter.filterCreate(AuditFilter.java:106)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$5.filterCreate(ServletConnectionFactory.java:494)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.openidm.maintenance.impl.PassthroughFilter.filterCreate(PassthroughFilter.java:48)
      	at org.forgerock.openidm.maintenance.impl.MaintenanceService.filterCreate(MaintenanceService.java:229)
      	at org.forgerock.json.resource.Filters$ConditionalFilter.filterCreate(Filters.java:60)
      	at org.forgerock.json.resource.FilterChain$Cursor.handleCreate(FilterChain.java:67)
      	at org.forgerock.json.resource.FilterChain.handleCreate(FilterChain.java:213)
      	at org.forgerock.json.resource.InternalConnection.createAsync(InternalConnection.java:44)
      	at org.forgerock.json.resource.AbstractAsynchronousConnection.create(AbstractAsynchronousConnection.java:44)
      	at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:96)
      	at org.forgerock.openidm.servlet.internal.ServletConnectionFactory$1$1.create(ServletConnectionFactory.java:175)
      	at org.forgerock.json.resource.AbstractConnectionWrapper.create(AbstractConnectionWrapper.java:96)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.getOrCreateRepoList(RepoJobStore.java:2041)
      	at org.forgerock.openidm.quartz.impl.RepoJobStore.getTriggerGroupNames(RepoJobStore.java:826)
      	... 51 more
      OpenIDM ready
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dhogan Dirk Hogan
                Reporter:
                Tinghua.Xu Tinghua.Xu
                QA Assignee:
                Tinghua.Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: