• 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: ec.saveChages gives null exception (didn't before)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ec.saveChages gives null exception (didn't before)


  • Subject: Re: ec.saveChages gives null exception (didn't before)
  • From: Drew Thoeni <email@hidden>
  • Date: Sun, 6 Mar 2005 23:39:50 -0500

Tanmoy,

I did some checks based on your suggestion and here's what I found (no solution, though):

The only not-null column is the primary key, it is set by the database (FrontBase). WO does not even use the EO_PK_TABLE in FrontBase. I have to say that I only in the past week moved from OpenBase to FrontBase. I have not had any other problems, but it may have been a week since I tried to change this table. So, FrontBase might have something to do with this.

However, I added another Classroom and it failed. I stopped and rebuilt and it worked. I tried to edit that same Classroom and it failed (null exception). I tried to add another record and it failed. I tried to edit others, and they all failed too. However, I can edit Students, Books, and all other changes work fine.

The SQL looks correctly formed.

I even have a test server here and I ported over the code and the full database. Same failure there.

All other ideas are welcome!

Drew

On Mar 6, 2005, at 11:16 PM, Tanmoy Roy wrote:

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(JDBCAdapto r.
java:659)
at
com.webobjects.eoaccess.EODatabaseContext.isValidQualifierTypeForAttri bu
te(EODatabaseContext.java:5146)
at
com.webobjects.eoaccess.EODatabaseContext.lockingNonQualifiableAttribu te
s(EODatabaseContext.java:5160)
at
com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForDa ta
baseOperationAttributes(EODatabaseContext.java:5346)
at
com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForDa ta
baseOperation(EODatabaseContext.java:5520)
at
com.webobjects.eoaccess.EODatabaseContext.performChanges(EODatabaseCon te
xt.java:6337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditing Co
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:
email@hidden


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
References: 
 >RE: ec.saveChages gives null exception (didn't before) (From: "Tanmoy Roy" <email@hidden>)

  • Prev by Date: RE: ec.saveChages gives null exception (didn't before)
  • Next by Date: Re: SetDefaultFetchTimestampLag
  • Previous by thread: RE: ec.saveChages gives null exception (didn't before)
  • Next by thread: Blue mark.. when clicking button in nav bar
  • Index(es):
    • Date
    • Thread