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.