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

    IntrospectionException for method int[] getxy()

    microbiotic

      Hi,

      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>
       <name>getMessageIds</name>
       <return-type>int[]</return-type>
       <descriptors>
       </descriptors>
       </operation>
      [...]
      


      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!
      regards,
      Marcel

      I'm using JBoss 3.2.3 and xdoclet1.2b4