Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] RollbackException: Transaction rolled back because transaction was set to RollbackOnly

What were the exceptions that you caught?  Lack of any ability to error
handle is a major issue with JPA, please log a bug for this, EclipseLink
should provide an option to allow error handling, and commit retry (these
are possible using the native UnitOfWork API).

As a workaround you may be able to execute the offending query directly
through the EclipseLink Session, or use a EclipseLink ExceptionHandler on
your Session to handle the error.



Leon Derks-2 wrote:
> 
> Hello
> 
> I get the following error while I try to commit the transaction.
> - javax.persistence.RollbackException: Transaction rolled back because 
> transaction was set to RollbackOnly.
> 
> In the transaction there were some SQL exceptions that I logged using a 
> try{}catch{}
> But still I want the transaction to commit.
> 
> I that possible?
> 
> Leon
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/RollbackException%3A-Transaction-rolled-back-because-transaction-was-set-to-RollbackOnly-tp19668636p19670224.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top