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 [2007-10-3 4:42:39]
# 1

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.

dfuchsa at 2007-7-14 22:46:44 > top of Java-index,Core,Monitoring & Management...
# 2
Daniel,Thanks! That solved the problem with the incompatible classes & exceptions. Now I have to figure out why I didn't get any ObjectNames back. But that's not your problem.Jeff
jeff17a at 2007-7-14 22:46:44 > top of Java-index,Core,Monitoring & Management...