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

Random error in startup: Circular reference detected, getService returning null

    Details

    • Target Version/s:
    • Story Points:
      3
    • Sprint:
      OpenIDM Sprint 68

      Description

      From time to time, still see the following random error during IDM startup, don't see immediate impact from the error so far, this might be related to OPENIDM-6656, since 6656 has more immediate symptoms with other errors, so separate ticket for this error:

      SEVERE: Bundle: org.forgerock.openidm.audit [64] [org.forgerock.openidm.audit.filter(13)] Circular reference detected, getService returning null
      Oct 10, 2016 8:51:42 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.api-servlet [157] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null. (Component: org.forgerock.openidm.audit.filter (13))
              at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:380)
              at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
              at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344)
              at org.apache.felix.framework.Felix.getService(Felix.java:3699)
              at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
              at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)
              at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:646)
              at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2137)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleDynamicCustomizer.prebind(DependencyManager.java:872)
              at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1457)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:983)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:774)
              at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
              at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
              at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344)
              at org.apache.felix.framework.Felix.getService(Felix.java:3699)
              at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
              at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)
              at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:646)
              at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2137)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1048)
              at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1457)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:983)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:774)
              at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:347)
              at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:247)
              at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:344)at org.apache.felix.framework.Felix.getService(Felix.java:3699)
              at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:470)
              at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:72)
              at org.apache.felix.scr.impl.helper.BindMethod.getServiceObject(BindMethod.java:646)
              at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2137)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1048)
              at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1457)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:983)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:812)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:724)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:954)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:915)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
              at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991)
              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839)
              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546)
              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557)
              at org.apache.felix.framework.Felix.registerService(Felix.java:3549)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
              at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:954)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:915)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
              at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991)
              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839)
              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546)
              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557)
      at org.apache.felix.framework.Felix.registerService(Felix.java:3549)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:869)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.register(AbstractComponentManager.java:857)
              at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:133)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.registerService(AbstractComponentManager.java:915)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.activateInternal(AbstractComponentManager.java:715)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:954)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.addedService(DependencyManager.java:915)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1215)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.customizerAdded(ServiceTracker.java:1136)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.trackAdding(ServiceTracker.java:945)
              at org.apache.felix.scr.impl.manager.ServiceTracker$AbstractTracked.track(ServiceTracker.java:881)
              at org.apache.felix.scr.impl.manager.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:1167)
              at org.apache.felix.scr.impl.BundleComponentActivator$ListenerInfo.serviceChanged(BundleComponentActivator.java:120)
              at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:991)
              at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:839)
              at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:546)
              at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4557)
              at org.apache.felix.framework.Felix.registerService(Felix.java:3549)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:348)
              at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:355)
              at org.forgerock.openidm.router.Activator.start(Activator.java:60)
              at org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:697)
              at org.apache.felix.framework.Felix.activateBundle(Felix.java:2226)
              at org.apache.felix.framework.Felix.startBundle(Felix.java:2144)
              at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1371)
              at org.apache.felix.framework.FrameworkStartLevelImpl.run(FrameworkStartLevelImpl.java:308)
              at java.lang.Thread.run(Thread.java:745)
      
      Oct 10, 2016 8:51:42 PM org.forgerock.openidm.servlet.internal.ServletConnectionFactory activate
      INFO: Servlet ConnectionFactory created.
      

      It's seen in stress managed user registration test from time to time, so the test might be used to reproduce the issue.
      python -u run-pybot.py -c stress -i gatling -s idm.ManUsersSelfRegistration OpenIDM

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brmiller Brendan Miller
                Reporter:
                Tinghua.Xu Tinghua Xu
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: