0 Replies Latest reply on Apr 27, 2006 6:45 AM by Fredrik

    NoSuchMethodError when calling org.jboss.mx.util.MBeanProxyE

    Fredrik Newbie

      Hi.

      Running the all configuration (jboss 4.0.3) (enuring that the jar containing MBeanProxyExt is present in the /server/all/lib directory) I get "java.lang.NoSuchMethodError: org.jboss.mx.util.MBeanProxyExt.create(Ljava/lang/Class;Ljava/lang/String;Ljavax/management/MBeanServer;)Lorg/jboss/cache/TreeCacheMBean;"
      when executing the line
      cache = (TreeCacheMBean)MBeanProxyExt.create(TreeCacheMBean.class, "jboss.cache:service=FAPASTreeCache", server);

      The strange thing is: when remote debugging from eclipse, inspecting the line (right click -> inspect) gives me a "($Proxy66) MBeanProxyExt[jboss.cache:service=FAPASTreeCache]"

      Why is jboss looking for a create method in MBeanProxyExt that returns TreeCacheMBean? Every create method in MBeanProxyExt returns Object?

      Sincerely,

      Fredrik