• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with serializabled objects  RSS feed

 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, i'm using a servlet on my server and a applet that communicate with the servlet to request/reponse data.
i've got a problem with sending a serializable class because although in the servlet's jar and the applet's jar there is the class of the serialized object when trying writing object method to translate it back to and obj he can't find a match 'cause the class that create the object is not the same file class thet the writing method trying to cast to it.

what can i do?
10x ahead,
netanel
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't deserialize an object without having access to a class compatible with the class the object was created from.
Are you getting a deserializing error or a class casting error?
Bill
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!