• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Failed to get Primary Keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failed to get Primary Keys


  • Subject: Re: Failed to get Primary Keys
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 24 Mar 2010 10:23:09 -0700


On Mar 24, 2010, at 10:13 AM, Mike Schrag wrote:

multiple pk attributes? there's some related bug that i can't quite remember

Uh oh. Mike has caught old age too. I warned you!


that has to do with owns destination relationships to objects with multiple pk's ......

I was thinking the same time: EOF tries to insert the row with propagated keys before the related rows have generated their keys.






On Mar 24, 2010, at 12:41 PM, Kieran Kelleher wrote:

Occasionally I get this kind of error in production:

Caused by: java.lang.IllegalStateException: Adaptor er.extensions.jdbc.ERXJDBCAdaptor@5fd3f561 failed to provide new primary keys for entity 'CTDataRecord'
at com .webobjects .eoaccess .EODatabaseContext .prepareForSaveWithCoordinator(EODatabaseContext.java:5885)
at com .webobjects .eocontrol .EOObjectStoreCoordinator .saveChangesInEditingContext(EOObjectStoreCoordinator.java:409)
at com .webobjects .eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3226)
at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1085)
at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1007)
at wk .webobjects .eof .ImportEnterpriseObjectData .processFile(ImportEnterpriseObjectData.java:163)
... 8 more


Looking at the jad source does not make me any wiser. I am using latest Wonder and WO 5.3.3.

Has anyone else here seen this type of error? Any suggestions how to figure out the root cause?

Regards, Kieran _______________________________________________
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


  • Follow-Ups:
    • Re: Failed to get Primary Keys
      • From: Mike Schrag <email@hidden>
References: 
 >Failed to get Primary Keys (From: Kieran Kelleher <email@hidden>)
 >Re: Failed to get Primary Keys (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: Failed to get Primary Keys
  • Next by Date: Re: subtotal question
  • Previous by thread: Re: Failed to get Primary Keys
  • Next by thread: Re: Failed to get Primary Keys
  • Index(es):
    • Date
    • Thread