Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E767D200D24 for ; Tue, 24 Oct 2017 22:07:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id E5F5B160BF1; Tue, 24 Oct 2017 20:07:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 3744A1609C8 for ; Tue, 24 Oct 2017 22:07:06 +0200 (CEST) Received: (qmail 49143 invoked by uid 500); 24 Oct 2017 20:07:05 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 49132 invoked by uid 99); 24 Oct 2017 20:07:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 20:07:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 7EA3D1A15FB for ; Tue, 24 Oct 2017 20:07:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id wxiHsMkajt1M for ; Tue, 24 Oct 2017 20:07:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 097845F239 for ; Tue, 24 Oct 2017 20:07:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 93336E00C9 for ; Tue, 24 Oct 2017 20:07:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 271EA21302 for ; Tue, 24 Oct 2017 20:07:01 +0000 (UTC) Date: Tue, 24 Oct 2017 20:07:01 +0000 (UTC) From: "Guillaume Nodet (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (KARAF-5023) Improve config commands to better support substituted and typed properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 20:07:07 -0000 [ https://issues.apache.org/jira/browse/KARAF-5023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Guillaume Nodet resolved KARAF-5023. ------------------------------------ Resolution: Fixed > Improve config commands to better support substituted and typed properties > -------------------------------------------------------------------------- > > Key: KARAF-5023 > URL: https://issues.apache.org/jira/browse/KARAF-5023 > Project: Karaf > Issue Type: Improvement > Components: karaf-config > Affects Versions: 4.1.0, 4.0.8 > Reporter: Xilai Dai > Assignee: Guillaume Nodet > Fix For: 4.2.0 > > > {code} > karaf@root()> config:edit --force org.apache.karaf.management > karaf@root()> config:property-set rmiRegistryPort 1100 > karaf@root()> config:property-set rmiServerPort 44445 > karaf@root()> config:update > karaf@root()> Exception in thread "JMX Connector Thread [service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-r > oot]" java.lang.RuntimeException: Could not start JMX connector server > at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:272) > Caused by: java.io.IOException: Cannot bind to URL [rmi://127.0.0.1:1099/karaf-root]: javax.naming.CommunicationException > [Root exception is java.rmi.NoSuchObjectException: no such object in table] > at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:827) > at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:432) > at org.apache.karaf.management.ConnectorServerFactory$1.run(ConnectorServerFactory.java:259) > Caused by: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in tabl > e] > at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:161) > at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:228) > at javax.naming.InitialContext.bind(InitialContext.java:425) > at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:644) > at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:427) > ... 1 more > Caused by: java.rmi.NoSuchObjectException: no such object in table > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:379) > at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) > at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:155) > ... 5 more > {code} > Looking into the {{etc/org.apache.karaf.management.cfg}}, the {{serviceUrl}} property is changed to: > {code} > service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)