Re: EORelationship can't find Destination Entity *FIXED*
Re: EORelationship can't find Destination Entity *FIXED*
- Subject: Re: EORelationship can't find Destination Entity *FIXED*
- From: Chuck Hill <email@hidden>
- Date: Thu, 15 Oct 2009 11:45:20 -0700
If there was an exception when loading the bundle, the models in it
would not have gotten loaded.
On Oct 15, 2009, at 8:04 AM, David Avendasora wrote:
I fixed it, not that I'm really clear on why the problem caused this
symptom.
I added my framework, but had not added all the Wonder frameworks my
framework depended upon itself. Once I added ERChronic,
ERAttachment, etc, etc, then this exception went away.
Dave
On Oct 15, 2009, at 10:27 AM, David Avendasora wrote:
Almost forgot:
WO 5.4
Wonder Head
Dave
On Oct 15, 2009, at 10:12 AM, David Avendasora wrote:
Hi all,
I'm adding a framework to a Java Client project that has several
EOModels and many of those models have cross-model relationships.
As the application starts up, I'm getting this error on one of the
cross-model relationships:
Exception in thread "AWT-EventQueue-0"
java.lang.IllegalStateException: Server exception:
EORelationship(): cannot find entity named StudentFlag for
destination of relationship olsStudentFlags in entity Account.
at
com
.webobjects
.eodistribution
.client
.EODistributedObjectStore
._checkReturnValuesForExceptions(EODistributedObjectStore.java:624)
at
com
.webobjects
.eodistribution
.client
.EODistributedObjectStore
.invokeStatelessRemoteMethodWithKeyPath
(EODistributedObjectStore.java:1139)
at
com
.webobjects
.eogeneration
.client
._EORemoteXMLProvider._provideXMLs(_EORemoteXMLProvider.java:35)
at
com
.webobjects
.eogeneration
.EOControllerFactory
._concreteEvaluateMultipleRules(EOControllerFactory.java:417)
at
com
.webobjects
.eogeneration
.EOControllerFactory
._evaluateMultipleRules(EOControllerFactory.java:518)
at
com
.webobjects
.eogeneration
.EOControllerFactory
._concreteGenerateSpecificationsAndActions
(EOControllerFactory.java:583)
at
com
.webobjects
.eogeneration
.EOControllerFactory
._defaultSpecifications(EOControllerFactory.java:649)
at
com
.webobjects
.eogeneration
.EOControllerFactory
._activateDefaultControllers(EOControllerFactory.java:794)
at
com
.webobjects
.eogeneration
.EOControllerFactory
.activateDefaultControllers(EOControllerFactory.java:811)
at
com
.webobjects
.eogeneration
.EODynamicApplication
.finishInitialization(EODynamicApplication.java:126)
at com.webobjects.eoapplication.EOApplication
$1.run(EOApplication.java:531)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
at
java
.awt
.EventDispatchThread
.pumpOneEventForFilters(EventDispatchThread.java:296)
at
java
.awt
.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
211)
at
java
.awt
.EventDispatchThread
.pumpEventsForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
196)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
I've double checked the relationship and all seems correct. Here's
the relationship definition from the .plist:
{
destination = StudentFlag;
isToMany = Y;
joinSemantic = EOInnerJoin;
joins = ({destinationAttribute = studentPid;
sourceAttribute = id; });
name = olsStudentFlags;
},
It is as though the server-side application is not completely
loading all the models which is causing the relationship not to be
able to find the destination Entity.
Anybody have any ideas?
Dave
_______________________________________________
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
_______________________________________________
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
--
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