3 Replies Latest reply on Jul 7, 2004 10:46 AM by jugma

    RMIAdaptor problem

    jugma Newbie


      I am trying to use the RMIAdaptor remotely in JBoss 3.2.5. When I invoke the getMBeanInfo(name) on the RMIAdaptor object I get the following error:

      Exception in thread "main" javax.management.InstanceNotFoundException: HelloWorld:name=helloWorld1 is not registered.
       at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:462)

      I can see my HelloWorld:name=helloWorld1 MBean in the jmx-console. I can also query for this MBean through twiddle. Please could you let me know what may be the problem.

      Any help will be much appreciated.


        • 1. Re: RMIAdaptor problem
          jugma Newbie

          In my previous post I forgot to add the code which shows how I use the RMIAdaptor.

          The following code below shows how I try to call the getBeanInfo method:

           InitialContext ic = new InitialContext();
           RMIAdaptor server = (RMIAdaptor) ic.lookup("jmx/rmi/RMIAdaptor");
           // Get the MBeanInfo for the MBean
           ObjectName name = new ObjectName("HelloWorld:name=helloWorld1");
           MBeanInfo info = server.getMBeanInfo(name);

          Any help will be very much appreciated.


          • 2. Re: RMIAdaptor problem
            Scott Stark Master

            twiddle uses the RMIAdaptor as well so I would guess that your jndi.properties is not point to the server you expect.

            • 3. Re: RMIAdaptor problem
              jugma Newbie

              Thanks for your reply Scott. I think I have the correct jndi.properties file since I can do a lookup on pre-packaged MBeans like the "jboss:service=JNDIView" etc. Below is the jndi.properties file that I am using: