wrote:
>>How exactly does it "fail"?
>
>
> That's the strange thing. The function call never return. In other
> words, it hangs the program. There are no significant CPU activity.
>
> The following is the code sniplet for serialization used. model1 is the
> objectB on previous message.
>
> PipedOutputStream out = new PipedOutputStream();
> PipedInputStream in = new PipedInputStream(out);
> ObjectOutputStream oos = new ObjectOutputStream(out);
> oos.writeObject(model1);
>
> It does not like the last line.
Since I don't see any code (should be a separate thread) reading the
pipe, I'd guess that you're filling up the pipe. The capacity is not
infinite and you're probably blocking on the write.
--
Java/J2EE/JSP/Struts/Tiles/C/UNIX consulting and remote development.