• 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
Why are my EOs turning back to faults?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are my EOs turning back to faults?


  • Subject: Why are my EOs turning back to faults?
  • From: John Pollard <email@hidden>
  • Date: Wed, 05 Sep 2012 17:21:09 +0100

Hi WO list,

The firing of a fault on EOs of one type is causing EOs of another type be turned into faults... is that expected?

I have a WebPage eo with a to-many relationship called childWebPages (returns an array of WebPage objects)

When I access this array recursively in getDescendantWebPages()...see stack trace below, a totally different class of object is turned into a fault StockItem, see top line of stack trace.

I don't want EOF to turn my carefully pre-loaded StockItems back into faults!

The two EOs are related via a join table.

This is causing performance headaches.

	at mp.eo.StockItem.turnIntoFault(StockItem.java:1714)
	at com.webobjects.eocontrol.EOFaultHandler.makeObjectIntoFault(EOFaultHandler.java:161)
	at com.webobjects.eoaccess.EODatabaseContext._turnToFaultGidEditingContextIsComplete(EODatabaseContext.java:3363)
	at com.webobjects.eoaccess.EODatabaseContext.faultForGlobalID(EODatabaseContext.java:3397)
	at com.webobjects.eocontrol.EOObjectStoreCoordinator.faultForGlobalID(EOObjectStoreCoordinator.java:537)
	at com.webobjects.eocontrol.EOEditingContext.faultForGlobalID(EOEditingContext.java:3608)
	at com.webobjects.eoaccess.EODatabaseContext._objectFaultWithSnapshotRelationshipEditingContext(EODatabaseContext.java:2361)
	at com.webobjects.eoaccess.EODatabaseContext._fireDeferredFaultWithSourceObject(EODatabaseContext.java:2401)
	at com.webobjects.eoaccess.EOAccessDeferredFaultHandler.createFaultForDeferredFault(EOAccessDeferredFaultHandler.java:49)
	at com.webobjects.eocontrol.EOCustomObject.willReadRelationship(EOCustomObject.java:1279)
	at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_LazyGenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:614)
	at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
	at com.webobjects.eoaccess.EODatabaseContext.databaseOperationForObject(EODatabaseContext.java:4810)
	at com.webobjects.eoaccess.EODatabaseContext.valuesForKeys(EODatabaseContext.java:6531)
	at com.webobjects.eocontrol.EOObjectStoreCoordinator.valuesForKeys(EOObjectStoreCoordinator.java:321)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration$_KeyValueQualifierSupport.schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:439)
	at com.webobjects.eoaccess.EOQualifierSQLGeneration$Support._schemaBasedQualifierWithRootEntity(EOQualifierSQLGeneration.java:179)
	at com.webobjects.eoaccess.EODatabaseChannel.selectObjectsWithFetchSpecification(EODatabaseChannel.java:227)
	at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3055)
	at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3195)
	at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(EOObjectStoreCoordinator.java:483)
	at com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification(EOEditingContext.java:4053)
	at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:4084)
	at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:629)
	at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3907)
	at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
	at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
	at com.webobjects.eocontrol._EOCheapCopyMutableArray.willRead(_EOCheapCopyMutableArray.java:45)
	at com.webobjects.eocontrol._EOCheapCopyMutableArray.count(_EOCheapCopyMutableArray.java:103)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1410)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1393)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1414)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1393)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1414)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1393)
	at mp.eo.WebPage.getDescendantWebPages(WebPage.java:1414)
	at mp.eo.WebSite.getAllWebPages(WebSite.java:842)
	at mpMall.DirectAction.getWebPageById(DirectAction.java:1982)
	at mpMall.DirectAction.viewPageAction(DirectAction.java:537)

Many thanks,
John
 _______________________________________________
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

  • Follow-Ups:
    • Re: Why are my EOs turning back to faults?
      • From: Chuck Hill <email@hidden>
    • Re: Why are my EOs turning back to faults?
      • From: John Pollard <email@hidden>
  • Prev by Date: Errors building Wonder with ant
  • Next by Date: Re: Errors building Wonder with ant
  • Previous by thread: Re: Errors building Wonder with ant
  • Next by thread: Re: Why are my EOs turning back to faults?
  • Index(es):
    • Date
    • Thread