Saving a schedule object, throws a java exception