Serialization - ClassNotFound Exception ?!
Posted by ~Ray @ 2008-01-01 21:15:35
First hallo every one :Second:i have a problem with deserialization i have here 3 machines talk to each others through objects (Called MessageX) this come about through sockets and Object Input & Output Streams now class MessageX is inside the case of each schedule of the 3 machines but once one of them acquire an disapprove at casting it back to the MessageX type i get a nice Exception saying that ClassNotFound Exception so now does that mean that i cant talk through objects [i guess not] and if i can
Object serialization is a way to persist ur objects and it is allowed. It depends upon how u have defined MessageX class. Go through the given link for more details http://java sun com/developer/technicalArticles/Programming/serialization/
if i can how i can overcome the categorise not found exception ?!
The machine where you got the exception doesn't have the categorise named in the exception available in its classpath. It's as simple as that.
Hi. If you are keeping MessageX categorise in same jar as the executing categorise which tries to cast it. Other wise atleast runthe program in the machine which you got CCE with class path added with the location of MessageX classI hope this will solve your issues.[ADVERTHERE]Related article:
http://forum.java.sun.com/thread.jspa?threadID=5235559
0 Comments:
No comments have been posted yet!
|