Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5174

Uninstalling feature using liquibase-slf4j crashes karaf

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2, 4.2.0.M1
    • None
    • None
    • Java 1.8 64 bit, windows 7 64bit, debian "jessie" GNU/linux 64bit

    Description

      To reproduce:

      1. clone this project and build it with maven:
        mkdir -p ~/git
        cd ~/git
        git clone https://github.com/steinarb/liquibase-karaf-feature/
        cd liquibase-karaf-feature
        mvn clean install
        
      2. start karaf and give the following commands to the karaf console:
        feature:repo-add mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
        feature:install liquibase-core
        
      3. uninstall the feature
        feature:uninstall liquibase-core
        

      Karaf will now output the following and hang:

      karaf@root()> feature:install liquibase-core
      karaf@root()> feature:uninstall liquibase-core
      karaf@root()>
      java.lang.IllegalStateException: No inital startlevel yet
              at org.apache.felix.framework.FrameworkStartLevelImpl.setStartLevel(FrameworkStartLevelImpl.java:131)
              at org.apache.karaf.main.Main.setStartLevel(Main.java:605)
              at org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:711)
              at org.apache.karaf.main.Main.doMonitor(Main.java:382)
              at org.apache.karaf.main.Main.access$100(Main.java:75)
              at org.apache.karaf.main.Main$3.run(Main.java:369)
      

      On karaf 4.0.7 the crash on uninstall doesn't happen.

      If the liquibase-slf4j fragment bundle is removed from the liquibase-core feature, the crash on uninstall doesn't happen.

      Attachments

        1. karaf.zip
          5 kB
          Steinar Bang
        2. karaf.log.gz
          7 kB
          Steinar Bang

        Issue Links

          Activity

            People

              cschneider Christian Schneider
              sb@dod.no Steinar Bang
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: