Looks like this is a user error.  I had a deploy script that I did not realize was using Java142.  When I invoked deployer.jar while running with Java15, the deployer worked, and I got no error messages, tracebacks or exceptions.

On 4/17/06, Ted Kirby <ted.kirby@gmail.com> wrote:
I ran a 1.0 server with a Sun JDK5, and it comes up.
 
In another Sun JDK5 window, I ran "deploy list-modules"
The desired result was produced, but I also got these error messages 186 times!:
 
Caught an unexpected exception
java.lang.IllegalArgumentException: Can't add listener to MBean server delegate: java.lang.SecurityException: Operation not allowed
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.createListeners (Unknown Source)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.<init>(Unknown Source)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.getNotificationBuffer(Unknown Source)
 at javax.management.remote.rmi.RMIServerImpl.getNotifBuffer (Unknown Source)
 at javax.management.remote.rmi.RMIConnectionImpl.getServerNotifFwd(Unknown Source)
 at javax.management.remote.rmi.RMIConnectionImpl.fetchNotifications(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at sun.rmi.server.UnicastServerRef.dispatch (Unknown Source)
 at sun.rmi.transport.Transport$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Unknown Source)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages (Unknown Source)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java :264)
 at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:240)
 at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:149)
 at javax.management.remote.rmi.RMIConnectionImpl_Stub.fetchNotifications (Unknown Source)
 at mx4j.remote.rmi.RMIRemoteNotificationClientHandler.fetchNotifications(RMIRemoteNotificationClientHandler.java:37)
 at mx4j.remote.AbstractRemoteNotificationClientHandler$NotificationFetcherThread.fetchNotifications (AbstractRemoteNotificationClientHandler.java:432)
 at mx4j.remote.AbstractRemoteNotificationClientHandler$NotificationFetcherThread.run(AbstractRemoteNotificationClientHandler.java:357)
 at java.lang.Thread.run(Thread.java :570)

Caused by: java.lang.SecurityException: Operation not allowed
 at org.apache.geronimo.kernel.jmx.MBeanServerDelegate.addNotificationListener(MBeanServerDelegate.java:252)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer$1.run (Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.addNotificationListener(Unknown Source)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.createListeners (Unknown Source)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.<init>(Unknown Source)
 at com.sun.jmx.remote.internal.ArrayNotificationBuffer.getNotificationBuffer(Unknown Source)
 at javax.management.remote.rmi.RMIServerImpl.getNotifBuffer (Unknown Source)
 at javax.management.remote.rmi.RMIConnectionImpl.getServerNotifFwd(Unknown Source)
 at javax.management.remote.rmi.RMIConnectionImpl.fetchNotifications(Unknown Source)
 at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at sun.rmi.server.UnicastServerRef.dispatch (Unknown Source)
 at sun.rmi.transport.Transport$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at sun.rmi.transport.Transport.serviceCall(Unknown Source)
 at sun.rmi.transport.tcp.TCPTransport.handleMessages (Unknown Source)
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
 
Any idea what is going on here?
 
Here is org.apache.geronimo.kernel.jmx.MBeanServerDelegate.addNotificationListener:
 
public void addNotificationListener(ObjectName objectName, NotificationListener notificationListener, NotificationFilter notificationFilter, Object o) throws InstanceNotFoundException {
        throw new SecurityException("Operation not allowed");
    }
 
A JMX implementation comes in JDK5.  I presume it is invoking addNotificationListener, which is not invoked by MX4J in JDK1.4.2?
 
Any suggested fix for this?
 
Thanks,
Ted Kirby
 
This issue was discussed a bit back in October (see
http://mail-archives.apache.org/mod_mbox/geronimo-user/200510.mbox/%3cb8b1243f0510210838s4800f034pee7b240b93cc0d83@mail.gmail.com%3e )
What is new here is the "caused by" traceback.