Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5023

Improve config commands to better support substituted and typed properties

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0, 4.0.8
    • Fix Version/s: 4.2.0.M1
    • Component/s: karaf
    • Labels:
      None

      Description

      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
      

      Looking into the etc/org.apache.karaf.management.cfg, the serviceUrl property is changed to:

      service:jmx:rmi://127.0.0.1:44444/jndi/rmi://127.0.0.1:1099/karaf-root
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                xldai Xilai Dai
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: