This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes javax.ejb.EJBTransactionRolledbackException: Transaction rolled back Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "javax.ejb.EJBTransactionRolledbackException: Transaction rolled back" Watch "javax.ejb.EJBTransactionRolledbackException: Transaction rolled back" New topic

javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

everson santos
Ranch Hand

Joined: Jul 11, 2009
Posts: 50

my ejb is called by method below

my ejb

My mappings

lokesh sree
Ranch Hand

Joined: Oct 27, 2009
Posts: 100

Hi everson,

I think I see is Pessoa has a reference to PessoaIntegracao in OneToOne association annotated with cascadeType.ALL .
Which means when p is persisted, it will cascade a persist operation on pi as well.
So, a persist on pi again should be the cause of the exception. However, that should have given some PersistenceException.
You might have to look at the complete stack trace and see if you have any clues related to this.

Hope that helps.

I agree. Here's the link:
subject: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
jQuery in Action, 3rd edition