JPA Entity Manager persist() Method Does Not Throw EntityExists Exception
Last updated on NOVEMBER 05, 2016
Applies to:Oracle Weblogic Server - Version 220.127.116.11 and later
Information in this document applies to any platform.
A stateless EJB bean is having a method (createInt) where an entity (Vehicle) is persisted via JPA API :
the expected behaviour 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.
Sign In with your My Oracle Support account
Don't have a My Oracle Support account? Click to get started
Million Knowledge Articles and hundreds of Community platforms