I’m using socketserver to send some data via ObjectOutputStream. It works fine for any standard Java object, but I can’t send my custom objects. I get
java.io.NotSerializableException: MyObject.
I don’t know anything about serialization, but I did it, where Eclipse told so. Also tried remove it everywhere, nothing helps. My object is inherit from an other custom abstract class, didn’t test it to other custom objects yet.
Your object must implement
Serializable. Your “custom” abstract class must also be serializable. If you cannot change the abstract class (i.e. it’s not under your control), then the following applies:Regarding your sentence:
Then I suggest you go and do some research … Start by reading:
SerializableJavadocObjectOutputSteamJavadoc