• 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.

Cheers!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!