Using jboss 3.2.7 (clinet and server side)
Using mc4j 1.2 beta 9 for windows.
Using JDK 1.4.2_8
I'm getting exceptions when trying to listen to a
notification. Looks like the registration fails, since
notification will not get logged in turn:
java.lang.reflect.UndeclaredThrowableException
at $Proxy16.addNotificationListener(Unknown Source)
at
org.mc4j.console.bean.notification.NotificationNode.toggleNotification(NotificationNode.java:116)
at
org.mc4j.console.bean.notification.NotificationNode$ListenAction.performAction(NotificationNode.java:271)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at
sun.reflect.GeneratedMethodAccessor92.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Caused by: java.lang.reflect.InvocationTargetException
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:324)
at
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
... 16 more
Caused by: java.lang.IllegalArgumentException: wrong
number of arguments
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:324)
at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:258)
at
sun.reflect.GeneratedMethodAccessor76.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:164)
at
sun.reflect.GeneratedMethodAccessor75.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at
sun.reflect.GeneratedMethodAccessor74.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
java.lang.reflect.InvocationTargetException
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:324)
at
org.mc4j.console.connection.proxy.GenericMBeanServerProxy.invoke(GenericMBeanServerProxy.java:79)
at $Proxy16.addNotificationListener(Unknown Source)
at
org.mc4j.console.bean.notification.NotificationNode.toggleNotification(NotificationNode.java:116)
at
org.mc4j.console.bean.notification.NotificationNode$ListenAction.performAction(NotificationNode.java:271)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at
sun.reflect.GeneratedMethodAccessor92.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Caused by: java.lang.IllegalArgumentException: wrong
number of arguments
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:324)
at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:258)
at
sun.reflect.GeneratedMethodAccessor76.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:164)
at
sun.reflect.GeneratedMethodAccessor75.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at
sun.reflect.GeneratedMethodAccessor74.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)
==>
java.lang.IllegalArgumentException: wrong number of
arguments
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:324)
at
org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:258)
at
sun.reflect.GeneratedMethodAccessor76.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:164)
at
sun.reflect.GeneratedMethodAccessor75.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:62)
at
org.jboss.mx.server.Invocation.dispatch(Invocation.java:54)
at
org.jboss.mx.server.Invocation.invoke(Invocation.java:82)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:198)
at
org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:360)
at
sun.reflect.GeneratedMethodAccessor74.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native
Method)
at
sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
[catch] at java.lang.Thread.run(Thread.java:534)
Creating a watch on a variable also creates exceptions:
java.lang.reflect.InvocationTargetException
at
sun.reflect.GeneratedMethodAccessor92.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Caused by: java.lang.NullPointerException
at org.openide.nodes.Node.<init>(Node.java:189)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:143)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:124)
at
org.mc4j.console.bean.attribute.watch.monitor.AbstractMonitorNode.<init>(AbstractMonitorNode.java:55)
at
org.mc4j.console.bean.attribute.watch.monitor.BeanMonitorNode.<init>(BeanMonitorNode.java:85)
at
org.mc4j.console.bean.attribute.watch.CreateMonitorAction.performAction(CreateMonitorAction.java:62)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
[catch] ... 10 more
==>
java.lang.NullPointerException
at org.openide.nodes.Node.<init>(Node.java:189)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:143)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:124)
at
org.mc4j.console.bean.attribute.watch.monitor.AbstractMonitorNode.<init>(AbstractMonitorNode.java:55)
at
org.mc4j.console.bean.attribute.watch.monitor.BeanMonitorNode.<init>(BeanMonitorNode.java:85)
at
org.mc4j.console.bean.attribute.watch.CreateMonitorAction.performAction(CreateMonitorAction.java:62)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:74)
at
sun.reflect.GeneratedMethodAccessor92.invoke(Unknown
Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:179)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
Annotation: Exception occurred in Request Processor
java.lang.NullPointerException
at org.openide.nodes.Node.<init>(Node.java:189)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:143)
at
org.openide.nodes.AbstractNode.<init>(AbstractNode.java:124)
at
org.mc4j.console.bean.attribute.watch.monitor.AbstractMonitorNode.<init>(AbstractMonitorNode.java:55)
at
org.mc4j.console.bean.attribute.watch.monitor.BeanMonitorNode.<init>(BeanMonitorNode.java:85)
at
org.mc4j.console.bean.attribute.watch.CreateMonitorAction.performAction(CreateMonitorAction.java:62)
at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.actionPerformed(CallableSystemAction.java:247)
at
org.openide.util.actions.CallableSystemAction.invokeAction(CallableSystemAction.java:185)
at
org.openide.util.actions.CallableSystemAction.access$000(CallableSystemAction.java:31)
at
org.openide.util.actions.CallableSystemAction$ActionRunnable.doRun(CallableSystemAction.java:241)
at
org.openide.util.actions.CallableSystemAction$2.run(CallableSystemAction.java:111)
at org.openide.util.Task.run(Task.java:136)
at
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:330)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:686)
I did add -Djava.rmi.server.hostname=localhost as
hinted on the web page.