7 Replies Latest reply on May 26, 2003 7:03 AM by Adrian Brock

    problem removing a notification from timer mbean

    blakbox Newbie

      Hi,

      I want to remove a notification from timer mbean. however I get an exception when I try it.

      This is the exception's trace:

      ReflectionException: null
      Cause: java.lang.NoSuchMethodException: Unable to locate method for: removeNotification(,int)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:288)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
      at mt.common.util.ConfiguratorTimer.removeNotification(ConfiguratorTimer.java:116)


      And the code is:

      lServer.invoke(
      lTimer.getObjectName(),
      "removeNotification",
      new Object[]{
      lOneMinuteTimer
      },
      new String[]{
      Integer.TYPE.getName()
      }
      );


      Thanks