• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Hibernate: StaleObjectStateException

 
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic