Twiddle command throws "InstanceNotFoundException" when JBoss EAP server is stared with -b option

Solution Unverified - Updated -

Issue

  • Why twiddle command fails to execute with following error when JBoss EAP server is stared with -b option?
[admin@admin bin]$ ./twiddle.sh -u admin -p admin -s 127.0.0.1:1099 get "jboss.web:type=ThreadPool,name=http-aaa.bbb.com/127.0.0.1-8080"

10:32:40,762 ERROR [Twiddle] Exec failed
javax.management.InstanceNotFoundException: jboss.web:type=ThreadPool,name=http-aaa.bbb.com/127.0.0.1-8080 is not registered.
        at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistry.java:523)
        at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java:666)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
        at sun.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  • How to find the MBean's actual name to execute twiddle command?

Environment

  • JBoss Enterprise Application Platform [EAP]
    • 4.x
    • 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content