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

Hibernate: StaleObjectStateException

Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Struts 2.0.11 and Hibernate 3.2.5ga. I'm trying to catch the StateObjectStateException and redirect to a standard JSP page to inform the user that they're attempting to modify a stale record.

So far the optimistic locking mechanism works. What is not working is that the filter that I'm using to demarcate the transaction is destroyed. I couldn't redirect to a standard JSP page.

From the WAS 6.1 console log, it's clear that the exception was thrown. How do I troubleshoot further on what could be destroying the filter or why doesn't the global direct in Struts 2 not work as expected?

I'd configured the same for other exceptions and the redirect works fine.

Any help is appreciated.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic