Re: Need some advice on handling EO validation errors

2007-12-07 Thread Alan Ward
The unsaved objects(s) are still in your EOEditingContext and thus any future attempts to save will try to save them again (along with any subsequent changes). The approach that you describe below is not the best one. What you want to do is to catch the exception from ec.saveChanges()

Need some advice on handling EO validation errors

2007-12-07 Thread Greg Lappen
Hi all, I just recently ran into an issue where my application tried to save a new object to the database, the save failed, and every subsequent save failed with the same error. It seems that WebObjects maintains a queue of updates/saves to write to the database, and when one fails, it

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Chuck Hill
On Dec 7, 2007, at 7:48 AM, Greg Lappen wrote: Hi all, I just recently ran into an issue where my application tried to save a new object to the database, the save failed, and every subsequent save failed with the same error. It seems that WebObjects maintains a queue of updates/saves

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Paul Lynch
On 7 Dec 2007, at 16:03, Alan Ward wrote: The unsaved objects(s) are still in your EOEditingContext and thus any future attempts to save will try to save them again (along with any subsequent changes). The approach that you describe below is not the best one. What you want to do is to

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Robert Walker
Pierre, I think this is one of the clearest explanations of the EOEditingContext I've seen. That used to trip me up a lot when first learning WO. I used the session's defaulting editing context for all kinds of stuff. I just thought that was the right way by reading the documentation on

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Pierre Bernard
It is important to see the EOEditingContext as a sandbox. It's the EC that contains your unsaved changes. It's not the EOF stack that is clogged with pending updates. Other clients of the EOF stack will not even see your local changes until they are committed. When saving fails over a

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Chuck Hill
On Dec 7, 2007, at 11:20 AM, Mike Schrag wrote: Why stop there? Why not just shell out a 'sudo reboot now' and be _really_ sure. I think someone stole Chuck's lunch money this morning ... And woke me up early to do it! -- Practical WebObjects - for developers who want to increase

Re: Need some advice on handling EO validation errors

2007-12-07 Thread Mike Schrag
Why stop there? Why not just shell out a 'sudo reboot now' and be _really_ sure. I think someone stole Chuck's lunch money this morning ... ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list