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

OSGi services might throw errors on startup in cluster mode

    Details

    • Target Version/s:
    • Story Points:
      2
    • Sprint:
      2020.12 - IDM

      Description

      Occasionally the cluster tests fail with errors which seems to be related to OSGi service initialization.

      These errors happen on the 2nd node.

      [29] Aug 05, 2020 11:21:20.604 AM org.forgerock.openidm.config.logging.LogServiceTracker logEntry
      WARNING: Bundle: org.forgerock.openidm.router [102] bundle org.forgerock.openidm.router:7.0.0.SNAPSHOT (102)[org.forgerock.openidm.router.service(60)] : Could not get service from ref [org.forgerock.json.resource.CollectionResourceProvider]
      [29] Aug 05, 2020 11:21:20.606 AM org.forgerock.openidm.config.logging.LogServiceTracker logEntry
      WARNING: Bundle: org.forgerock.openidm.router [102] bundle org.forgerock.openidm.router:7.0.0.SNAPSHOT (102)[org.forgerock.openidm.router.service(60)] : DependencyManager : invokeBindMethod : Service not available from service registry for ServiceReference [org.forgerock.json.resource.CollectionResourceProvider] for reference CollectionResourceProvider
      [14] Aug 05, 2020 11:21:20.606 AM org.forgerock.openidm.health.HealthService$1 frameworkEvent
      FINE: Handle framework event 2 org.osgi.framework.FrameworkEvent[source=org.forgerock.openidm.router [102]]
      [21] Aug 05, 2020 11:21:20.606 AM org.forgerock.openidm.health.HealthService$2 serviceChanged
      FINE: Handle service event 1 org.osgi.framework.ServiceEvent[source=[org.forgerock.json.resource.CollectionResourceProvider]]
      [29] Aug 05, 2020 11:21:20.606 AM org.forgerock.openidm.config.logging.LogServiceTracker logEntry
      SEVERE: Bundle: org.forgerock.openidm.router [102] FrameworkEvent ERROR
      org.apache.felix.log.LogException: org.osgi.framework.ServiceException: Service factory returned null. (Component: org.forgerock.openidm.recon.assoc.entry (130))
      	at org.apache.felix.framework.ServiceRegistrationImpl.getFactoryUnchecked(ServiceRegistrationImpl.java:381)
      	at org.apache.felix.framework.ServiceRegistrationImpl.getService(ServiceRegistrationImpl.java:248)
      	at org.apache.felix.framework.ServiceRegistry.getService(ServiceRegistry.java:350)
      	at org.apache.felix.framework.Felix.getService(Felix.java:3954)
      	at org.apache.felix.framework.BundleContextImpl.getService(BundleContextImpl.java:450)
      	at org.apache.felix.scr.impl.manager.SingleRefPair.getServiceObject(SingleRefPair.java:86)
      

      for full stack trace please see the attached log.

      To reproduce:
      The issue seems really random, thus I'm not able to give exact steps to reproduce. The tests can by run by
      ./run-pybot.py -s cluster.advanced_configuration.NodeGracefulShutdown

        Attachments

          Activity

            People

            • Assignee:
              ben.apple Ben Apple
              Reporter:
              Ladislav.Folta Ladislav Folta
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: