0 Replies Latest reply on Jul 15, 2014 12:22 PM by Dimuthu Senanayaka

    passing an argumnet at invoking a mbean method via jmx - twiddle.sh

    Dimuthu Senanayaka Newbie

      Hi All,

       

      I am trying to invoke a mbean method as below. method takes a one parameter.

       

      method Signature: getEventsRouted(javax.slee.EventTypeID eventTypeId)

       

      when I call the above method over jmx-console web gui with below parameter, method successfully responses.

      Argument passed over jmx-console web gui: EventTypeID[name=ss7.cap.service.circuitSwitchedCall.INITIAL_DP_REQUEST,vendor=org.mobicents,version=1.0]

       

      But when i call it via twiddle.sh as below it gives an exception. Much helpful if you could let me know, how this method can be called programatically(via twiddle.sh is ok) ?. I have invoked methods which takes boolean/int/String as parameters via twiddle and they works well.

       

      The way how I call the method over twiddle

      ./twiddle.sh -s localhost:1099 -a jmx/rmi/RMIAdaptor invoke "org.mobicents.slee:name=EventRouterStatistics" getEventsRouted "EventTypeID[name=ss7.cap.service.circuitSwitchedCall.INITIAL_DP_REQUEST,vendor=org.mobicents,version=1.0]";

       

      Exception

      java.lang.ClassNotFoundException: javax.slee.EventTypeID

              at java.net.URLClassLoader$1.run(URLClassLoader.java:366)

              at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

              at org.jboss.util.propertyeditor.PropertyEditors.findEditor(PropertyEditors.java:159)

              at org.jboss.util.propertyeditor.PropertyEditors.getEditor(PropertyEditors.java:196)

              at org.jboss.console.twiddle.command.InvokeCommand.invoke(InvokeCommand.java:228)

              at org.jboss.console.twiddle.command.InvokeCommand.execute(InvokeCommand.java:291)

              at org.jboss.console.twiddle.Twiddle.main(Twiddle.java:306)

       

       

      Thank you.

       

      Regards,

      Dimuthu.