This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 99

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
Similar Threads
Problem in persisting Entity with Composite Key
Jboss 5.1 EJBTransactionRolledbackException
javax.naming.NameNotFoundException: TransactionManager not bound
How to do transaction with EJB/JPA and JDBC
Jboss 5 database connection issues.