adding serialVersionUID for error code example Example: serialversionuid java ANY-ACCESS-MODIFIER static final long serialVersionUID = 42L;