• 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: NullPointerException only after first call to batchFetchRelationship
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: NullPointerException only after first call to batchFetchRelationship (From: Kaj Hejer <email@hidden>)
 >Re: NullPointerException only after first call to batchFetchRelationship (From: Chuck Hill <email@hidden>)
 >Re: NullPointerException only after first call to batchFetchRelationship (From: Kaj Hejer <email@hidden>)
 >Re: NullPointerException only after first call to batchFetchRelationship (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WO Newsgroup
  • Next by Date: Re(2): SSI within main.html
  • Previous by thread: Re: NullPointerException only after first call to batchFetchRelationship
  • Next by thread: Direct2Web
  • Index(es):
    • Date
    • Thread