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

Bundle containing a BundleTracker causes subsequent bundle install/starts to fail

    Details

      Description

      When installing/starting a bundle with a BundleTracker in it subsuquent bundle install/starts fail with the following exception.

      20:01:00,460 INFO [org.jboss.osgi.framework.internal.BundleManager] (MSC service thread 1-2) Install bundle: org.apache.aries.spifly.examples.spi.bundle:0.4.0.SNAPSHOT
      20:01:02,531 ERROR [org.jboss.osgi.framework.internal.FutureServiceValue] (MSC service thread 1-2) Cannot start service jbosgi.bundle.11.INSTALLED
      20:01:02,532 WARN [org.jboss.osgi.framework.internal.FrameworkEventsPlugin] (MSC service thread 1-2) Error while firing INSTALLED for bundleState: org.apache.aries.spifly.examples.spi.bundle:0.4.0.SNAPSHOT: java.lang.IllegalStateException: Timeout starting bundle service: service jbosgi.bundle.11.INSTALLED
      at org.jboss.osgi.framework.internal.BundleProxy.awaitBundleServiceActive(BundleProxy.java:231)
      at org.jboss.osgi.framework.internal.BundleProxy.getState(BundleProxy.java:101)
      at org.jboss.osgi.framework.internal.HostBundleProxy.getState(HostBundleProxy.java:39)
      at org.osgi.util.tracker.BundleTracker$Tracked.bundleChanged(BundleTracker.java:406)
      at org.jboss.osgi.framework.internal.FrameworkEventsPlugin.fireBundleEvent(FrameworkEventsPlugin.java:361)
      at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.java:198)
      at org.jboss.osgi.framework.internal.AbstractBundleState.changeState(AbstractBundleState.java:181)
      at org.jboss.osgi.framework.internal.UserBundleService.start(UserBundleService.java:65)
      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
      at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

        Gliffy Diagrams

          Attachments

            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: