You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2021/01/14 17:46:00 UTC

[jira] [Commented] (KARAF-6996) Problem with karaf 4.2.9 and jline 3.18

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

Jean-Baptiste Onofré commented on KARAF-6996:
---------------------------------------------

You can see that actually, it tries to install Karaf 4.3.1-SNAPSHOT (due to range in camel features).

To avoid this, you just have to add {{etc/org.apache.karaf.features.xml}} containing:
{code:java}
<?xml version="1.0" encoding="UTF-8"?>
<featuresProcessing xmlns="http://karaf.apache.org/xmlns/features-processing/v1.0.0">


    <!--


        Licensed to the Apache Software Foundation (ASF) under one or more
        contributor license agreements.  See the NOTICE file distributed with
        this work for additional information regarding copyright ownership.
        The ASF licenses this file to You under the Apache License, Version 2.0
        (the "License"); you may not use this file except in compliance with
        the License.  You may obtain a copy of the License at


            http://www.apache.org/licenses/LICENSE-2.0


        Unless required by applicable law or agreed to in writing, software
        distributed under the License is distributed on an "AS IS" BASIS,
        WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions and
        limitations under the License.
    -->


    <blacklistedRepositories>
        <repository>mvn:org.apache.karaf.features/framework/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.1-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0-SNAPSHOT/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/framework/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/standard/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/enterprise-legacy/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring/4.3.0.RC1/xml/features</repository>
        <repository>mvn:org.apache.karaf.features/spring-legacy/4.3.0.RC1/xml/features</repository>
    </blacklistedRepositories>


</featuresProcessing> {code}
It blacklists 4.3.1-SNAPSHOT and you won't have the issue.

> Problem with karaf 4.2.9 and jline 3.18
> ---------------------------------------
>
>                 Key: KARAF-6996
>                 URL: https://issues.apache.org/jira/browse/KARAF-6996
>             Project: Karaf
>          Issue Type: Question
>    Affects Versions: 4.2.9
>            Reporter: Andris
>            Priority: Major
>
> I have a working karaf version 4.2.9. with a lot of boundles. I'm trying to install feature camel-quartz2 (or camel-base64 or any other feature) to my karaf. jline is trying to apdate to version 3.18 and karaf crashes. 
>  I have a question - how to avoid updating of jline?
>  Here is a log of installation process:
> karaf@root()> feature:install -v camel-quartz2 Adding features: camel-quartz2/[2.23.2,2.23.2] Changes to perform: Region: root Bundles to uninstall: org.apache.aries.spifly.dynamic.bundle/1.3.2 org.jline.builtins/3.17.1 org.jline.reader/3.17.1 org.jline.terminal/3.17.1 org.jline.terminal-jansi/3.17.1 Bundles to update: org.apache.karaf.http.core/4.3.1.SNAPSHOT with mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.3.1-SNAPSHOT Bundles to install: mvn:com.zaxxer/HikariCP-java6/2.3.13 mvn:org.apache.camel/camel-quartz2/2.23.2 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.c3p0/0.9.5.3_1 mvn:org.jline/jline-builtins/3.18.0 mvn:org.jline/jline-reader/3.18.0 mvn:org.jline/jline-terminal/3.18.0 mvn:org.jline/jline-terminal-jansi/3.18.0 wrap:mvn:org.quartz-scheduler/quartz/2.3.0$overwrite=merge&DynamicImport-Package=org.apache.camel.component.quartz2 Stopping bundles: org.apache.geronimo.components.geronimo-connector/3.1.4 org.ops4j.pax.jms.pax-jms-pool-pooledjms/1.0.7 org.messaginghub.pooled.jms/1.1.1 wrap_file_____opt_apache-karaf-4.2.9_work_ojdbc7.jar/0.0.0 wrap_mvn_net.sf.saxon_Saxon-HE_10.1/0.0.0 org.apache.camel.karaf.camel-karaf-commands/2.23.2 org.apache.camel.camel-commands-core/2.23.2 org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 org.apache.karaf.jms.core/4.2.9 org.apache.karaf.event/4.2.9 org.apache.camel.camel-base64/2.23.2 org.apache.camel.camel-jms/2.23.2 activemq-karaf/5.15.7 org.apache.camel.camel-sql/2.23.2 org.apache.camel.camel-script/2.23.2 org.apache.camel.camel-jetty9/2.23.2 org.apache.camel.camel-jdbc/2.23.2 org.apache.camel.camel-groovy/2.23.2 org.apache.camel.camel-blueprint/2.23.2 org.apache.camel.camel-mail/2.23.2 org.apache.activemq.activemq-osgi/5.15.7 org.apache.camel.camel-jetty-common/2.23.2 org.apache.camel.camel-jackson/2.23.2 org.apache.camel.camel-http4/2.23.2 org.apache.camel.camel-http-common/2.23.2 org.apache.camel.camel-core/2.23.2 org.jline.terminal/3.17.1 org.jline.reader/3.17.1 org.jline.builtins/3.17.1 org.apache.karaf.http.core/4.3.1.SNAPSHOT org.apache.aries.spifly.dynamic.bundle/1.3.2 org.apache.servicemix.bundles.spring-tx/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-context/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 org.apache.felix.scr/2.1.24 org.apache.servicemix.bundles.spring-jdbc/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-jms/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-context-support/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-jms/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-tx/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-jdbc/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-context-support/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-context/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 org.eclipse.jetty.xml/9.4.28.v20200408 org.eclipse.jetty.websocket.api/9.4.28.v20200408 org.eclipse.jetty.util/9.4.28.v20200408 org.eclipse.jetty.security/9.4.28.v20200408 org.apache.karaf.shell.commands/4.2.9 org.apache.karaf.service.core/4.2.9 org.apache.karaf.jaas.command/4.2.9 org.apache.karaf.features.command/4.2.9 org.apache.karaf.diagnostic.core/4.2.9 org.apache.karaf.shell.ssh/4.2.9 org.apache.karaf.system.core/4.2.9 org.apache.karaf.shell.core/4.2.9 org.apache.karaf.package.core/4.2.9 org.apache.karaf.log.core/4.2.9 org.apache.karaf.kar.core/4.2.9 org.apache.karaf.instance.core/4.2.9 org.apache.karaf.config.core/4.2.9 org.apache.karaf.bundle.core/4.2.9 org.apache.karaf.deployer.kar/4.2.9 Uninstalling bundles: org.apache.aries.spifly.dynamic.bundle/1.3.2 org.jline.builtins/3.17.1 org.jline.reader/3.17.1 org.jline.terminal/3.17.1 org.jline.terminal-jansi/3.17.1 Updating bundles: mvn:org.apache.karaf.http/org.apache.karaf.http.core/4.3.1-SNAPSHOT Installing bundles: mvn:com.zaxxer/HikariCP-java6/2.3.13 mvn:org.apache.camel/camel-quartz2/2.23.2 mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.c3p0/0.9.5.3_1 mvn:org.jline/jline-builtins/3.18.0 mvn:org.jline/jline-reader/3.18.0 mvn:org.jline/jline-terminal/3.18.0 mvn:org.jline/jline-terminal-jansi/3.18.0 wrap:mvn:org.quartz-scheduler/quartz/2.3.0$overwrite=merge&DynamicImport-Package=org.apache.camel.component.quartz2 Stopping bundles: org.apache.karaf.http.core/4.3.1.SNAPSHOT Refreshing bundles: activemq-karaf/5.15.7 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.activemq.activemq-osgi/5.15.7 (Wired to org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 which is being refreshed) org.apache.aries.spifly.dynamic.bundle/1.3.2 (Bundle will be uninstalled) org.apache.camel.camel-base64/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-blueprint/2.23.2 (Wired to org.apache.karaf.bundle.core/4.2.9 which is being refreshed) org.apache.camel.camel-commands-core/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-core/2.23.2 (Wired to org.apache.servicemix.bundles.spring-tx/5.2.9.RELEASE_2 which is being refreshed) org.apache.camel.camel-groovy/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-http-common/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-http4/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-jackson/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-jdbc/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-jetty-common/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-jetty9/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-jms/2.23.2 (Wired to org.apache.servicemix.bundles.spring-context/4.3.29.RELEASE_1 which is being refreshed) org.apache.camel.camel-mail/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-script/2.23.2 (Wired to org.apache.camel.camel-core/2.23.2 which is being refreshed) org.apache.camel.camel-sql/2.23.2 (Wired to org.apache.servicemix.bundles.spring-tx/4.3.29.RELEASE_1 which is being refreshed) org.apache.camel.karaf.camel-karaf-commands/2.23.2 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.felix.scr/2.1.24 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.geronimo.components.geronimo-connector/3.1.4 (Wired to org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 which is being refreshed) org.apache.karaf.bundle.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.config.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.deployer.kar/4.2.9 (Wired to org.apache.karaf.kar.core/4.2.9 which is being refreshed) org.apache.karaf.diagnostic.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.event/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.features.command/4.2.9 (Wired to org.jline.terminal/3.17.1 which is being refreshed) org.apache.karaf.http.core/4.3.1.SNAPSHOT (Bundle will be updated) org.apache.karaf.instance.core/4.2.9 (Wired to org.apache.karaf.features.command/4.2.9 which is being refreshed) org.apache.karaf.jaas.command/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.jms.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.kar.core/4.2.9 (Wired to org.apache.karaf.features.command/4.2.9 which is being refreshed) org.apache.karaf.log.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.package.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.service.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.shell.commands/4.2.9 (Wired to org.jline.terminal/3.17.1 which is being refreshed) org.apache.karaf.shell.console/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.shell.core/4.2.9 (Wired to org.jline.builtins/3.17.1 which is being refreshed) org.apache.karaf.shell.ssh/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.karaf.system.core/4.2.9 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 (Should be wired to: org.apache.commons.pool2/2.4.2 (through [org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))")) org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 (Should be wired to: org.apache.commons.pool2/2.4.2 (through [org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2] osgi.wiring.package; resolution:=optional; filter:="(&(osgi.wiring.package=org.apache.commons.pool2)(version>=2.4.0)(!(version>=3.0.0)))")) org.apache.servicemix.bundles.spring-context/4.3.29.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 which is being refreshed) org.apache.servicemix.bundles.spring-context/5.2.9.RELEASE_2 (Wired to org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 which is being refreshed) org.apache.servicemix.bundles.spring-context-support/4.3.29.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 which is being refreshed) org.apache.servicemix.bundles.spring-context-support/5.2.9.RELEASE_2 (Wired to org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 which is being refreshed) org.apache.servicemix.bundles.spring-jdbc/4.3.29.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-context/4.3.29.RELEASE_1 which is being refreshed) org.apache.servicemix.bundles.spring-jdbc/5.2.9.RELEASE_2 (Wired to org.apache.servicemix.bundles.spring-context/5.2.9.RELEASE_2 which is being refreshed) org.apache.servicemix.bundles.spring-jms/4.3.29.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 which is being refreshed) org.apache.servicemix.bundles.spring-jms/5.2.9.RELEASE_2 (Wired to org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 which is being refreshed) org.apache.servicemix.bundles.spring-tx/4.3.29.RELEASE_1 (Wired to org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 which is being refreshed) org.apache.servicemix.bundles.spring-tx/5.2.9.RELEASE_2 (Wired to org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 which is being refreshed) org.eclipse.jetty.security/9.4.28.v20200408 (Wired to org.apache.aries.spifly.dynamic.bundle/1.3.2 which is being refreshed) org.eclipse.jetty.util/9.4.28.v20200408 (Wired to org.apache.aries.spifly.dynamic.bundle/1.3.2 which is being refreshed) org.eclipse.jetty.websocket.api/9.4.28.v20200408 (Wired to org.apache.aries.spifly.dynamic.bundle/1.3.2 which is being refreshed) org.eclipse.jetty.xml/9.4.28.v20200408 (Wired to org.apache.aries.spifly.dynamic.bundle/1.3.2 which is being refreshed) org.jline.builtins/3.17.1 (Bundle will be uninstalled) org.jline.reader/3.17.1 (Bundle will be uninstalled) org.jline.terminal/3.17.1 (Bundle will be uninstalled) org.jline.terminal-jansi/3.17.1 (Bundle will be uninstalled) org.messaginghub.pooled.jms/1.1.1 (Wired to org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 which is being refreshed) org.ops4j.pax.jms.pax-jms-pool-pooledjms/1.0.7 (Wired to org.messaginghub.pooled.jms/1.1.1 which is being refreshed) org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 (Wired to org.apache.servicemix.bundles.spring-tx/5.2.9.RELEASE_2 which is being refreshed) wrap_file_____opt_apache-karaf-4.2.9_work_ojdbc7.jar/0.0.0 (Should be wired to: org.objectweb.asm/9.0.0 (through [wrap_file_____opt_apache-karaf-4.2.9_work_ojdbc7.jar [245](R 245.0)] osgi.wiring.package; (osgi.wiring.package=org.objectweb.asm))) wrap_mvn_net.sf.saxon_Saxon-HE_10.1/0.0.0 (Wired to org.apache.karaf.shell.core/4.2.9 which is being refreshed) Starting bundles: org.apache.karaf.deployer.kar/4.2.9 org.apache.servicemix.bundles.spring-aop/5.2.9.RELEASE_2 org.jline.terminal/3.18.0 org.jline.reader/3.18.0 org.jline.builtins/3.18.0 org.apache.karaf.shell.core/4.2.9 org.apache.karaf.log.core/4.2.9 org.apache.karaf.jaas.command/4.2.9 org.apache.karaf.features.command/4.2.9 org.apache.karaf.kar.core/4.2.9 org.apache.karaf.shell.commands/4.2.9 org.eclipse.jetty.websocket.api/9.4.28.v20200408 org.apache.servicemix.bundles.spring-aop/4.3.29.RELEASE_1 org.apache.karaf.diagnostic.core/4.2.9 org.apache.karaf.instance.core/4.2.9 org.apache.servicemix.bundles.spring-context/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-tx/4.3.29.RELEASE_1 org.apache.karaf.shell.ssh/4.2.9 org.apache.felix.scr/2.1.24 org.apache.servicemix.bundles.spring-jdbc/4.3.29.RELEASE_1 org.apache.karaf.package.core/4.2.9 org.apache.karaf.system.core/4.2.9 Error executing command: Receiver class org.apache.karaf.shell.impl.console.JLineTerminal does not define or inherit an implementation of the resolved method abstract getPalette()Lorg/jline/utils/ColorPalette; of interface org.jline.terminal.Terminal. org.apache.servicemix.bundles.spring-context/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-tx/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-jms/5.2.9.RELEASE_2 org.eclipse.jetty.util/9.4.28.v20200408 org.eclipse.jetty.security/9.4.28.v20200408 org.apache.servicemix.bundles.spring-context-support/4.3.29.RELEASE_1 org.apache.servicemix.bundles.spring-jdbc/5.2.9.RELEASE_2 org.apache.servicemix.bundles.spring-context-support/5.2.9.RELEASE_2 org.apache.karaf.bundle.core/4.2.9 org.eclipse.jetty.xml/9.4.28.v20200408 org.apache.servicemix.bundles.spring-jms/4.3.29.RELEASE_1 org.apache.karaf.http.core/4.3.1.SNAPSHOT org.apache.karaf.config.core/4.2.9 org.apache.karaf.service.core/4.2.9 org.apache.camel.camel-blueprint/2.23.2 org.apache.camel.camel-jms/2.23.2 org.apache.camel.camel-http-common/2.23.2 org.apache.camel.camel-jetty-common/2.23.2 org.apache.camel.camel-jetty9/2.23.2 org.apache.camel.camel-script/2.23.2 org.apache.camel.camel-sql/2.23.2 org.apache.camel.camel-jackson/2.23.2 activemq-karaf/5.15.7 org.apache.camel.camel-mail/2.23.2 org.apache.camel.camel-base64/2.23.2 org.apache.camel.camel-groovy/2.23.2 org.apache.camel.camel-http4/2.23.2 com.zaxxer.HikariCP-java6/2.3.13 org.apache.activemq.activemq-osgi/5.15.7 org.apache.servicemix.bundles.c3p0/0.9.5.3_1 org.quartz-scheduler.quartz/2.3.0 org.apache.camel.camel-quartz2/2.23.2 org.apache.camel.camel-core/2.23.2 org.apache.camel.camel-jdbc/2.23.2 wrap_file_____opt_apache-karaf-4.2.9_work_ojdbc7.jar/0.0.0 wrap_mvn_net.sf.saxon_Saxon-HE_10.1/0.0.0 org.apache.camel.camel-commands-core/2.23.2 org.ops4j.pax.transx.pax-transx-tm-geronimo/0.4.4 org.messaginghub.pooled.jms/1.1.1 org.apache.karaf.jms.core/4.2.9 org.ops4j.pax.jms.pax-jms-pool-pooledjms/1.0.7 org.apache.camel.karaf.camel-karaf-commands/2.23.2 org.apache.geronimo.components.geronimo-connector/3.1.4 org.apache.karaf.event/4.2.9 Done.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)