I'm working on setting up monitoring for test and production for our JBoss ESB server 4.4 and have run into something that I think may be a bug. I've set up several services in my ESB service and want to check the MessageCounter for the service.
To try to see if I could read the number of messages I've tried to use the Twiddle interface:
~/jbossesb-server-4.4.GA/bin/twiddle.sh query jboss.esb:category=MessageCounter,deployment=saplink.esb,service-name=InvoicingSAPService
~/jbossesb-server-4.4.GA/bin/twiddle.sh get jboss.esb:category=MessageCounter,deployment=saplink.esb,service-name=InvoicingSAPService
13:08:49,032 ERROR [Twiddle] Exec failed java.lang.NullPointerException at org.jboss.soa.esb.listeners.message.ServiceMessageCounter.getAttributes(ServiceMessageCounter.java:300)
InvokeSapInvoicing processing time java.lang.Double R null Property InvokeSapInvoicing processing time
I suspect this was a bug in the MBean itself and believe it is fixed in trunk.
Could you try building from trunk and let us know if you still see the issue?
Apologies for this and thanks in advance for your help.
Kev