Using JMX with ORB lookup service

Hello,

I am trying to use an ORB lookup service to register different MBeanServers (or maybe more approriate JMXConnectorServers) for later lookup.

This works fine, if the lookup service and the MBeanServer run in two separate processes. But if I try to register the MBeanServer running in the lookup service process itself, a CORBA exception is thrown:

#WARN* 09/19/2006 05:48:54.583 * CID 340832833(SEQ 0) * [monitoring.MonitoringComponentImpl] * basecomponents.monitoring.CANNOT_CREATE_JMXCONNECTOR * Error trying to create JMXConnectorfor URL service:jmx:iiop:///jndi/iiop://localhost:9003/MONITORING-NS_Server-DM_NS_1

java.rmi.RemoteException: CORBA SystemException; nested exception is:

org.omg.CORBA.NO_IMPLEMENT:vmcid: 0x0 minor code: 0 completed: No

at com.sun.corba.se.impl.presentation.rmi.StubConnectImpl.connect(StubConnectImpl.java:93)

at com.sun.corba.se.impl.javax.rmi.CORBA.StubDelegateImpl.connect(StubDelegateImpl.java:161)

at javax.rmi.CORBA.Stub.connect(Stub.java:138)

at javax.management.remote.rmi.RMIConnector.connectStub(RMIConnector.java:1657)

at javax.management.remote.rmi.RMIConnectorServer.objectToBind(RMIConnectorServer.java:738)

at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:394)

[...]

Caused by: org.omg.CORBA.NO_IMPLEMENT:vmcid: 0x0 minor code: 0 completed: No

at org.openorb.CORBA.ORB.connect(Unknown Source)

at org.omg.stub.javax.management.remote.rmi._RMIServerImpl_Tie.orb(Unknown Source)

at com.sun.corba.se.impl.presentation.rmi.StubConnectImpl.connect(StubConnectImpl.java:70)

... 13 more

The URL used is comparable for all processes (working and failing).

The call that is supposed to register the MBeanServer at the lookup service is:

...

JMXConnectorServerFactory.newJMXConnectorServer(jmxUrl, environment, this.mBeanServer);

...

This call also is the same for all processes.

I have had a look into the sources of OpenORB (the source of the exception above) and it seems that ORB.connect() tries to find a BOA; but as this BOA is null, the exception is thrown. Still, I don't know, why other processes are able to register without exception.

Anybody with a clue on how to fix this?

Thanks in advance.

[2408 byte] By [swmtgoeta] at [2007-11-30]