Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JPA Detected reentrant flush exception  RSS feed

David Cheung
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?

Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!