• 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
How to view EODatabaseContext snapshot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to view EODatabaseContext snapshot


  • Subject: How to view EODatabaseContext snapshot
  • From: Steven Mark McCraw <email@hidden>
  • Date: Thu, 19 Apr 2007 12:45:47 -0400

Hi all,

I've been working all morning trying to debug cryptic EOF exceptions, and as per the usual with that, am getting nowhere. I can almost replicate some of them, but the behavior is inconsistent and therefore very frustrating. Almost all of them seem to hinge in some way or other on EODatabaseContext whining about its snapshot. Either it can't find a snapshot for an EO that is being deleted, or it can't decrement a snapshot count (that doesn't exist or is already zero), or there is no snapshot available for some object when it is trying to save changes. I am obviously doing something wrong, although I can't figure out where to look. I think it would be extremely helpful in tracking down the issue if there were some way to be able to examine the snapshot of the EODatabaseContext for session ().defaultEditingContex(). I'm guessing (based on the existence of the method EODatabaseContext.localSnapshotForGlobalID(...)) that when the Apple documentation vaguely rambles on and on about the "snapshot" that what they're really talking about is an NSMutableDictionary keyed on a EOGlobalID whose values are NSDictionaries mapping attribute names to values for Enterprise Objects. Is there some way to just get this overall dictionary so that I can print it out as I go to see where things are getting off track? Am I taking the right approach here? Any advice would be appreciated.

Thanks,
Mark
_______________________________________________
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:
    • Re: How to view EODatabaseContext snapshot
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Shared editing context: rules of engagement
  • Next by Date: Converting from Session to DA
  • Previous by thread: Re: Snapshot problems
  • Next by thread: Re: How to view EODatabaseContext snapshot
  • Index(es):
    • Date
    • Thread