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 Murach's Java Servlets and JSP this week in the Servlets 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.

subject: javax.ejb.EJBTransactionRolledbackException: Transaction rolled back
Similar Threads
Jboss 5.1 EJBTransactionRolledbackException
How to do transaction with EJB/JPA and JDBC
Jboss 5 database connection issues.
javax.naming.NameNotFoundException: TransactionManager not bound
Problem in persisting Entity with Composite Key