You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Joerg Lensing <in...@softcon-lensing.de> on 2003/06/23 13:53:55 UTC

abort transaction causes TransactionNotInProgressException

Hello,
pleas look at this code:

        Transaction tx = getActiveTransaction();
        if(tx.isOpen()) {
            tx.abort();
        }


this causes :

[org.apache.ojb.odmg.TransactionImpl] INFO: Abort transaction was called 
on tx org.apache.ojb.odmg.TransactionImpl@c9161b, associated PB was 
org.apache.ojb.broker.core.PoolablePersistenceBroker@7a9c0f
2003-06-23 13:47:58,031 WARN  - Unhandled Exception thrown: class 
org.odmg.TransactionNotInProgressException


what am I doing wrong?

joerg