J
Jonn
Hi,
I'm building a server/client program and have problems using
ObjectOutputStreams (OOS). I'm trying to writeObject() a custom object into
an OOS, but for some reason the program hangs. If I write a String into it,
using writeObject(), all works fine. But my own object hangs using the very
same method.
First when I create an OOS from a Socket.getOutputStream(), writeObject()
some objects into it, flush() all goes well. Then I start a new Thread for
the input-loop, receive objects from it, and try to return those objects
through OOS (that was working just fine a moment earlier) but it won't work
anymore. The objects are serialized, I've called flush() after write, and
tried also OOS.reset() before writing into OOS, but nothing seems to help.
Also no Exceptions are generated.
Any ideas where I'm going wrong?
Jonn
I'm building a server/client program and have problems using
ObjectOutputStreams (OOS). I'm trying to writeObject() a custom object into
an OOS, but for some reason the program hangs. If I write a String into it,
using writeObject(), all works fine. But my own object hangs using the very
same method.
First when I create an OOS from a Socket.getOutputStream(), writeObject()
some objects into it, flush() all goes well. Then I start a new Thread for
the input-loop, receive objects from it, and try to return those objects
through OOS (that was working just fine a moment earlier) but it won't work
anymore. The objects are serialized, I've called flush() after write, and
tried also OOS.reset() before writing into OOS, but nothing seems to help.
Also no Exceptions are generated.
Any ideas where I'm going wrong?
Jonn