I've got a really strange problem... During my web app (I'm using spring and webflow in this app), I enter a flow, which loads an object and initialises its collections. Then I make changes to one of its collections within my flow (it's not persisted during this period of editing the collection).
Then, depending on whether the user saves or cancels, the item may or may not be persisted. Whatever happens, the flow then exits and goes back to the parent flow.
At some point during this time, regardless of whether or not I actual commit my changes to the collection, something goes seriously wrong with hibernates indexes and they all get ruined. I don't know what happens to them exactly, the files still exists but none of my queries will return a result at all, unless I manually purge all and reindex everything, at which point everything is indexed perfectly.
It's so strange I don't understand it at all. I'm not committing anything to the database and the flow exits which gets rid of the flowscope variable I was editing.
I can't figure out what on earth is going on and I've spent days on this.
ANY help will be greatly appreciated!
Thanks, James.
|