karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steinar Bang (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (KARAF-5174) Uninstalling feature using liquibase-slf4j crashes karaf
Date Sat, 10 Jun 2017 07:45:20 GMT

    [ https://issues.apache.org/jira/browse/KARAF-5174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16045443#comment-16045443
] 

Steinar Bang edited comment on KARAF-5174 at 6/10/17 7:45 AM:
--------------------------------------------------------------

I stopped the karaf 4.1.0 I had running (that caused the port collision complaints in the
previous comment) and tried installing and uninstalling the liquibase-core feature, and this
time karaf 4.2.0-SNAPSHOT crashed on uninstall in the same way as on karaf 4.2.0:
{noformat}
sb@lorenzo:~/git/karaf/assemblies/apache-karaf/target/assembly$ bin/karaf
karaf: JAVA_HOME not set; results may vary
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.2.0-SNAPSHOT)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

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
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
58 │ Resolved │  35 │ 2.0.0          │ liquibase-slf4j 2.0.0 made an OSGi bundle fragment
of org.liquibase.core, Hosts: 59
59 │ Active   │  40 │ 3.5.3          │ Liquibase Core, Fragments: 58
60 │ Active   │  40 │ 1.17.0         │ SnakeYAML
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:602)
        at org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:706)
        at org.apache.karaf.main.Main.doMonitor(Main.java:379)
        at org.apache.karaf.main.Main.access$100(Main.java:74)
        at org.apache.karaf.main.Main$2.run(Main.java:366)
^C
sb@lorenzo:~/git/karaf/assemblies/apache-karaf/target/assembly$
{noformat}

(i) _Note_: It was necessary to press Ctrl-C to return to the bash prompt, karaf was hanging
and the end of the stack trace.

The karaf log from my use of karaf 4.2.0-SNAPSHOT has been attached as [karaf.log.gz|https://issues.apache.org/jira/secure/attachment/12872411/karaf.log.gz]


was (Author: sb@dod.no):
I stopped the karaf 4.1.0 I had running (that caused the port collision complaints in the
previous comment) and tried installing and uninstalling the liquibase-core feature, and this
time karaf 4.2.0-SNAPSHOT crashed on uninstall in the same way as on karaf 4.2.0:
{noformat}
sb@lorenzo:~/git/karaf/assemblies/apache-karaf/target/assembly$ bin/karaf
karaf: JAVA_HOME not set; results may vary
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  Apache Karaf (4.2.0-SNAPSHOT)

Hit '<tab>' for a list of available commands
and '[cmd] --help' for help on a specific command.
Hit '<ctrl-d>' or type 'system:shutdown' or 'logout' to shutdown Karaf.

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
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
58 │ Resolved │  35 │ 2.0.0          │ liquibase-slf4j 2.0.0 made an OSGi bundle fragment
of org.liquibase.core, Hosts: 59
59 │ Active   │  40 │ 3.5.3          │ Liquibase Core, Fragments: 58
60 │ Active   │  40 │ 1.17.0         │ SnakeYAML
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:602)
        at org.apache.karaf.main.Main$KarafLockCallback.lockAquired(Main.java:706)
        at org.apache.karaf.main.Main.doMonitor(Main.java:379)
        at org.apache.karaf.main.Main.access$100(Main.java:74)
        at org.apache.karaf.main.Main$2.run(Main.java:366)
^C
sb@lorenzo:~/git/karaf/assemblies/apache-karaf/target/assembly$
{noformat}

The karaf log from my use of karaf 4.2.0-SNAPSHOT has been attached as [karaf.log.gz|https://issues.apache.org/jira/secure/attachment/12872411/karaf.log.gz]

> 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
>         Attachments: karaf.log.gz
>
>
> 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)

Mime
View raw message