The Artima Developer Community
Sponsored Link

Java Answers Forum
RMI version Compatibility

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
rahulhn

Posts: 1
Nickname: rahulhn
Registered: Nov, 2003

RMI version Compatibility Posted: Nov 1, 2003 3:50 AM
Reply to this message Reply
Advertisement
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:-

RMI RemoteException: Can't contact RMI registry:Transport return code invalid

The client is compiled in JDK 1.3.

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?

Do you have any solution for this?

Topic: Cannot get program to properly count tokens Previous Topic   Next Topic Topic: Mail Attachment from Client Node

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use