Java 1.5 incompatible with 1.4?
I'm trying to monitor a J2EE app server that's running in a 1.4 JVM. If my program runs in 1.4, it's fine. If I run my program in a 1.5 JVM I get the following:
java.io.InvalidClassException: javax.management.ObjectName
The serialVersionUID's are different.
Is there anything I can do to run my program in a 1.5 JVM and connect to an app server running in a 1.4 JVM?
[395 byte] By [
jeff17a] at [2008-2-8]

Hi Jeff,
My guess is that your server is running JMX 1.0 - try definining the following
System property in your Java SE 5.0 client:
-Djmx.serial.form=1.0
Note that the property must be defined on the command line.
More info here:
http://weblogs.java.net/blog/emcmanus/archive/2005/07/dealing_with_mu.html
Let me know if this does/doesn't work.
Best regards,
-- daniel
JMX, SNMP, Java, etc...
http://blogs.sun.com/jmxetc
Message was edited by:
dfuchs
Added link to Eamonn's blog.