I'm having a strange problem with an ObjectStream. I am doing a
client/server system with an applet and a servlet. They transmit
messages to each other using ObjectStreams (OutjectOutputStream and
ObjectInputStream,) which may be a naive way to do this, but it seems to
be the easiest way.
At any rate, as is probably typical, I have a couple different "message
packets," Serializable Objects that contain whatever Strings, numbers,
and whatnot that I need to send back and forth. Two of these message
packets each contain an actual Object. When I send such a message
through the ObjectStreams from applet to servlet, I have no problem.
However, when I send a message containing an Object from servlet to
applet, I get an error saying that Objects are not serializable, even
though the only Object I'm sending is one contained inside a
Serializable class.
The problem is successfully worked around by changing that Object in
that message to a Vector instead, but I'm still wondering why I got the
error at all. (Running serialver on the problem message packet show it
to be Serializable.)
john
--
John Brecht
[EMAIL PROTECTED]
Department of Physics and Astronomy
Michigan State University
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html