Adrian Bartholomew wrote:
>Actually its the classdesc that's not taking my hard coded value :
>java.io.InvalidClassException: com.[packagename].shared.model.User; local
>class incompatible: stream classdesc serialVersionUID =
>-2102598104259217202, local class serialVersionUID = 1
That classdesc serialVersionUID looks like an automatically generated value.
Assuming that exception is thrown on the server, then it's telling you that
your client code is not using the User class where the serialVersionUID =
1. That means your client and server are not running compatible User
classes, where "compatible" means compatible under Serializable rules.
You should quit your client app (whatever it is), recompile the client jar
so it has the User class where serialVersionUID = 1, then relaunch your
client.
If the problem still occurs, then please describe how you're running your
client (browser applet? double-clicked jar-file? command-line?) and also
how you're running your server.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden
This email sent to email@hidden