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

    Array return type from ACTION fails to deploy

    treespace Novice

      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>