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

Random error in startup: ServiceFactory.getService() resulted in a cycle

    Details

      Description

      The following error is frequently seen during IDM startup when kerberos DB2 was used as the repo.

      SEVERE: Bundle: org.forgerock.openidm.audit [138] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.ServiceException: ServiceFactory.getService() resulted in a cycle.
              at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:301)
              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.inject.BindMethod.getServiceObject(BindMethod.java:648)
              at org.apache.felix.scr.impl.manager.DependencyManager.getServiceObject(DependencyManager.java:2201)
              at org.apache.felix.scr.impl.manager.DependencyManager$SingleStaticCustomizer.prebind(DependencyManager.java:1118)
              at org.apache.felix.scr.impl.manager.DependencyManager.prebind(DependencyManager.java:1520)
              at org.apache.felix.scr.impl.manager.AbstractComponentManager.collectDependencies(AbstractComponentManager.java:1005)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getServiceInternal(SingleComponentManager.java:859)
              at org.apache.felix.scr.impl.manager.SingleComponentManager.getService(SingleComponentManager.java:823)
              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)
      ...
      Oct 31, 2016 6:27:43 PM org.forgerock.openidm.info.impl.HealthService$1 frameworkEvent
      FINE: Handle framework event 2 org.osgi.framework.FrameworkEvent[source=org.forgerock.openidm.api-servlet [40]]
      Oct 31, 2016 6:27:43 PM org.forgerock.openidm.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.api-servlet [40] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null. (Component: org.forgerock.openidm.audit.filter (21))
              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)
      ...
      

      Note: IDM eventually reached ready state.

      The complete log is attached.
      To reproduce: Run any QA test with Kerberos DB2 as repo and check IDM log file, for example:
      python -u run-pybot.py -s info_service -t info_service_ping 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: