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 anonymous wrote : 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
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3838769#3838769
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3838769
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user