0 Replies Latest reply on Jan 20, 2006 10:53 AM by Zsofia Otott

    UndeclaredThrowableException

    Zsofia Otott Newbie

      Hello,

      I got the following error when I try to use an MBean.

      16:34:59,225 ERROR [MyTesterBean] testJMX()
      java.lang.reflect.UndeclaredThrowableException
      at $Proxy40.isRegistered(Unknown Source)

      The code looks like this:

      InitialContext initialContext = new InitialContext(System.getProperties());
       RMIAdaptor adaptor = (RMIAdaptor) initialContext.lookup("jmx/invoker/RMIAdaptor");
      
       ObjectName on2 = new ObjectName(
       "jboss:service=KeyGeneratorFactory,type=UUID");
      
       log.info("==jmx: " + adaptor.isRegistered(on2));


      I hope someone can help me...

      Regards

      zsofi