Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-5282

Shell does not handle package refreshes correctly.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • gogo.shell-1.1.2
    • None
    • Gogo Shell
    • None

    Description

      When embedding Gogo shell in an executable JAR (using bnd export functionality), the shell does not work correctly after stopping and restarting the framework. It appears that some I/O threads are retained incorrectly:

      gosh: java.lang.IllegalStateException: session is closed
      gosh: stopping framework
      gogo: IllegalStateException: Invalid BundleContext.
      java.lang.IllegalStateException: Invalid BundleContext.
      at org.apache.felix.framework.BundleContextImpl.checkValidity(BundleContextImpl.java:511)
      at org.apache.felix.framework.BundleContextImpl.getBundle(BundleContextImpl.java:175)
      at org.apache.felix.gogo.shell.Shell.shutdown(Shell.java:183)
      at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:170)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jajans J.W. Janssen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: