Re: NullPointer on EOAdapter.fetchedValueForValue

[email protected]
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <OFEE7C6BD8.F449D932-ON86257276.007FE0E0-86257276.0080084B@lionresources.com>
You werw right it was my eomodel. One of our many-to-many join tables 
wasn't set up properly. Thanks.

Frederick Wells
Capps Consulting
35 W Wacker
Chicago, Il 60601
312.220.3056




Gary Teter <[email protected]> 
02/02/07 11:54 AM

To
[email protected]
cc
[email protected]
Subject
Re: NullPointer on EOAdapter.fetchedValueForValue






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/

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.