1 Reply Latest reply on Oct 7, 2002 5:26 AM by juha

    mbean exception adding , to sig error

    garyg

      I have a session bean calling invoke on a method in my mbean service that seems to be successful in calling the method, but is getting the following error. (I don't see what the scheduleJob() sig is doing w/ the ',' )

      19:01:55,159 ERROR [TaskSchedulerBean] Exception in MBean operation 'scheduleJob(,com.neuroquest.cais.objects.BuildObj)'

      Any help much appreciated.

      --- session bean code snippet

      public void scheduleTask(FieldObj fInfo) throws RemoteException {

      Object result = null;

      try {
      List lServers = MBeanServerFactory.findMBeanServer(null);

      MBeanServer lServer = (MBeanServer) lServers.get(0);

      ObjectName name = new ObjectName("DefaultDomain:service=Scheduler");

      Object[] args = { fInfo };
      String[] sig = { FieldObj.class.getName() };

      lServer.invoke(name, "scheduleJob", args, sig);

      --- ServiceMBeanSupport

      public void scheduleJob() throws Exception {
      log.debug(Scheduler.class, "calling scheduleJob()");
      ...
      return;
      }

      public void scheduleJob(FieldObj obj) throws Exception {
      log.debug(Scheduler.class, "calling scheduleJob(obj)");
      ...
      return;
      }

      --- ServiceMBean interface

      public void scheduleJob() throws Exception;
      public void scheduleJob(FieldObj obj) throws Exception;