ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Foxworthy <p...@cohsoft.com.au>
Subject Re: Not committing transaction, status is No Transaction (6)
Date Wed, 09 Nov 2011 05:47:18 GMT
Hi Justin,

I'll bet the sequences of events is:

TransactionUtil.begin starts a transaction
An error condition causes the transaction to roll back
The call to TransactionUtil.commit fails with the error you describe,
because after the rollback there isn't a transaction any more.



for a description of the status codes. For STATUS_NO_TRANSACTION, it says

"No transaction is currently associated with the target object. This will
occur after a transaction has completed."


Paul Foxworthy

justin.g.robinson wrote:
> How the transactions work is a bit of a mystery to me.
> Can anyone give me a bit of background on what "Not committing
> transaction,
> status is No Transaction (6)" is or rather what conditions result it it.
> I have something like this
> TransactionUtil.begin()
> for(:){
> try/catch
> some db related code that may throw exceptions
> }
> TransactionUtil.commit()
> Any clues would be helpful, have often had this problem but have never
> gotten to the bottom of why it happens.
> -- 
> Regards,
> Justin
> Venture-Net Research & Development

View this message in context: http://ofbiz.135035.n4.nabble.com/Not-committing-transaction-status-is-No-Transaction-6-tp3975397p4018798.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

View raw message