Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-9343

osgi-pluginmanager: Jersey REST services not loading reliably in Karaf 4

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 20.0.0
    • Fix Version/s: 20.0.0
    • Component/s: OSGi
    • Security Level: Default (Default Security Scheme)
    • Labels:
      None
    • Sprint:
      Horizon - May 10th

      Description

      On Bamboo and on my local machine, the Jersey REST services inside osgi-pluginmanager sometimes (>50%) fail to load, especially on startup into a clean Karaf container where the Jersey JARs have never been installed.

      This is caused by a race condition between the jersey-server JAR being "Started" by the Karaf container and then the featuremanager, licencemanager, and pluginmanager REST services being started by the blueprint extender. If the REST services inside the blueprint.xmls attempt to start first, then they throw exceptions and fail to register in our OSGi HTTP bridge service, leading to 404s when trying to access them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                seth Seth Leger
                Reporter:
                seth Seth Leger
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: