Re: Not a NotificationBroadcaster...

Alper Akture <[email protected]>
Newsgroups gmane.comp.java.mx4j.user
Message-ID <DB67197B2E16D411831E00508B7156690262325B@caysapp001.intersperse.com>
I don't know if this is your problem (if not, you may run into this as
well), but I had problems when client and server were not using the same VM
version, due to the different serial id of the ObjectName class. The only
solution I could find was to run them both with the same version. 
 
Alper

-----Original Message-----
From: Kimpton, C (Chris) [mailto:[email protected]]
Sent: Tuesday, November 14, 2006 7:14 AM
To: [email protected]
Subject: Not a NotificationBroadcaster...


Hello List,
 
Some background...
We are moving more to JDK1.5, we have a central JMX MBean repository server
- the rest of app runs in multiple JVMs each of which registers their mbeans
with the central server (via RMI/jsr 160).
 
Admittedly we are still using MX4J 2.0.1 - I will try with 3.0.2 shortly.
My first thoughts are that some of the jsr 160 apis have changed since 2.0.1
and so the upgrade will fix this.
 
The problem we have noticed when the repository server is JDK1.5 and the
client is not, is that we sometimes get this error on the server:
 
Nov-14 12:46:42.032  INFO : java.lang.IllegalArgumentException: MBean
YYY:process=XXX[kimptc],app=XXX,user=landar is not a NotificationBroadcaster
        at
mx4j.server.MX4JMBeanServer.addNotificationListener(MX4JMBeanServer.java:525
)
        at
mx4j.remote.rmi.RMIConnectionInvoker.addNotificationListeners(RMIConnectionI
nvoker.java:279)
        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
mx4j.remote.rmi.RMIConnectionProxy.invoke(RMIConnectionProxy.java:36)
        at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.chain(RMIConnectionSubjectInvoke
r.java:98)
        at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.access$000(RMIConnectionSubjectI
nvoker.java:32)
        at
mx4j.remote.rmi.RMIConnectionSubjectInvoker$1.run(RMIConnectionSubjectInvoke
r.java:89)
        at java.security.AccessController.doPrivileged(Native Method)
        at
mx4j.remote.MX4JRemoteUtils.subjectInvoke(MX4JRemoteUtils.java:135)
        at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.subjectInvoke(RMIConnectionSubje
ctInvoker.java:85)
        at
mx4j.remote.rmi.RMIConnectionSubjectInvoker.invoke(RMIConnectionSubjectInvok
er.java:61)
        at $Proxy2.addNotificationListeners(Unknown Source)
        at
javax.management.remote.rmi.RMIConnectionImpl.addNotificationListeners(RMICo
nnectionImpl.java:104)
        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
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:7
01)
        at java.lang.Thread.run(Thread.java:536)

Many thanks in advance,
Chris
 
 

;Arial;


This email (including any attachments to it) is confidential, legally
privileged, subject to copyright and is sent for the personal attention of
the intended recipient only. If you have received this email in error,
please advise us immediately and delete it. You are notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. Although we have taken
reasonable precautions to ensure no viruses are present in this email, we
cannot accept responsibility for any loss or damage arising from the viruses
in this email or attachments. We exclude any liability for the content of
this email, or for the consequences of any actions taken on the basis of the
information provided in this email or its attachments, unless that
information is subsequently confirmed in writing. If this email contains an
offer, that should be considered as an invitation to treat. 




_____________________________________________________________

This email (including any attachments to it) is confidential, legally
privileged, subject to copyright and is sent for the personal attention of
the intended recipient only. If you have received this email in error,
please advise us immediately and delete it. You are notified that
disclosing, copying, distributing or taking any action in reliance on the
contents of this information is strictly prohibited. Although we have taken
reasonable precautions to ensure no viruses are present in this email, we
cannot accept responsibility for any loss or damage arising from the viruses
in this email or attachments. We exclude any liability for the content of
this email, or for the consequences of any actions taken on the basis of the
information provided in this email or its attachments, unless that
information is subsequently confirmed in writing. If this email contains an
offer, that should be considered as an invitation to treat.
_____________________________________________________________

-------------------------------------------------------------------------
SF.net email is sponsored by: A Better Job is Waiting for You - Find it Now.
Check out Slashdot's new job board. Browse through tons of technical jobs
posted by companies looking to hire people just like you.
http://jobs.slashdot.org/

_______________________________________________
Mx4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mx4j-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.