S
sinleeh
I was trying to do serialization but have problems writing object with
ObjectOutputStream.writeObject().
The problem is that ObjectOutputStream.writeObject() sometimes fails
the serialize object mysteriously. It serialize objectA by itself OK,
but when you use objectA as data member of objectB and serialize
objectB, it fails.
My latest problem is about serializing a java.util.List of String. When
the said list is a data member in objectA, serialization OK. However,
when I put objectA inside objectB and serialize objectB, serialization
failed unless I remove the List of String in objectA.
The problem is not unique to list of string and it is known to happen
on other objects.
I am pretty sure it is something I did but just cannot figure out how.
Can anyone point out how to solve this problem or a workaround?
Also, can someone recommend a book on serialization.
Many thanks in advance.
Sinlee Huang.
P.S. Please reply to this newsgroup only coz I do not check the hotmail
account I am using
ObjectOutputStream.writeObject().
The problem is that ObjectOutputStream.writeObject() sometimes fails
the serialize object mysteriously. It serialize objectA by itself OK,
but when you use objectA as data member of objectB and serialize
objectB, it fails.
My latest problem is about serializing a java.util.List of String. When
the said list is a data member in objectA, serialization OK. However,
when I put objectA inside objectB and serialize objectB, serialization
failed unless I remove the List of String in objectA.
The problem is not unique to list of string and it is known to happen
on other objects.
I am pretty sure it is something I did but just cannot figure out how.
Can anyone point out how to solve this problem or a workaround?
Also, can someone recommend a book on serialization.
Many thanks in advance.
Sinlee Huang.
P.S. Please reply to this newsgroup only coz I do not check the hotmail
account I am using