Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Java RMI Serialization
Message
De
02/01/2001 17:19:21
Hector Garces
University of Texas At El Paso
El Paso, Texas, États-Unis
 
 
À
Tous
Information générale
Forum:
Java
Catégorie:
Autre
Titre:
Java RMI Serialization
Divers
Thread ID:
00458677
Message ID:
00458677
Vues:
68
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
Répondre
Fil
Voir

Click here to load this message in the networking platform