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

--- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink 
Forums: TopLink , EclipseLink 
Book: Java Persistence 
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top