Re: NullPointer on EOAdapter.fetchedValueForValue
Gary Teter <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.devel |
|---|---|
| Message-ID | <[email protected]> |
Couple wild guesses: Something's wrong with your eomodel, one of the attributes isn't properly set up. You're using change notification or some other method of inserting snapshots into the database context, and the snapshot includes attribute keys that aren't in the eomodel, or vice-versa. (This can happen when you have multiple instances with change notification and one has an out-of-date eomodel.) On Feb 2, 2007, at 8:49 AM, [email protected] wrote: > > Does anyone have suggestions as to how to track down this problem: > > [2007-02-02 10:23:28 CST] <WorkerThread2> > java.lang.NullPointerException > at com.webobjects.eoaccess.EOAdaptor.fetchedValueForValue > (EOAdaptor.java:819) > at > com.webobjects.jdbcadaptor.JDBCAdaptor.fetchedValueForValue > (JDBCAdaptor.java:577) > at > com.webobjects.eoaccess.EODatabaseContext.processSnapshotForDatabaseOp > eration(EODatabaseContext.java: > > It's happening on a saveChanges(); > > I can't seem to find what is tripping it up I found a reference to > this here: > http://www.wodeveloper.com/omniLists/webobjects-dev/2002/November/ > msg00445.html > > which suggested printing out the editingContexts to make sure that > everything is in the same editingContext. I did that and verified > that it is all in the same editingContext. I have tried looking at > the SQL through "-EOAdaptorDebugEnabled" and that also has shown > nothing out of the ordinary. I have hit a brick wall with this. > > Frederick Wells > Capps Consulting > 35 W Wacker > Chicago, Il 60601 > 312.220.3056 > _______________________________________________ > WebObjects-dev mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-dev -- WireHose: Smart metadata and personalization for WebObjects. http://wirehose.com/