Replace method signature
public abstract void commit() throws RollbackException,
HeuristicMixedException, HeuristicRollbackException,
SecurityException, SystemException;
with
public abstract void commit() throws RollbackException,
HeuristicMixedException, HeuristicRollbackException,
SecurityException, IllegalStateException, SystemException;