Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javax.ejb.EJBTransactionRolledbackException: Transaction rolled back

 
everson santos
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


my ejb is called by method below




my ejb



My mappings



 
lokesh sree
Ranch Hand
Posts: 100
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic