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

The start level should check that the bundle still exists before starting it to avoid an ugly exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • framework-2.0.0
    • framework-2.0.5
    • Framework
    • None

    Description

      ERROR: Error locking file:/Users/gnodet/work/felix/git/karaf/assembly/target/apache-felix-karaf-1.1.0-SNAPSHOT/deploy/test.xml (java.lang.IllegalStateException: Bundle in unexpected state.)
      java.lang.IllegalStateException: Bundle in unexpected state.
      at org.apache.felix.framework.Felix.acquireBundleLock(Felix.java:4513)
      at org.apache.felix.framework.Felix.setActiveStartLevel(Felix.java:1048)
      at org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:264)
      at java.lang.Thread.run(Thread.java:613)

      This is the exception I have when i start felix after having removed a bundle managed by fileinstall while felix was stopped.
      I think it should be easy enough to add a check to avoid this exception.

      Attachments

        Issue Links

          Activity

            People

              rickhall Richard S. Hall
              gnodet Guillaume Nodet
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: