Re: Inheritance and relationships
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