NotSerializableException means you are trying to serialise an object which has some field or other which doesn't implement the java.io.Serializable interface, or doesn't implement the Serializable interface itself. More details here.
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad: