|
(Sorry for the cross-posting, I haven't had much response on this issue so far and I think it is an issue of concern for all wo users if I am right about the bug.) I'm 99% certain I've finally discovered the source of intermittent problems I've been having for quite a while (since I started developing some extensive ERSelenium tests for my most involved app). I believe the bug is a bug within WO itself, but it only shows up in quite unlikely circumstances. I have attached a simple WO app that demonstrates the problem. (This was developed and run with Mac OSX 10.4, WO 5.3, eclipse 3.3.2, WOLips 3.3.5037). The problem only shows up in quite unusual circumstances: 1. A change to an eo is made in a request without saving. 2. The ec for that eo is saved in a following request (a new thread) 3. A change is made to the exact same eo in the same thread (another request) used in #1. The bug is that an optimization in an EOObserverCenter thread info object holds a reference to the eo in number one without being cleared at the end of the request. I believe this happens so seldom that it has not been noticed before (In a reproducible manner). But it has happened in 2 places in my main application. I have done major reworking of my application to try to fix the issue (which was thought of to be the breaking of EOF commandments) with no avail. Some of you please try out this sample app to make sure I'm right. I have tried it on a colleagues machine and it acted the same as mine, so it's not just my machine. The app is a non-wonder application and all you need to do is hook up your database and create the one simple table to run the app. Also, run it through the web server because it doesn't work with direct connect (threads don't cycle). I believe the best workaround for this issue is overriding dispatchRequest and calling EOObserverCenter.notifyObserversObjectWillChange(null) after the call to super. But I haven't tested very much with the workaround yet. Hopefully the attachment will get through to the list/s. Thanks, Jonathan Ricker |
ChangeNotRegisteredBug.tar.gz
Description: GNU Zip compressed data
On Jun 16, 2008, at 3:48 PM, Jonathan Ricker wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-deploy mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]
