• 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: Chuck Hill <email@hidden>
  • Date: Sun, 10 Aug 2008 13:35:11 -0700


On Aug 10, 2008, at 1:22 PM, Guido Neitzer wrote:

So, something VERY weird:

I have nailed it down to one thing, and I have no idea why or how this could cause the problems I was seeing:

Upon closer inspection of my models and why they weren't working, I found an entry in the connection dictionary:

  password = "";

which was not present on my working example app. When I remove that, it works, when I put it back in the app crashes with:

java.lang.IllegalStateException: The object with globalID _EOIntegralKeyGlobalID[Person (java.lang.Long)3049] could not be found in the database. This could be result of a referential integrity problem with the database. An empty fault could not be created because the object's class could not be determined (e.g. the GID is temporary or it is for an abstract entity).

When I remove the entry, everything works fine.

So, anybody ANY freaking idea, what could cause this?


I am pretty sure that both Mike and I told you to check this. If the connection dictionaries are not equals(), then EOF considers them to point to different databases. So " _EOIntegralKeyGlobalID[Person (java.lang.Long)3049] could not be found in the database" means that the objects were in different "databases" (don't recall if this ends up in different EODatabase or EODatabaseContext).

Chuck



--
Chuck Hill             Senior Consultant / VP Development

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:
    • Re: Inheritance and relationships
      • From: Mike Schrag <email@hidden>
    • Re: Inheritance and relationships
      • From: Guido Neitzer <email@hidden>
References: 
 >Inheritance and relationships (From: Guido Neitzer <email@hidden>)

  • Prev by Date: Inheritance and relationships
  • Next by Date: Re: Inheritance and relationships
  • Previous by thread: Inheritance and relationships
  • Next by thread: Re: Inheritance and relationships
  • Index(es):
    • Date
    • Thread