Re: NullPointerException only after first call to batchFetchRelationship
Re: NullPointerException only after first call to batchFetchRelationship
- Subject: Re: NullPointerException only after first call to batchFetchRelationship
- From: Kaj Hejer <email@hidden>
- Date: Wed, 21 Jan 2004 13:08:49 +0100
At 13:42 -0800 13-01-04, Chuck Hill wrote:
Hi Kaj,
For the "default" EOF stack you should be able to just add the line
EOModelGroup.defaultGroup().loadAllModelObjects();
to you Application constructor. Having this called once (or once
per EOF stack, I'm not sure about that) is sufficient.
This should not be needed so, yes, its a bug.
Hi!
Just fyi:
Today we saw this issue again after adding
EOModelGroup.defaultGroup().loadAllModelObjects();
to the constructor in Application.java.
This is on WO5.2.2 on solaris. The ec we use there is a child of
session.defaultEditingContext.
The stacktrace is as follows:
java.lang.NullPointerException
at
com.webobjects.eocontrol._EOMutableKnownKeyDictionary.<init>(_EOMutableKnownKeyDictionary.java:90)
at
com.webobjects.eoaccess.EORelationship._foreignKeyForSourceRow(EORelationship.java:1094)
at
com.webobjects.eoaccess.EODatabaseContext._followToManyRelationshipWithFetchSpecification(EODatabaseContext.java:2656)
at
com.webobjects.eoaccess.EODatabaseContext._followFetchSpecification(EODatabaseContext.java:2780)
at
com.webobjects.eoaccess.EODatabaseContext._performPrefetchForFetchSpecification(EODatabaseContext.java:2971)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3218)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3319)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:535)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4036)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4036)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4421)
at AvgiBesvarelse.setSelectedBesvarelse(Unknown Source)
at AvgiBesvarelse.addBesvarelse(Unknown Source)
at sun.reflect.GeneratedMethodAccessor240.invoke(Unknown Source)
-kaj :)
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.