Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7014F18EBD for ; Thu, 28 Jan 2016 14:50:40 +0000 (UTC) Received: (qmail 79938 invoked by uid 500); 28 Jan 2016 14:50:40 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 79861 invoked by uid 500); 28 Jan 2016 14:50:40 -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 79553 invoked by uid 99); 28 Jan 2016 14:50:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Jan 2016 14:50:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id EB7042C1F68 for ; Thu, 28 Jan 2016 14:50:39 +0000 (UTC) Date: Thu, 28 Jan 2016 14:50:39 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-3359) Exception when try to update JMX ports with config:update command MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-3359?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1512= 1617#comment-15121617 ]=20 Jean-Baptiste Onofr=C3=A9 commented on KARAF-3359: --------------------------------------------- The same issue happens on Karaf 4.0.x and 4.1.x (master), however, the JMX = serviceUrl is still valid in these versions. > Exception when try to update JMX ports with config:update command > ----------------------------------------------------------------- > > Key: KARAF-3359 > URL: https://issues.apache.org/jira/browse/KARAF-3359 > Project: Karaf > Issue Type: Bug > Components: karaf-config > Affects Versions: 3.0.2 > Reporter: Xilai Dai > > Got the exception below when try to update JMX ports with config:update c= ommand from console. > {code} > karaf@root()> config:edit --force org.apache.karaf.management > karaf@root()> config:property-set rmiRegistryPort 1101 > karaf@root()> config:property-set rmiServerPort 44445 > karaf@root()> config:update > karaf@root()> Exception in thread "JMX Connector Thread [service:jmx:rmi:= //0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/karaf-r > oot]" java.lang.RuntimeException: Could not start JMX connector server > at org.apache.karaf.management.ConnectorServerFactory$1.run(Conne= ctorServerFactory.java:258) > Caused by: java.io.IOException: Cannot bind to URL [rmi://0.0.0.0:1099/ka= raf-root]: javax.naming.CommunicationException > [Root exception is java.rmi.NoSuchObjectException: no such object in tabl= e] > at javax.management.remote.rmi.RMIConnectorServer.newIOException(= RMIConnectorServer.java:826) > at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnec= torServer.java:431) > at org.apache.karaf.management.ConnectorServerFactory$1.run(Conne= ctorServerFactory.java:245) > Caused by: javax.naming.CommunicationException [Root exception is java.rm= i.NoSuchObjectException: no such object in tabl > e] > at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext= .java:143) > at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLCont= ext.java:226) > at javax.naming.InitialContext.bind(InitialContext.java:419) > at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnect= orServer.java:643) > at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnec= torServer.java:426) > ... 1 more > Caused by: java.rmi.NoSuchObjectException: no such object in table > at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer= (StreamRemoteCall.java:275) > at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCal= l.java:252) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:378) > at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source) > at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext= .java:137) > ... 5 more > {code} > more bad thing is the serviceUrl property in the etc/org.apache.karaf.man= agement.cfg has been updated to:=20 > {code} > serviceUrl =3D service:jmx:rmi://0.0.0.0:44444/jndi/rmi://0.0.0.0:1099/ka= raf-root > {code} > so even after restart karaf, it will still try to use the old JMX ports. > These commands work fine in karaf 2.3.x. -- This message was sent by Atlassian JIRA (v6.3.4#6332)