Fetching empty EOs
Fetching empty EOs
- Subject: Fetching empty EOs
- From: Corin Lawson <email@hidden>
- Date: Wed, 21 Mar 2007 16:15:05 +1100
Hi List,
I've run into a rather nasty little problem after making some changes
to my app recently. The problem never showed in testing and is
difficult to contrive (which is the nasty bit).
After an arbitrary and large number of requests, an arbitrary and
small proportion of fetches fail. That is to say that some fetches
give an object whose properties are all null.
For example I wish to fetch a Member with username 'x'. I use a named
EOFetchSpecification, specify the qualifier bindings and fetch my EOs.
EOFetchSpecification fetchSpec =
EOFetchSpecification.fetchSpecificationNamed("usernameFetchSpec",
"Member");
fetchSpec = fetchSpec.fetchSpecificationWithQualifierBindings(new
NSDictionary("x", "usernameValue"));
NSArray results = ec.objectsWithFetchSpecification(fetchSpec);
I most cases I receive the expected results, but in some the first
Member object in the NSArray has a null username, password, etc.
I think this is a known problem I remember something about a locking
issue. (?)
Please help.
Cheers,
Corin.
_______________________________________________
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