Hi,
In an application that uses JPA version 2.1 with Hibernate version 4.3.10 as an implementation, a NOT NULL constraint violation issue triggers an exception which root cause is reported as weblogic.transaction.internal.AppSetRollbackOnlyException (see stack trace in attached file).
The transaction manager is set to:
<bean id="transactionManager"
class="org.springframework.transaction.jta.WebLogicJtaTransactionManager" />
The Hibernate properties specified are:
hibernate.show_sql=false
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
hibernate.transaction.jta.platform=org.hibernate.service.jta.platform.internal.WeblogicJtaPlatform
When using a JPA transaction manager, the exception is about the true problem (i.e. an SQL exception about the database constraint violation)
I initially raised this issue in the Spring framework forum. As it turns out that the JTA transaction coordination is handled by Hibernate, I am raising this issue here.
|