Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-1408

WELD-1307 is breaking OSGi bundles stop process

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: OSGi support
    • Labels:
      None

      Description

      WELD-1307 is removing the bundle from managed map and then the stop task is checking if the bundle is in the map (in the following lines). stop management is then never executed and stop events are not sent as expected.
      This can be easily reproduced with the user guide http://docs.jboss.org/weld/reference/1.2.0.Beta1/weld-osgi/user-guide/html/ch02.html#d0e306 example : "Goodbye World!" is never printed

      at org.jboss.weld.environment.osgi.impl.integration.IntegrationActivator.stopManagement(IntegrationActivator.java:241)

                  if (future == null) {
                  final CDIContainer container = managed.remove(bundle.getBundleId());
      

      but the stop events are fired if

      if (started.get() && managed.containsKey(bundle.getBundleId())) {
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                sunix Sun Seng David TAN
                Reporter:
                sunix Sun Seng David TAN
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: