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 Fri, 09 Jun 2017 23:48:18 GMT

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

Steinar Bang edited comment on KARAF-5174 at 6/9/17 11:47 PM:
--------------------------------------------------------------

Uninstalling the liquibase-core feature doesn't crash and hang karaf 4.2.0-SNAPSHOT, but it
looks like karaf does a quick restart.

I don't know if this is caused by the version of karaf or if it is caused by the way karaf
is started, or if it is caused by me already having a karaf 4.1.0 running on the same machine
(that's why the port numbers are taken)?

Here's the output from an uninstall:
{noformat}
karaf@root()> feature:install liquibase-core
karaf@root()> feature:uninstall liquibase-core
karaf@root()>
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers.  If you need to start a second container or the default
ports are already in use update the config file etc/org.apache.karaf.management.cfg and change
the Registry Port and Server Port to
unused ports
        at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:267)
        at java.lang.Thread.run(Thread.java:748)
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers.  If you need to start a second container or the default
ports are already in use update the config file etc/org.apache.karaf.management.cfg and change
the Registry Port and Server Port to unused ports
        at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:267)
        at java.lang.Thread.run(Thread.java:748)
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  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()>
{noformat}



was (Author: sb@dod.no):
Uninstalling the feature in this manner doesn't crash and hang karaf 4.2.0-SNAPSHOT, but it
looks like karaf does a quick restart.

I don't know if this is caused by the version of karaf or if it is caused by the way karaf
is started, or if it is caused by me already having a karaf 4.1.0 running on the same machine
(that's why the port numbers are taken)?

Here's the output from an uninstall:
{noformat}
karaf@root()> feature:install liquibase-core
karaf@root()> feature:uninstall liquibase-core
karaf@root()>
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers.  If you need to start a second container or the default
ports are already in use update the config file etc/org.apache.karaf.management.cfg and change
the Registry Port and Server Port to
unused ports
        at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:267)
        at java.lang.Thread.run(Thread.java:748)
Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root]"
java.lang.RuntimeException:
Port already in use: 44444;
You may have started two containers.  If you need to start a second container or the default
ports are already in use update the config file etc/org.apache.karaf.management.cfg and change
the Registry Port and Server Port to unused ports
        at org.apache.karaf.management.ConnectorServerFactory.lambda$init$0(ConnectorServerFactory.java:267)
        at java.lang.Thread.run(Thread.java:748)
        __ __                  ____
       / //_/____ __________ _/ __/
      / ,<  / __ `/ ___/ __ `/ /_
     / /| |/ /_/ / /  / /_/ / __/
    /_/ |_|\__,_/_/   \__,_/_/

  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()>
{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)

Mime
View raw message