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: "Tanmoy Roy" <email@hidden>
- Date: Mon, 7 Mar 2005 09:46:58 +0530
- Thread-topic: ec.saveChages gives null exception (didn't before)
Hi Drew,
I once faced the same problem. I solved it in a way which is rather dirty. But can you check whether the Not Null column that is expected is getting proper value. I mean here is how are you getting the key for the update and is it a valid one? Can you please check the same ? If everything is fine you can do onething you first try to delete the row from the db then insert the same with the key you have and the do a save changes. It is a bad way of approaching the problem but I am yet to find a better solution.
Thanks and Regards
Tanmoy
> ----------
> From: webobjects-dev-bounces+tanmoy_roy=email@hidden on behalf of Drew Thoeni
> Sent: Monday, March 7, 2005 9:38 AM
> To: WOdev List
> Subject: ec.saveChages gives null exception (didn't before)
>
> 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. 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