Re: EO not getting saved
Re: EO not getting saved
- Subject: Re: EO not getting saved
- From: Chuck Hill <email@hidden>
- Date: Fri, 29 May 2009 13:59:53 -0700
Hi Timo,
On May 29, 2009, at 7:51 AM, Timo Hoepfner wrote:
I've spent the whole day hunting down a sporadic problem in one of
my apps without getting any closer. The problem occurs a few times a
day in production and I was able to somehow reproduce it locally a
few times also, but without seeing a pattern that causes the problem.
The problem seems to be restricted to one single page and one single
entity. The entity represents an order, the page allows to create
orders. First, an order is created, then a customer is assigned,
then order positions are added. During that process, the order and
related EOs are saved several times.
This is all working reliably. The only thing which sometimes doesn't
work is the last step: Changing the state (Integer) from one to
another and setting a timestamp.
Attached is some stripped down logging output from three orders
created this way, where the middle one shows the problem. Some code
fragments are also in there.
It looks like somehow (and I'd really like to find out why), an
order EO is modified, but not registered in the list of updated
objects in its EC. "changesFromCommittedSnapshot" is empty when the
problem happens.
No inheritance, no background threads, concurrent request handling
is off, single instance, I was the only user and I didn't leave the
page for the whole day. Locking done via ERXEC auto-locking.
Probably not relevant: Page is in permanent cache and uses a lot of
Ajax, JGroupsSynchronizer is configured but there was no other
instance.
And yes, I'm pretty certain that I don't violate the EOF commandments.
Any ideas how that could happen?
Thanks for any help,
Timo (currently a bit frustrated)
Been there...
I have seen this in these cases:
1. Use of unlocked editing context
2. Use of mutable attributes
3. Faults firing during saveChanges (while processing deletes in
particular)
Is there any chance that autolocking is turned off for ERXEC?
Chuck
--
Chuck Hill Senior Consultant / VP Development
Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden