*
The moose likes Distributed Java and the fly likes local class incompatible Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "local class incompatible" Watch "local class incompatible" New topic
Author

local class incompatible

saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
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
Saravana


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

Joined: Dec 31, 2004
Posts: 961
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.
[ October 06, 2006: Message edited by: Edwin Dalorzo ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: local class incompatible
 
Similar Threads
EJB QL: Comparing a Dependent Value CMP Field
local class incompatible
Strange Serialization issue - serialVersionUID need on an interface!?!
Serialization thingymabob???
jasper reports -Plz help me out