Re: Object with globalID could not be found in the database, when it is there ??
Re: Object with globalID could not be found in the database, when it is there ??
- Subject: Re: Object with globalID could not be found in the database, when it is there ??
- From: Lachlan Deck <email@hidden>
- Date: Tue, 27 Nov 2007 17:07:24 +1100
Hi Owen,
On 27/11/2007, at 10:39 AM, Owen McKerrow wrote:
Im having a strange error occur randomly only on the Production
version of the website ( we'll Im having 2 occur, but I'll deal
with the other in another email after I have investigated it some
more ). Anyways as I was saying the error only occurs on the
Production version of the website and not on the Test or Dev
servers or on the Dev Machines. To make matters worse it only
occurs sometimes.
The error and the stack trace are listed below. From my
understanding it appears to be trying to fault and object and
claims that it can't be found in the database. In all instances of
this bug I have done a manual check of the database and the data
does exist and all the PK's and FK's are correct. Then as I said
you'll come back to teh same page a little later and it will work
i.e the fault will fire correctly.
OK here are some stats :
Dev Machines (Works Fine):
OS X 10.4.11
1.5.0_07
WO 5.3.3
<...>
( Yes I know the Test and Prod should be the same, believe me I
know. We won't go into the reasons why they are not, or why Test is
on a more powerful server than Prod).
My guess would be that you'd see the same problems on the other
servers given more 'random' time.
The site has been running for more than a year with this set up and
no such problem have occurred, until the latest release. The main
difference with this release is that there are now 2 models with
relationships between the two.
Ah. That puts a different light on things. So it's failing to fault a
toOne relationship to Person that's in another model.
Okay, standard questions:
- Any inheritance involved? (Just for Chuck's curiosity :)
- These two EOModels now in your app, do they point to different
datastores or was it just a conceptual breakdown?
- Is there anything funny/broken in your model? Reverse relationship
works?
- are you locking/unlocking properly and/or breaking any EOF
commandments
Is the context stale? Any more details?
Has anyone see this type of behavior before ? Any suggestions on a
way forward ?
EXCEPTION:
java.lang.IllegalStateException: The object with globalID
_EOIntegralKeyGlobalID[Person (java.lang.Long)8917] 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).
The object with globalID _EOIntegralKeyGlobalID[Person
(java.lang.Long)8917] 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).
STACK TRACE:
at _fetchSingleObject(EODatabaseContext.java:3583)
at _objectFaultWithSnapshotRelationshipEditingContext
(EODatabaseContext.java:2532)
at _fireDeferredFaultWithSourceObject(EODatabaseContext.java:2575)
at createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:45)
at willReadRelationship(EOCustomObject.java:1302)
at valueInObject(_EOMutableKnownKeyDictionary.java:560)
at storedValueForKey(EOCustomObject.java:1736)
at person(_RQFGroupPersonPub.java:30)
at invoke(GeneratedMethodAccessor476.java:NA)
at invoke(DelegatingMethodAccessorImpl.java:25)
at invoke(Method.java:585)
at methodValue(KeyValueCodingProtectedAccessor.java:54)
at valueInObject(NSKeyValueCoding.java:1160)
at valueForKey(EOCustomObject.java:1559)
at valueForKey(NSKeyValueCoding.java:498)
at valueForKeyPath(NSKeyValueCodingAdditions.java:212)
at valueForKeyPath(EOCustomObject.java:1675)
at valueForKeyPath(NSKeyValueCodingAdditions.java:149)
at valueForKey(NSArray.java:1229)
at personDetailsForPub(RQFPub.java:192)
at hasSelectedPublicationAsBOW(Publication.java:2366)
at isAbleToSelect(RQFBOWSelection.java:303)
Similar problems seen.
with regards,
--
Lachlan Deck
_______________________________________________
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