[
https://issues.apache.org/jira/browse/KARAF-5174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045225#comment-16045225
]
Steinar Bang commented on KARAF-5174:
-------------------------------------
I just tried loading the feature on karaf 4.2.0-SNAPSHOT built from git, and it
loaded without any error messages.
The platform I tried on was debian 9 "stretch", with openjdk 8u131-b11-1.
Here's what I did:
# Cloned and built the feature
{noformat}
cd ~/git
git clone https://github.com/steinarb/liquibase-karaf-feature.git
cd liquibase-karaf-feature
mvn install
{noformat}
# Updated and built and started karaf
{noformat}
cd ~/git/karaf
mvn clean
git checkout master
git pull
mvn
cd assemblies/apache-karaf/target/assembly
bin/karaf
{noformat}
# Added the feature repository and installed the feature
{noformat}
karaf@root()> feature:repo-add
mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
Adding feature url
mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
karaf@root()> feature:install liquibase-core
karaf@root()> bundle:list -t 35
START LEVEL 100 , List Threshold: 35
ID │ State │ Lvl │ Version │ Name
───┼──────────┼─────┼────────────────┼──────────────────────────────────
28 │ Active │ 80 │ 4.2.0.SNAPSHOT │ Apache Karaf :: OSGi Services :: Event
52 │ Resolved │ 35 │ 2.0.0 │ liquibase-slf4j 2.0.0 made an OSGi
bundle fragment of org.l
53 │ Active │ 40 │ 3.5.3 │ Liquibase Core, Fragments: 52
54 │ Active │ 40 │ 1.17.0 │ SnakeYAML
karaf@root()>
{noformat}
> Uninstalling feature using liquibase-slf4j crashes karaf
> --------------------------------------------------------
>
> Key: KARAF-5174
> URL: https://issues.apache.org/jira/browse/KARAF-5174
> Project: Karaf
> Issue Type: Bug
> Affects Versions: 4.1.1
> Environment: Java 1.8 64 bit, windows 7 64bit, debian "jessie"
> GNU/linux 64bit
> Reporter: Steinar Bang
>
> To reproduce:
> # clone this project and build it with maven:
> {noformat}
> mkdir -p ~/git
> cd ~/git
> git clone https://github.com/steinarb/liquibase-karaf-feature/
> cd liquibase-karaf-feature
> mvn clean install
> {noformat}
> # start karaf and give the following commands to the karaf console:
> {noformat}
> feature:repo-add
> mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
> feature:install liquibase-core
> {noformat}
> # uninstall the feature
> {noformat}
> feature:uninstall liquibase-core
> {noformat}
> Karaf will now output the following and hang:
> {noformat}
> 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)
> {noformat}
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)