JPA Entity Manager persist() Method Does Not Throw EntityExists Exception
(Doc ID 1570151.1)
Last updated on MARCH 28, 2024
Applies to:
Oracle WebLogic Server - Version 12.1.1.0 and laterInformation in this document applies to any platform.
Symptoms
A stateless EJB bean is having a method (createInt) where an entity (Vehicle) is persisted via JPA API :
the expected behavior is that the exceptions received are extending EntityExistsException
or PersistenceException exceptions.
The problem is :
1/ The EJB exception does not contain any EntityExistsException or PersistenceException
2/ The nested exceptions of EJBException by calling getCausedByException does not extend EntityExistsException or PersistenceException exceptions.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |