Hi Mike,

No luck yet. Same problem. See the comments below.

Mike Schrag wrote:
java.lang.IllegalStateException: The object with globalID _EOIntegralKeyGlobalID[Action (java.lang.Integer)1] 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).
One of our clients had this same problem ... The common case that seems to cause this is mismatched external types between the source FK and the destination PK. Verify that you don't have a long PK on one side with an int FK on the other (or something similar).

I checked the prototypes for both pk and fk. Just to clarify, I'm using my own prototypes framework. Both prototypes for Oracle have the same properties:

   External Type: NUMBER
   Data Type: Integer i

I checked the model and re-assigned the prototype for both, to ensure there is no extra information overriding the prototype properties.

Another variant of this is if you are manually mucking with your models and connection dictionaries rather than using Wonder's (and hooking in too late), you can get the wrong prototype selected for your model, and things explode (your model will end up using EOJDBCPrototypes instead of EOOracleJDBCPrototypes).

I've been using an extension of EOModelConnector and EOPrototypeSwitcher (from Practical WebObjects) to configure eomodels and change the prototypes. I disabled this mechanism and added the following into the application Properties file:

dbConnectURLGLOBAL = my_url
dbConnectUserGLOBAL = my_user
dbConnectPasswordGLOBAL = my_password
dbConnectPluginGLOBAL = com.webobjects.jdbcadaptor.OraclePlugIn
dbConnectDriverGLOBAL = oracle.jdbc.driver.OracleDriver
dbEOPrototypesEntityGLOBAL = EOOraclePrototypes

I started the application, but the same error occurred. :(

Cheers,

Henrique
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
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