1 Reply Latest reply on Apr 11, 2006 6:34 PM by Scott Stark

    AbstractMBeanInvoker.initDispatchers called twice

    Dimitris Andreadis Master

      While looking into some other bug, I noticed AbstractMBeanInvoker.initDispatchers() is called 2 times, as seen below. The stack trace is for a model mbean, but is quite similar for a standard mbean.

      The offending statement seems to be in ModelMBeanInvoker.

      Is there any known reason for this, like the dispatcher have to reconfigure for some reason?

      Thanks

       protected void init(MBeanServer server, ObjectName name)
       throws Exception
       {
       ModelMBeanInfo minfo = (ModelMBeanInfo) info;
       configureInterceptorStack(minfo, server, name);
       initDispatchers(); <---- HERE
      

      The first
      at org.jboss.mx.server.AbstractMBeanInvoker.initDispatchers(AbstractMBeanInvoker.java:1055)
      at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:649)
      at javax.management.modelmbean.RequiredModelMBean.preRegister(RequiredModelMBean.java:275)
      at org.jboss.mx.server.RawDynamicInvoker.preRegister(RawDynamicInvoker.java:223)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)
      


      The second
      at org.jboss.mx.server.AbstractMBeanInvoker.initDispatchers(AbstractMBeanInvoker.java:1055)
      at org.jboss.mx.modelmbean.ModelMBeanInvoker.init(ModelMBeanInvoker.java:505)
      at org.jboss.mx.modelmbean.ModelMBeanInvoker.invokePreRegister(ModelMBeanInvoker.java:486)
      at org.jboss.mx.server.AbstractMBeanInvoker.preRegister(AbstractMBeanInvoker.java:651)
      at javax.management.modelmbean.RequiredModelMBean.preRegister(RequiredModelMBean.java:275)
      at org.jboss.mx.server.RawDynamicInvoker.preRegister(RawDynamicInvoker.java:223)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.invokePreRegister(BasicMBeanRegistry.java:697)
      at org.jboss.mx.server.registry.BasicMBeanRegistry.registerMBean(BasicMBeanRegistry.java:211)