• 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: Postgresql Connection (again) - failure to create primary keys
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Postgresql Connection (again) - failure to create primary keys


  • Subject: Re: Postgresql Connection (again) - failure to create primary keys
  • From: LD <email@hidden>
  • Date: Thu, 5 May 2005 10:38:57 +1000

Hi there,

still need help...

On 05/05/2005, at 3:06 AM, Merul Patel wrote:

I found I had to modify the PostgresqlPlugin to get primary key generation to work for WebObjects. I haven't yet done the same patch for the EOModeler plugin, but you don't really need that for just transacting with an existing PGSQL db.

BTW, your URL looks odd below, I normally use jdbc:postgresql://localhost/<DBNAME>

Yep, sorry that's what I have... (that was from Hunter Hillegas).
So, I've compiled the plugin again (with your mod) and am still having no success. Is the plugin even getting called(see below)?


I've got in EOModeler a Person Entity with attributes:
NAME		COLUMN		EXTERN_TYPE	VALUE_TYPE
personId	PERSON_ID		serial 		l
firstName	FIRST_NAME	varchar
lastName	LAST_NAME		varchar

Application:
PGSQLTest

Error:
java.lang.IllegalStateException: Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@96c8c2 failed to provide new primary keys for entity 'Person'


Reason:
Adaptor com.webobjects.jdbcadaptor.JDBCAdaptor@96c8c2 failed to provide new primary keys for entity 'Person'


Stack trace:
File	Line#	Method	Package

EODatabaseContext.java 5876 prepareForSaveWithCoordinator com.webobjects.eoaccess
EOObjectStoreCoordinator.java 409 saveChangesInEditingContext com.webobjects.eocontrol
EOEditingContext.java 3165 saveChanges com.webobjects.eocontrol
Session.java 51 saveChanges Session
Main.java 33 savePeople Main
NativeMethodAccessorImpl.java NA invoke0 sun.reflect
NativeMethodAccessorImpl.java 39 invoke sun.reflect
DelegatingMethodAccessorImpl.java 25 invoke sun.reflect
Method.java 324 invoke java.lang.reflect
KeyValueCodingProtectedAccessor.java 54 methodValue KeyValueCodingProtectedAccessor
NSKeyValueCoding.java 1160 valueInObject com.webobjects.foundation
NSKeyValueCoding.java 1268 valueForKey com.webobjects.foundation
WOComponent.java 1539 valueForKey com.webobjects.appserver
NSKeyValueCoding.java 498 valueForKey com.webobjects.foundation
NSKeyValueCodingAdditions.java 212 valueForKeyPath com.webobjects.foundation
WOComponent.java 1600 valueForKeyPath com.webobjects.appserver
WOKeyValueAssociation.java 46 valueInComponent com.webobjects.appserver._private
WOHyperlink.java 76 invokeAction com.webobjects.appserver._private
WODynamicGroup.java 101 invokeChildrenAction com.webobjects.appserver._private
WODynamicGroup.java 110 invokeAction com.webobjects.appserver._private
WOComponent.java 945 invokeAction com.webobjects.appserver
WOSession.java 1166 invokeAction com.webobjects.appserver
WOApplication.java 1375 invokeAction com.webobjects.appserver
WOComponentRequestHandler.java 196 _dispatchWithPreparedPage com.webobjects.appserver._private
WOComponentRequestHandler.java 287 _dispatchWithPreparedSession com.webobjects.appserver._private
WOComponentRequestHandler.java 322 _dispatchWithPreparedApplication com.webobjects.appserver._private
WOComponentRequestHandler.java 358 _handleRequest com.webobjects.appserver._private
WOComponentRequestHandler.java 432 handleRequest com.webobjects.appserver._private
WOApplication.java 1306 dispatchRequest com.webobjects.appserver
WOWorkerThread.java 173 runOnce com.webobjects.appserver._private
WOWorkerThread.java 254 run com.webobjects.appserver._private
Thread.java 552 run java.lang


NA : Non applicable, JIT activated

with regards,
--

LD

_______________________________________________
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: Postgresql Connection [fixed] => [working with serial columns]
      • From: LD <email@hidden>
References: 
 >Re: Postgresql Connection (again) - failure to create primary keys (From: LD <email@hidden>)

  • Prev by Date: Re: WebObjects 5.2.4
  • Next by Date: Re: WebObjects 5.2.4
  • Previous by thread: Re: Postgresql Connection (again) - failure to create primary keys
  • Next by thread: Re: Postgresql Connection [fixed] => [working with serial columns]
  • Index(es):
    • Date
    • Thread