3 Replies Latest reply on Jun 15, 2004 9:55 AM by Scott Stark

    IntrospectionException for method int[] getxy()

    microbiotic Newbie


      I'm making my first steps in JMX and got an IntrospectionException for a method which returns an int array.
      The method signature is:

       * @return Array of the message ids.
       * @jmx.managed-operation impact = "INFO" description="Returns an array
       * which contains all overwritten synchronous messages."
       public int[] getMessageIds() {
       int[] result = new int[messages.size()];
       for (int i = 0; i < messages.size(); i++) {
       result = ((MessageType) messages.get(i)).getId();
       return result;

      The generated interface contains the method
      int[] getMessageIds() ;

      The generated XMBean descriptor:
      [other operations and attributes above]
       <operation impact="INFO">
       <description>Returns an array which contains all overwritten synchronous messages.</description>

      But during deployment i get an exception:

      DeploymentException: - nested throwable: (ReflectionException: null
      Cause: javax.management.IntrospectionException: no method found for operation: getMessageIds))

      I think the signature is right - isn't it?

      Thanks for help!

      I'm using JBoss 3.2.3 and xdoclet1.2b4