• 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: Class cast exception thrown in in EODistributionContext
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class cast exception thrown in in EODistributionContext


  • Subject: Re: Class cast exception thrown in in EODistributionContext
  • From: Florijan Stamenkovic <email@hidden>
  • Date: Fri, 27 Jun 2008 09:26:15 -0400


On Jun 27, 2008, at 06:41, David Avendasora wrote:

Hi Flor,

I see on the "children" relationship you have it set to cascade delete. How are is the awakeFromInsertion called on the server-side for both this Entity and the "children"? I don't really think this is it, but ... do you check for each attribute you are setting there to see if it is null first? I have run into lots of problems with cascade-delete relationships if I don't do that, and the error I got was a vague and didn't help track down the problem at all.

awakeFromInsertion on both sides checks for null before setting anything (one attribute, the "dbInputDate").


How about other Entities that have to-many relationships to this Entity? Do any of them own this Entity or cascade-delete it?

The Project entity cascade deletes StructureItems on the reverse relationship of "structureItemsDirect".


Though somehow I do not believe this is the problem. I have isolated the issue on one particular action: creating and inserting a new StructureItem, and trying to save changes. This happens on a fresh EC, fresh session. From what I recall you telling about your awakeFromInsertion woes, that was related to deleting EOs and undoing changes, no? My problem is 100% reproducible through that one action, inserting a StructureItem.

Daryl, perhaps you could point out what might be causing this class cast exception from the WO source? What is WO's type assumption that I am somehow violating? Or maybe it is a bug?

I'll keep digging to try to pinpoint the exception producing aspect of the EO.

F
_______________________________________________
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: Class cast exception thrown in in EODistributionContext
      • From: Daryl Lee <email@hidden>
References: 
 >Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Daryl Lee <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: Florijan Stamenkovic <email@hidden>)
 >Re: Class cast exception thrown in in EODistributionContext (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: Zombies and Dead WOAs... Part Two..
  • Next by Date: Re: Zombies and Dead WOAs... Part Two..
  • Previous by thread: Re: Class cast exception thrown in in EODistributionContext
  • Next by thread: Re: Class cast exception thrown in in EODistributionContext
  • Index(es):
    • Date
    • Thread