This content has been marked as final. Show 2 replies
em.flush apparently cannot do its job because the transaction has already been marked for rollback. That happens generally when either a JPA query fails to execute or when an EJB method is interrupted with an EJBException or a RuntimeException.
So yeah, figure out where the transaction is being marked for rollback.