[jdom-interest] communication between an application and an applet
g8901 at cs.nccu.edu.tw
Thu Jul 5 22:24:38 PDT 2001
I have a problem about sending an Element object between an application and an applet.
My sample codes are below :
out = new ObjectOutputStream(socket.getOutputStream());
Element test = (new Element("Test")).setAttribute("message", "hello");
Element msg = (Element)in.readObject();
At this step, java console shows that an InvalidClassException about ArrayList is thrown.
Is it a serialization problem between an application and an applet?
Can I solve the problem if I did not install jdk1.2 plug-in and instead of putting all jdk1.2 classes in the applet directory?
PS. the communication between applications work.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the jdom-interest