Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

local class incompatible

 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am getting the following error when i call a remote application. i have attached my program and error.

can anyone of you know how to solve this problem ?

Thanks


My Program
------------------
public class ABCServiceImpl implements ABCService,Serializable {
-
-
-
-
private static final long serialVersionUID = -6944625812039322816L;
public Map verifyLogin(String name,String pwd) {
if(System.getSecurityManager()==null)
{
myRMISecurityManager sm = new myRMISecurityManager();
System.setSecurityManager(sm);
}

try{

WFSessionFactory.createSession(wfEValue, name, pwd, true);
}catch(WFException e )
{
System.out.println("error in connection");

}

}

}

private static class myRMISecurityManager extends RMISecurityManager {

public myRMISecurityManager() {
}
public void checkPermission(Permission perm, Object context) {
}
public void checkPermission(Permission perm ) {
}
}


error
--------
[WKT.020.0019] Remote method invocation failed with RemoteException, com.wm.zeus.pd.rt.RTUser; local class incompatible: stream classdesc serialVersionUID = 5159583942181034859, local class serialVersionUID = -6944625812039322816, reconnection attempt in progress...
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At first sight seems that your client and your server have different versions of the same class com.wm.zeus.pd.rt.RTUser.

If your client and your server are not downloading the code from the same place, probably, the server or the client class in question has been updated with a new version of serialVersionUID.

Make sure that both distributions, client and server, have the same versions of the classes. Or build again the distribution files for server and clients to make sure.
 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Edwin.

As you said the file in server and local were different. now issue has been solved.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic