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
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