You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Steinar Bang (JIRA)" <ji...@apache.org> on 2017/07/17 08:07:00 UTC
[jira] [Comment Edited] (KARAF-5174) Uninstalling feature using
liquibase-slf4j crashes karaf
[ https://issues.apache.org/jira/browse/KARAF-5174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089466#comment-16089466 ]
Steinar Bang edited comment on KARAF-5174 at 7/17/17 8:06 AM:
--------------------------------------------------------------
Tried this with karaf 4.1.2-SNAPSHOT on Windows 10, java 1.8_102, and karaf still crashes/hangs on "feature:uninstall liquibase-core".
The karaf.log file is attached as karaf.zip
Here's what I did:
# Cloned karaf, switched to the karaf-4.1.x branch, and built with "mvn -Pfastinstall"
# Unpacked karaf/assemblies/apache-karaf/target/apache-karaf-4.1.2-SNAPSHOT.zip and started with bin\karaf.bat
# Cloned liquibase-core and built with maven
# Installed liquibase-core and uninstalled it again (the first failed repo-install was because I hadn't built liquibase-core on this machine)
{noformat}
c:\ProgramFiles\apache-karaf-4.1.2-SNAPSHOT>bin\karaf.bat debug
Listening for transport dt_socket at address: 5005
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.1.2-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()> 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
Error executing command: Error resolving artifact no.priv.bang.karaf:liquibase-core-karaf:xml:features:LATEST : mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
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()> feature:uninstall liquibase-core
karaf@root()>
{noformat}
Karaf hangs at the final prompt, takes no commands, and (on Windows) doesn't even respond to Ctrl-C
was (Author: sb@dod.no):
Tried this with karaf 4.1.2-SNAPSHOT on Windows 10, java 1.8_102, and karaf still crashes/hangs on "feature:uninstall liquibase-core".
The karaf.log file is attached as karaf.zip
Here's what I did:
# Cloned karaf and built with "mvn -Pfastinstall"
# Unpacked karaf/assemblies/apache-karaf/target/apache-karaf-4.1.2-SNAPSHOT.zip and started with bin\karaf.bat
# Cloned liquibase-core and built with maven
# Installed liquibase-core and uninstalled it again (the first failed repo-install was because I hadn't built liquibase-core on this machine)
{noformat}
c:\ProgramFiles\apache-karaf-4.1.2-SNAPSHOT>bin\karaf.bat debug
Listening for transport dt_socket at address: 5005
__ __ ____
/ //_/____ __________ _/ __/
/ ,< / __ `/ ___/ __ `/ /_
/ /| |/ /_/ / / / /_/ / __/
/_/ |_|\__,_/_/ \__,_/_/
Apache Karaf (4.1.2-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()> 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
Error executing command: Error resolving artifact no.priv.bang.karaf:liquibase-core-karaf:xml:features:LATEST : mvn:no.priv.bang.karaf/liquibase-core-karaf/LATEST/xml/features
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()> feature:uninstall liquibase-core
karaf@root()>
{noformat}
Karaf hangs at the final prompt, takes no commands, and (on Windows) doesn't even respond to Ctrl-C
> 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
> Assignee: Jean-Baptiste Onofré
> Fix For: 4.2.0, 4.1.2
>
> Attachments: karaf.log.gz, karaf.zip
>
>
> 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.4.14#64029)