2 Replies Latest reply on Jun 3, 2005 3:06 PM by jason1

    twiddle invoke fails on ObjectName

    jason1 Newbie

      I've been able to list the MBeans in my server. Then, I take one of the ObjectNames and do this command:


      C:\appview\source\j007\jboss-4.0.2\bin>twiddle -s localhost:2099 invoke jboss:service=JNDIView list true


      Here is the sample from the JBoss documentation. It is not much different.
      ./twiddle.sh invoke jboss:service=JNDIView list true


      I get this error:

      11:21:49,687 ERROR [Twiddle] Exec failed
      javax.management.MalformedObjectNameException: jboss:service is not a valid ObjectName. Invalid key/value data service

      at javax.management.ObjectName.initProperties(Ljava.lang.String;Ljava.lang.String;)V(ObjectName.java:737)
      at javax.management.ObjectName.init(Ljava.lang.String;)V(ObjectName.java:564)
      at javax.management.ObjectName.(Ljava.lang.String;)V(ObjectName.java:326)
      at org.jboss.console.twiddle.command.MBeanServerCommand.queryMBeans(Ljava.lang.String;)[Ljavax.management.Object
      Name;(MBeanServerCommand.java:56)
      at org.jboss.console.twiddle.command.InvokeCommand.execute([Ljava.lang.String;)V(InvokeCommand.java:262)
      at org.jboss.console.twiddle.Twiddle.main([Ljava.lang.String;)V(Twiddle.java:293)

      Can anyone tell me how to get twiddle to recognize a valid ObjectName?