An RMI application is totally compiled in JDK 1.4 and the JRE being used is also 1.4. But when the remote client tries to contact this server (compiled in JDK 1.4) in the RMI registry it gives an error:-
Actually it seems that serializablity problems arise between different versions of JDK. When the server is on a different version and the client is on a different version, the rmi services does not get invoked. The JDK does not support this , i believe. It identifies the 2 different Stub files with different serial numbers and says they are not compatible.
It seems that the 'rmic' command gives options for JDK 1.1 and 1.2 compatability only using -v1.1 and -v1.2 options respectively. So what about compatability between JDK 1.3 and JDK 1.4?