IllegalArgumentException catched for PrimaryKey type mismatch