Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RMI problem

Status
Not open for further replies.

globos

Programmer
Nov 8, 2000
260
FR
I have a RMI server object that can send an instance of a class named TreeNode(which job is to manipulate trees) to a client.
It has been developped and tested under Visual Age, it works well but when I use a client in a JSP page, an InvalidClassException is thrown.
The problem seems not to be a Serialization error.

This the code in the JSP page

<%
try
{// Get the TreeNode from the RMI server
TreeNode node = TechServer.sharedInstance().getDataTree ();
}
catch (Exception e)
{
}
%>

And the exception is :

error unmarshalling return; nested exception is: java.io.InvalidClassException: tech.utils.tree.TreeNode; Local class not compatible: stream classdesc serialVersionUID=5433768972844621747 local class serialVersionUID=-5771867224984870183

Pffff, it is very painful.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top