• 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: Inheritance and relationships
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inheritance and relationships


  • Subject: Re: Inheritance and relationships
  • From: Guido Neitzer <email@hidden>
  • Date: Fri, 8 Aug 2008 10:22:16 -0600

On 08.08.2008, at 06:31, Guido Neitzer wrote:

But I think, there must be something funky with my models from the refactoring. Right now, I can't even do a

NSArray result = Person.fetchAllPersons(editingContext, null);

It craps out with a similar illegal state exception.

Something is really broken here and I haven't found, where.

When I do the following:

NSArray result = EOUtilities.objectsForEntityNamed(editingContext,BaseUser.ENTITY_NAME);

I get the same problem. It fetches the rows:

SELECT <All Attributes> FROM contacts t0 WHERE (t0.inheritance_type = 'BaseUser' OR t0.inheritance_type = 'EventsUser')
...
10:11:00 -- ERXNSLogLog4jBridge -- :46 DEBUG - 4 row(s) processed


But it crashes when interpreting the results:

10:11:00 -- ERXDatabaseContextDelegate -- :153 INFO - Database Exception occured: java.lang.IllegalStateException: initializeObject: No snapshot for gid _EOIntegralKeyGlobalID[EventsUser (java.lang.Long)10049]

On a reduced test case I can't reproduce the problem. I'm at a loss at the moment. Any ideas where I can look?

cug

--
http://www.event-s.net

_______________________________________________
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: Inheritance and relationships
      • From: Chuck Hill <email@hidden>
References: 
 >Inheritance and relationships (From: Guido Neitzer <email@hidden>)
 >Re: Inheritance and relationships (From: Lachlan Deck <email@hidden>)
 >Re: Inheritance and relationships (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Re: Exception only when framework is embedded
  • Next by Date: Re: Inheritance and relationships
  • Previous by thread: Re: Inheritance and relationships
  • Next by thread: Re: Inheritance and relationships
  • Index(es):
    • Date
    • Thread