This is a simple one-attribute PK to FK relationship. No fancy qualifiers or anything else.

Should this work or no?

Probably?  Let's take a look at the error message:

It should. I have a very similar setup working elsewhere in my application. I knew I wasn't hallucinating, even if that does make me sound like you. :)

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 GID is not temporary. Is LotCode abstract? Just covering off the blatantly obvious here.

No, it's not abstract. But it is a super class (using Single Table Inheritance) of the Object that this is actually returning. In this particular case, the object returned is a "ManufacturedPart" which "is- a" LotCode. That shouldn't matter either, though, right?

Is there a full stack trace you are hiding from us? It also might be that EOF is looking in the wrong object store.

I wouldn't say "hiding" just trying to be brief - it was in one of the previous messages. Anyway:


Dec 02 08:24:34 BakeryManagementJavaClient[60404] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Begin Internal Transaction Dec 02 08:24:34 BakeryManagementJavaClient[60404] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - evaluateExpression: <com.webobjects.jdbcadaptor.MicrosoftPlugIn$MicrosoftExpression: "SELECT t0.External_Lot_Code_ID, t0.External_Lot_Code_Value, t0.External_Part_Number, t0.Lot_Code_ID FROM dbo.MSDynamics_Lot_Code t0 WHERE UPPER(t0.External_Lot_Code_Value) LIKE UPPER(?) ESCAPE '\'" withBindings: 1:"8P31808269%"(externalLotCodeValue)> Dec 02 08:24:37 BakeryManagementJavaClient[60404] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - 45 row(s) processed Dec 02 08:24:37 BakeryManagementJavaClient[60404] (ERXNSLogLog4jBridge.java:46) DEBUG NSLog - === Commit Internal Transaction Dec 02 08:24:37 BakeryManagementJavaClient[60404] (ERXDatabaseContextDelegate.java:153) INFO er.transaction.adaptor.Exceptions - Database Exception occured: java.lang.IllegalStateException: The object with globalID _EOIntegralKeyGlobalID[LotCode (java.lang.Long)143937] 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). Dec 02 08:24:37 BakeryManagementJavaClient[60404] (ERXEntityDependencyOrderingDelegate.java:69) ERROR com.webobjects.eoaccess.ERXEntityDependencyOrderingDelegate - Unexpected non-EOGeneralAdaptorException exception java.lang.IllegalStateException: The object with globalID _EOIntegralKeyGlobalID[LotCode (java.lang.Long)143937] 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). at com .webobjects .eoaccess.EODatabaseContext._fetchSingleObject(EODatabaseContext.java: 3583) at com .webobjects .eoaccess .EODatabaseContext ._objectFaultWithSnapshotRelationshipEditingContext (EODatabaseContext.java:2532) at com .webobjects .eoaccess .EODatabaseContext .initializeObjectRowEntityEditingContext(EODatabaseContext.java:2433) at com .webobjects .eoaccess.EODatabaseContext.initializeObject(EODatabaseContext.java: 3734) at com .webobjects .eocontrol .EOObjectStoreCoordinator .initializeObject(EOObjectStoreCoordinator.java:646) at com .webobjects .eocontrol.EOEditingContext.initializeObject(EOEditingContext.java:3805)
        at er.extensions.eof.ERXEC.initializeObject(ERXEC.java:1047)
at com.webobjects.eoaccess.EODatabaseChannel $ _EODatabaseChannelFetchResult.initializeObjects(EODatabaseChannel.java: 478) at com .webobjects .eoaccess .EODatabaseContext ._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java: 3240) at com .webobjects .eoaccess .EODatabaseContext .objectsWithFetchSpecification(EODatabaseContext.java:3346) at com .webobjects .eocontrol .EOObjectStoreCoordinator .objectsWithFetchSpecification(EOObjectStoreCoordinator.java:539) at com .webobjects .eocontrol .EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 4114) at er.extensions.eof.ERXEC.objectsWithFetchSpecification(ERXEC.java: 1109) at com .webobjects .eocontrol .EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java: 4500) at com.webobjects.eodistribution.EODistributionContext $ _RemoteMethodReceiver .clientSideRequestObjectsForFetchSpecification (EODistributionContext.java:1103)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun .reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun .reflect .DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.webobjects.foundation.NSSelector.invoke(NSSelector.java:354)
at com .webobjects.foundation.NSSelector._safeInvokeSelector(NSSelector.java: 108) at com .webobjects .eodistribution .common ._EOServerInvocation.doInvokeWithTarget(_EOServerInvocation.java:140) at com .webobjects .eodistribution .EODistributionContext ._processClientRequest(EODistributionContext.java:488) at com .webobjects .eodistribution .EODistributionContext .responseToClientMessage(EODistributionContext.java:577) at com .webobjects .eodistribution .WOJavaClientComponent.handleClientRequest(WOJavaClientComponent.java: 1105) at com .webobjects .eodistribution .WOJavaClientComponent.invokeAction(WOJavaClientComponent.java:343) at com .webobjects .appserver ._private.WOComponentReference.invokeAction(WOComponentReference.java: 104) at com .webobjects .appserver ._private.WODynamicGroup.invokeChildrenAction(WODynamicGroup.java:101) at com .webobjects .appserver._private.WODynamicGroup.invokeAction(WODynamicGroup.java:110) at com.webobjects.appserver.WOComponent.invokeAction(WOComponent.java: 945)
        at com.webobjects.appserver.WOSession.invokeAction(WOSession.java:1168)
at com.webobjects.appserver.WOApplication.invokeAction(WOApplication.java: 1375) at er .extensions .appserver .ajax.ERXAjaxApplication.invokeAction(ERXAjaxApplication.java:48) at er .extensions.appserver.ERXApplication.invokeAction(ERXApplication.java: 1529) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedPage(WOComponentRequestHandler.java:196) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedSession(WOComponentRequestHandler.java:287) at com .webobjects .appserver ._private .WOComponentRequestHandler ._dispatchWithPreparedApplication(WOComponentRequestHandler.java:322) at com .webobjects .appserver ._private .WOComponentRequestHandler ._handleRequest(WOComponentRequestHandler.java:358) at com .webobjects .appserver ._private .WOComponentRequestHandler .handleRequest(WOComponentRequestHandler.java:432) at com .webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java: 1306) at er .extensions .appserver .ERXApplication.dispatchRequestImmediately(ERXApplication.java:1646) at er .extensions .appserver.ERXApplication.dispatchRequest(ERXApplication.java:1610) at com .webobjects .appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173) at com .webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java: 254)
        at java.lang.Thread.run(Thread.java:613)
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to