Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JPA Detected reentrant flush exception

 
David Cheung
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting this exception when committing a transaction:

Error creating record: Detected reentrant flush. Make sure your flush-time instance callback methods or event listeners do not invoke any operations that require the in-progress flush to complete.

If I understand this error properly, the record we are trying to persist could be causing an event listener or callback method to be invoked that requires the current flush to complete before it can complete. Is that right? I've looked through my entities to see if there are any callback methods (i.e. @PostXXX) declared or if there are entity listeners but I could not find any. What else could I do to solve this?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic