In a Stateful Session EJB, I have one member object which implements serializable and have readObject() and writeObject() methods implemented. When the EJB passivates, it calls ejbPassivate() method on EJB but never calls the writeObject() method of member object.
When it activatges the EJB it doesnot have proper meber object, so it is giving null pointer exception.