Attaching to a Karaf child container JMX port fails

Solution Verified - Updated -

Environment

  • Red Hat JBoss Fuse
    • 6.1

Issue

Attaching to a Karaf child container JMX port produces:

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:355)
    at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:268)
    at org.jboss.sample.jmx.SimpleJMX.main(SimpleJMX.java:30)
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
    at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:203)
    at javax.naming.InitialContext.lookup(InitialContext.java:409)
    at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1915)
    at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1884)
    at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:289)
    ... 2 more
Caused by: java.rmi.NoSuchObjectException: no such object in table
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:377)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:114)
    ... 7 more

This code works against a A-MQ 6.0 instance, and the JMX connector on port 1099 for a A-MQ 6.1 instance.

Resolution

This is a known issue. Please see:

https://issues.jboss.org/browse/ENTESB-1611

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.