General information
Title:
Java RMI Serialization
Hi!
I'm trying to serialize an object and pass it to another via RMI, it works while I'm using the same NFS but when trying to work with external machines I get this error message:
java -Djava.security.policy=file:/users/research/hectorgh/generic/policy
-Djava.rmi.server.codebase=file:/users/research/hectorgh/genserver/client/
generic.Client
Client: Montecarlo instance = rmontec
Client: lookup for genericServer in rmi://electra:1880/genericServer
Client: Connection Established
Trying to get results...Error in processing Montecarlo java.rmi.ServerException:
RemoteException occurred in server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.io.InvalidClassException: generic.Montecarlo; Local class not
compatible: stream classdesc serialVersionUID=1346677330895002030 local class
serialVersionUID=-14200620081802263
Exception in thread "main" java.rmi.ServerException: RemoteException occurred in
server thread; nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments; nested
exception is:
java.io.InvalidClassException: generic.Montecarlo; Local class not
compatible: stream classdesc serialVersionUID=1346677330895002030 local class
serialVersionUID=-14200620081802263
java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.io.InvalidClassException: generic.Montecarlo; Local class not
compatible: stream classdesc serialVersionUID=1346677330895002030 local class
serialVersionUID=-14200620081802263
java.io.InvalidClassException: generic.Montecarlo; Local class not compatible:
stream classdesc serialVersionUID=1346677330895002030 local class
serialVersionUID=-14200620081802263
at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:245)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at generic.RIntImpl_Stub.Function(Unknown Source)
at generic.Client.main(Client.java:54)
make: *** [Client] Error 1
I'm suspecting that it's a User privileges Error, but I don't know how to fix it, If any Ideas please let me know, thank you.
Best Regards, Hector
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only