Uploaded image for project: 'JBoss OSGi'
  1. JBoss OSGi
  2. JBOSGI-465

Framework sets service mode while Container is shutting down

    Details

    • Steps to Reproduce:
      Hide

      Start AS7
      Deploy a bundle
      Press Ctrl-C

      Show
      Start AS7 Deploy a bundle Press Ctrl-C

      Description

      When stopping AS7 with OSGi enabled, a number of exceptions appear.

      09:06:24,683 ERROR [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] Framework ERROR: org.osgi.framework.BundleException: Error stopping bundle: jboss-osgi-jmx:1.0.10 bundle: jboss-osgi-jmx:1.0.10
      	at org.jboss.osgi.framework.internal.BundleManager.fireFrameworkError(BundleManager.java:518)
      	at org.jboss.osgi.framework.internal.BundleManager.uninstallBundle(BundleManager.java:443)
      	at org.jboss.osgi.framework.internal.UserBundleInstalledService.stop(UserBundleInstalledService.java:88)
      	at org.jboss.msc.service.ServiceControllerImpl$StopTask.run(ServiceControllerImpl.java:1869)
      	at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]
      	at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
      Caused by: java.lang.IllegalArgumentException: Container is shutting down
      	at org.jboss.msc.service.ServiceControllerImpl.internalSetMode(ServiceControllerImpl.java:714)
      	at org.jboss.msc.service.ServiceControllerImpl.setMode(ServiceControllerImpl.java:705)
      	at org.jboss.osgi.framework.internal.HostBundleState.stopInternal(HostBundleState.java:416)
      	at org.jboss.osgi.framework.internal.BundleManager.uninstallBundle(BundleManager.java:439)
      	... 6 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  thomas.diesler Thomas Diesler
                  Reporter:
                  bosschaert David Bosschaert
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: