• 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
WOUnit and (horizontal) inheritance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOUnit and (horizontal) inheritance


  • Subject: WOUnit and (horizontal) inheritance
  • From: Paul Hoadley <email@hidden>
  • Date: Mon, 13 Aug 2012 19:44:04 +0930

Hi Henrique,

I am using a TemporaryEditingContext to test a group of related EOs.  To try and debug a test failure, I am saving the EC after the creation of each new EO.  At the point where I'm getting an IllegalArgumentException, the only new EO inserted into the EC is a subclass by horizontal inheritance of a parent EO.  Inserting the subclass and saving throws this:

Caused by: java.lang.IllegalArgumentException: Attempt to insert null object into an com.webobjects.foundation.NSMutableDictionary.
	at com.webobjects.foundation.NSMutableDictionary.setObjectForKey(NSMutableDictionary.java:68)
	at com.webobjects.eoaccess.EODatabaseContext.commitChanges(EODatabaseContext.java:6348)
	at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386)
	at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
	at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1110)
	at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1032)

As noted, the only relevant difference I can see is the inheritance.  Would you expect the TemporaryEditingContext (or the memory adaptor) to have a problem with (horizontal) inheritance?


--
Paul Hoadley
http://logicsquad.net/




 _______________________________________________
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: WOUnit and (horizontal) inheritance
      • From: Henrique Prange <email@hidden>
  • Prev by Date: Re: Creating an AjaxModalDialog wizard
  • Next by Date: Re: jasperreports framework
  • Previous by thread: Re: jasperreports framework
  • Next by thread: Re: WOUnit and (horizontal) inheritance
  • Index(es):
    • Date
    • Thread