diff --git a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceExceptions.java b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceExceptions.java index de581a042..ecd046c8a 100644 --- a/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceExceptions.java +++ b/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceExceptions.java @@ -68,7 +68,7 @@ public class PersistenceExceptions try { throwing = true; if (em.isOpen() && ((EntityManagerImpl) em).isActive()) - ((EntityManagerImpl) em).setRollbackOnly(re); + ((EntityManagerImpl) em).setRollbackOnly(ex); } finally { // handle re-entrancy throwing = false;