2 Replies Latest reply on Sep 21, 2005 8:56 AM by Don Hill

    Problem getting mbean server

    Don Hill Newbie


      I am having problems on some machines with the following code.

      List server = MBeanServerFactory.findMBeanServer(null);
      MBeanServer beanServer = (MBeanServer) server.get(0);

      On some meachines running jboss-4.0.2 on sun jdk 1.4.2_05I get an

      ava.lang.IndexOutOfBoundsException: Index: 0, Size: 0
      at java.util.ArrayList.RangeCheck(ArrayList.java:507)
      at java.util.ArrayList.get(ArrayList.java:324)

      Any thought what could be causing this problem.