From: Patrice G. <pga...@ap...> - 2003-02-24 05:06:23
|
Hi Anjo, I think some of the code you committed in ERXEntityClassDescription causes problems with cross model relationship. We are getting this type of exception upon launch of our apps: -[-:- -] 2003/02/23 19:18:02 2.81 MB used/28.94 MB free INFO er.extensions.ERXExtensions - Initializing framework: ERXExtensions -[-:- -] 2003/02/23 19:18:02 2.92 MB used/28.83 MB free INFO er.extensions.ERXDatabaseContextDelegate - Created default delegate App[24774:9887 0] 2003/02/23 19:18:03 4.26 MB used/27.49 MB free INFO er.extensions.ERXNSLogLog4jBridge - A fatal exception occurred: EORe\ lationship(): cannot find entity named B for destination of relationship r in entity A. [2003-02-23 19:18:03 PST] <main> java.lang.IllegalArgumentException: EORelationship(): cannot find entity named B for destination\ of relationship r in entity A. at com.webobjects.eoaccess.EORelationship.<init>(EORelationship.java:731) at com.webobjects.eoaccess.EOEntity.relationships(EOEntity.java:845) at er.extensions.ERXEntityClassDescription.readDefaultValues(ERXEntityClass Description.java:784) at er.extensions.ERXEntityClassDescription.<init>(ERXEntityClassDescription .java:444) at er.extensions.ERXEntityClassDescription$Factory.newClassDescriptionForEn tity(ERXEntityClassDescription.java:255) at er.extensions.ERXEntityClassDescription$Factory.registerDescriptionForEn tity(ERXEntityClassDescription.java:358) at er.extensions.ERXEntityClassDescription$Factory.registerDescriptionForEn titiesInModel(ERXEntityClassDescription.java:315) at er.extensions.ERXEntityClassDescription$Factory.modelWasAddedNotificatio n(ERXEntityClassDescription.java:204) at java.lang.reflect.Method.invoke(Native Method) at com.webobjects.foundation.NSSelector._safeInvokeMethod(NSSelector.java:1 20) at com.webobjects.foundation.NSNotificationCenter$_Entry.invokeMethod(NSNot ificationCenter.java:598) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi cationCenter.java:542) at com.webobjects.foundation.NSNotificationCenter.postNotification(NSNotifi cationCenter.java:556) at er.extensions.ERXModelGroup.addModel(ERXModelGroup.java:112) at com.webobjects.eoaccess.EOModelGroup.addModelWithPath(EOModelGroup.java: 486) at er.extensions.ERXModelGroup.modelGroupForLoadedBundles(ERXModelGroup.jav a:61) at er.extensions.ERXApplication.<init>(ERXApplication.java:87) Since I am not sure what the solution is, I commented out the readDefaultValues() call as a quick fix to unblock our apps.. -P |