Re: ec.saveChages gives null exception (didn't before)
Re: ec.saveChages gives null exception (didn't before)
- Subject: Re: ec.saveChages gives null exception (didn't before)
- From: Zak Burke <email@hidden>
- Date: Mon, 07 Mar 2005 11:41:22 -0500
Drew Thoeni wrote on 3/6/05 11:08 PM:
For quite some time, this method, and all others that save to the Class
table (like a classroom, not an object definition) worked fine. I've
looked at the SQL that is being generated and it appears fine. There is
only one not-null column in the table (the key) and the failures are on
updates to an existing record. Clearly, something is null that should
not be. And, it seems it's a result of something I've done.
When I've hit this problem in the past, it's been either (1) the
result of an unsatisfied foreign key constraint, e.g. A depends on B
but WO is trying to to save A first or (2) case sensitivity of the
EO_PK_TABLE inside WO.
In the former case, the solutions suggested to me were either (a)
turn off database constraints or (b) write a delegate to intercept
and re-order these queries. The Right Way is (b) i think, but I
haven't figured out how to do that yet, so (a) it is.
In the latter case, WO had hard-coded EO_PK_TABLE deep inside
somewhere, so even though I was deploying to (case-insensitive)
MacOS Server, WO couldn't find my table named eo_pk_table. The
peculiar behaviour here was that selects and updates were successful
but inserts failed.
Good luck,
zak.
But I've
spent about an hour tinkering with this and (probably in 10 minutes)
reached my level of expertise.
Can anyone suggest what I might check into regarding this exception?
[2005-03-06 22:49:59 EST] <main> Waiting for requests...
[2005-03-06 22:58:35 EST] <WorkerThread8> java.lang.NullPointerException
at
com.webobjects.jdbcadaptor.JDBCAdaptor.isValidQualifierType(JDBCAdaptor.
java:659)
at
com.webobjects.eoaccess.EODatabaseContext.isValidQualifierTypeForAttribu
te(EODatabaseContext.java:5146)
at
com.webobjects.eoaccess.EODatabaseContext.lockingNonQualifiableAttribute
s(EODatabaseContext.java:5160)
at
com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForData
baseOperationAttributes(EODatabaseContext.java:5346)
at
com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForData
baseOperation(EODatabaseContext.java:5520)
at
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseConte
xt.java:6337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingCo
ntext(EOObjectStoreCoordinator.java:411)
at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.j
ava:3148)
at ClassAdmin.saveClass(ClassAdmin.java:63)
_______________________________________________
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