• 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
JDBCAdaptor failed to provide new primary keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JDBCAdaptor failed to provide new primary keys


  • Subject: JDBCAdaptor failed to provide new primary keys
  • From: Jon Kleiser <email@hidden>
  • Date: Thu, 4 Sep 2003 15:10:53 +0200

Hi,

I just noticed a problem in our WO (5.1.3) application when trying to insert a new SwUndervismelding (extends EOGenericRecord) into the editing context. In the eomodel, this entity has a compound primary key consisting of several NSString (S) and NSNumber (i) columns. If, in the newly created SwUndervismelding, one of those (pk) NSNumbers has the numeric value 0, we get the following exception when trying to save chnges:

java.lang.IllegalStateException: Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@4fc301 failed to provide new primary keys for entity 'SwUndervismelding'

As long as this number is not 0, everything works fine. We are using the Oracle jdbc thin adapter. Is there a tidy solution to this problem?

Sincerely,

Jon Kleiser
--
---------------------------------------------------------------------
Jon Kleiser / SUAF / USIT / University of Oslo / Norway
Mail: email@hidden / Tel: +47-22852804 / Fax: +47-22852970
---------------------------------------------------------------------
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: JDBCAdaptor failed to provide new primary keys
      • From: Jon Kleiser <email@hidden>
  • Prev by Date: Checking which Webserver connects to the app'
  • Next by Date: Re: Checking which Webserver connects to the app'
  • Previous by thread: Re: Checking which Webserver connects to the app'
  • Next by thread: Re: JDBCAdaptor failed to provide new primary keys
  • Index(es):
    • Date
    • Thread