3 Replies Latest reply on Nov 10, 2004 3:41 AM by dimitris

    Array return type from ACTION fails to deploy

      Are there restrictions on JMX operation return types? Probably an RTFM solution but nothing jumped out at me. Got this error deploying. String array also croaked.

      Exception: ...
      Caused by: java.lang.IllegalArgumentException: Return type is not a valid java identifier (or is reserved): Foo[]


      /*
      * @jmx.managed-operation impact="ACTION" description="Foo"
      *
      * @return Foo array
      */
      public Foo[] generateFoo() { ... }


      Foo
      generateFoo
      <return-type>Foo[]</return-type>