• 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
ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !


  • Subject: ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !
  • From: Mark Gowdy <email@hidden>
  • Date: Thu, 05 Nov 2009 22:33:14 +0000

Hi, 

I am having an strange problem with Wonder's clearSnapshotForRelationshipNamed method.

(My Wonder version is a few days old)

We have EOs which are related to each other:
RoutingMediaItem   <<--->   RoutingMediaStatus

When I try to get an up-to-date status object and check the results using:

ERXEOControlUtilities.clearSnapshotForRelationshipNamed(routingMediaItem, RoutingMediaItem.TO_ONE_STATUS);
AELog.dbg("- routingMediaItem.status() class   = " + routingMediaItem.status().getClass().getName());
AELog.dbg("- routingMediaItem.status().descr() = " + routingMediaItem.status().descr());  // This is line 100 of RoutingMediaBatch, and descr() is a normal string

The first debug prints what you would expect: 
- routingMediaItem.status() class  = RoutingMediaStatus

The second line explodes with:
java.lang.ClassCastException: RoutingMediaStatus
at com.webobjects.eoaccess.EODatabaseContext.objectsForSourceGlobalID(EODatabaseContext.java:3880)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsForSourceGlobalID(EOObjectStoreCoordinator.java:634)
at com.webobjects.eocontrol.EOEditingContext.objectsForSourceGlobalID(EOEditingContext.java:3923)
at er.extensions.eof.ERXEC.objectsForSourceGlobalID(ERXEC.java:1182)
at com.webobjects.eoaccess.EODatabaseContext._fireArrayFault(EODatabaseContext.java:4245)
at com.webobjects.eoaccess.EOAccessArrayFaultHandler.completeInitializationOfObject(EOAccessArrayFaultHandler.java:77)
at com.webobjects.eocontrol.EOCustomObject.willRead(EOCustomObject.java:1172)
at com.webobjects.eocontrol._EOMutableKnownKeyDictionary$Initializer$_GenericRecordBinding.valueInObject(_EOMutableKnownKeyDictionary.java:570)
at com.webobjects.eocontrol.EOCustomObject.storedValueForKey(EOCustomObject.java:1634)
at _RoutingMediaStatus.descr(_RoutingMediaStatus.java:39)
at RoutingMediaBatch.cancel(RoutingMediaBatch.java:100)

I am a little confused as to what I am doing wrong here (or what I have broken).
I thought it might have been some weird AJAX thing, but I replace the AJAX links with normal ones but the problem persists.

Regards, 

Mark
 _______________________________________________
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: ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: WO Mini conference in Southern California
  • Next by Date: Re: SUCCESS, now trying to deploy, get an immediate error, probably a missing resource(s)?
  • Previous by thread: OT: Subclipse Problem / Question
  • Next by thread: Re: ERXEOControlUtilities.clearSnapshotForRelationshipNamed(..) weirdness !
  • Index(es):
    • Date
    • Thread