I am testing Spring JMX and weblogic 8.1.4
I am able to register mbean with the server. I can see my bean via MC4J. However when I am trying to invoke the method I am getting this exception:
Here is a snippet of my configuration:java.lang.reflect.UndeclaredThrowableException at $Proxy10.invoke(Unknown Source) at org.mc4j.console.bean.operation.OperationExecution ResultsVisualPanel$2.run(OperationExecutionResults VisualPanel.java:126) at java.lang.Thread.run(Thread.java:534) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.mc4j.console.connection.proxy.GenericMBeanServ erProxy.invoke(GenericMBeanServerProxy.java:79) ... 3 more Caused by: javax.management.ReflectionException: The target object class class javax.management.modelmbean.ModelMBeanOperationInf o could not be found at weblogic.rjvm.BasicOutboundRequest.sendReceive(Bas icOutboundRequest.java:108) at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicR emoteRef.java:137) at weblogic.management.internal.RemoteMBeanServerImpl _814_WLStub.invoke(Unknown Source) ... 8 more java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.mc4j.console.connection.proxy.GenericMBeanServ erProxy.invoke(GenericMBeanServerProxy.java:79) at $Proxy10.invoke(Unknown Source) at org.mc4j.console.bean.operation.OperationExecution ResultsVisualPanel$2.run(OperationExecutionResults VisualPanel.java:126) at java.lang.Thread.run(Thread.java:534) Caused by: javax.management.ReflectionException: The target object class class javax.management.modelmbean.ModelMBeanOperationInf o could not be found at weblogic.rjvm.BasicOutboundRequest.sendReceive(Bas icOutboundRequest.java:108) at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicR emoteRef.java:137) at weblogic.management.internal.RemoteMBeanServerImpl _814_WLStub.invoke(Unknown Source) ... 8 more javax.management.ReflectionException: The target object class class javax.management.modelmbean.ModelMBeanOperationInf o could not be found at weblogic.rjvm.BasicOutboundRequest.sendReceive(Bas icOutboundRequest.java:108) at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicR emoteRef.java:137) at weblogic.management.internal.RemoteMBeanServerImpl _814_WLStub.invoke(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.mc4j.console.connection.proxy.GenericMBeanServ erProxy.invoke(GenericMBeanServerProxy.java:79) at $Proxy10.invoke(Unknown Source) at org.mc4j.console.bean.operation.OperationExecution ResultsVisualPanel$2.run(OperationExecutionResults VisualPanel.java:126) at java.lang.Thread.run(Thread.java:534)
I appreciate any help.Code:<bean id="profilingInterceptor" class="shaw.spectrum.framework.aop.ProfilingInterceptor"> <property name="enableProfiling" value="true"/> </bean> <bean id="adapter" class="org.springframework.jmx.export.MBeanExporter"> <property name="beans"> <map> <entry key="spring:name=profilingInterceptor" value-ref="profilingInterceptor"/> </map> </property> <property name="server" ref="mbeanServer"/> </bean> <bean id="mbeanServer" class="org.springframework.jmx.support.WebLogicJndiMBeanServerFactoryBean"> </bean>
Thanks,
Vitaliy


Reply With Quote