• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Fetching empty EOs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fetching empty EOs


  • Subject: Re: Fetching empty EOs
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 21 Mar 2007 09:09:37 -0700

Corin,

You have inspired me to create a new Wiki page for these sorts of problems:

http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/ Breaking_EOF

Good luck, you might have some long days in front of you.

Chuck

On Mar 20, 2007, at 10:15 PM, Corin Lawson wrote:

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:
40global-village.net


This email sent to email@hidden


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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


  • Follow-Ups:
    • Error updating objects
      • From: Olav <email@hidden>
References: 
 >Fetching empty EOs (From: Corin Lawson <email@hidden>)

  • Prev by Date: Re: nice error messages
  • Next by Date: Error updating objects
  • Previous by thread: Re: Fetching empty EOs
  • Next by thread: Error updating objects
  • Index(es):
    • Date
    • Thread