Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-1888

IllegalStateException when deploying & starting a bundle through web console

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 7.1.0.Beta1
    • None
    • OSGi
    • None

      When installing a bundle through the web console and ticking the start tickbox as well, it often generates an exception (see below). It is probably related to the fact that if you don't select the start tickbox, the bundle gets started anyway. With the tickbox enabled it seems like the system is trying to start the bundle twice concurrently.

      org.apache.felix.log.LogException: org.osgi.framework.BundleException: Cannot start bundle: exporting-bundle:0.0.0
      at org.jboss.osgi.container.bundle.HostBundle.startInternal(HostBundle.java:239)
      at org.jboss.osgi.container.bundle.AbstractBundle.start(AbstractBundle.java:478)
      at org.jboss.osgi.container.plugin.internal.StartLevelPluginImpl$3.run(StartLevelPluginImpl.java:162)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalStateException: BundleContext already available
      at org.jboss.osgi.container.bundle.AbstractBundle.createBundleContext(AbstractBundle.java:170)
      at org.jboss.osgi.container.bundle.HostBundle.startInternal(HostBundle.java:179)
      ... 5 more

            dhildenb@redhat.com David Hildenbrand
            dhildenb@redhat.com David Hildenbrand
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: