[jboss-user] [Management, JMX/JBoss] - JMX on JBoss Problem
alexanderb
do-not-reply at jboss.com
Wed Apr 16 08:40:10 EDT 2008
Hello All
I have couple problem with invocation method via JMX in JBoss. Iâm trying to access from JBoss application to another (other JVM) application which has JMX interface
| <MBEAN_PROXY> MBEAN_PROXY getProxy(Class <MBEAN_PROXY> clazz) throws MalformedObjectNameException, NullPointerException, IOException{
| JMXConnector c = (JMXConnector) JMXConnectorFactory.connect(new JMXServiceURL(url));
| MBEAN_PROXY result = MBeanServerInvocationHandler.newProxyInstance(c.getMBeanServerConnection(), new ObjectName(beanId), clazz,false);
| return result;
| }
|
this code works fine on separate JVM but on jboss this code throws Exception
| 2008-04-16 15:48:44,667 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException
| 2008-04-16 15:48:44,667 ERROR [STDERR] at $Proxy129.enumeratePlugins(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at com.synapsense.registrar.RegistrarSvcImpl.registerComponent(RegistrarSvcImpl.java:76)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,667 ERROR [STDERR] at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:79)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:191)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:95)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:166)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.security.RoleBasedAuthorizationInterceptor.invoke(RoleBasedAuthorizationInterceptor.java:115)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:110)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:46)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:329)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceContainer.localInvoke(ServiceContainer.java:294)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.ejb3.service.ServiceMBeanDelegate.invoke(ServiceMBeanDelegate.java:215)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.jmx.connector.invoker.SerializableInterceptor.invoke(SerializableInterceptor.java:74)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:818)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:419)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] Caused by: javax.management.InstanceNotFoundException: com.synapsense.plugin.manager.jmx:type=DeviceManager
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.mbeanserver.JmxMBeanServer.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl$5.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl.getClassLoaderFor(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.reflect.Method.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at java.lang.Thread.run(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at sun.rmi.server.UnicastRef.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnectionImpl_Stub.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] at javax.management.MBeanServerInvocationHandler.invoke(Unknown Source)
| 2008-04-16 15:48:44,683 ERROR [STDERR] ... 78 more
|
The question is "Is it possible to fix this problem?"
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144461#4144461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144461
More information about the jboss-user
mailing list