• 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: rowDiffsForAttributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rowDiffsForAttributes


  • Subject: Re: rowDiffsForAttributes
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 04 Mar 2014 18:42:40 +0000
  • Thread-topic: rowDiffsForAttributes

And if you are manually disposing them, make sure the children go first.  Just like in a  TV crime scene!


On 2014-03-04, 10:05 AM, "Ramsey Gurley" wrote:

Are you using nested ecs? If you are, try ec.setRetainsRegisteredObjects(true).

https://github.com/wocommunity/wonder/pull/342

On Mar 4, 2014, at 9:35 AM, David Avendasora <email@hidden> wrote:

Hey all,

I’m getting the following exception (I added line breaks to make it digestible by any on the list):

IllegalStateException: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation 
{
_dbSnapshot = {}; 
_entity = "MYEntity"; 
_newRow = 
{
whatsit = "PHONE";
whosit = false;
chuckIt = false;
id = 3451;
}; 
_object = "<com.nekesto.neo.model.MYEntity pk:"3451">"; 
_globalID = _EOIntegralKeyGlobalID[MYEntity (java.lang.Long)3451]; 
_databaseOperator = "EODatabaseUpdateOperator"; 
} does not contain value for attribute named chuckIt with snapshot key: chuckIt

I can see that the _dbSnapshot is completely empty and I know that that is what it’s complaining about. The object exists in the DB with a PK matching the id value, which matches up with the _object and the _globalID. How could the _dbSnapshot end up empty? What horribly-inappropriate thing have done? 

I have gone over everyplace I instantiate “MYEntity” and I’m never using the EO’s constructor, it’s always being done by ERXEOControlUtilities.createAndInsertObject(editingContext, “MYEntity”).

As far as I can tell I’m never crossing EC boundaries without localInstancing it. 

Is there anything else that can cause the _dbSnapshot to be empty?

I’m making use of multiple EOObjectStoreCoordinators, 1 each for two different EOModelGroups, but this code should only ever be using the defaultModelGroup in the defaultObjectStoreCoordinator. So I don’t *think* it has anything to do with that, but, well, I’m me and I do stuff all the time that future me is shocked at.

Dave


—————————————————————————————
WebObjects - so easy that even Dave Avendasora can do it!™
—————————————————————————————
David Avendasora
Senior Software Abuser
Nekesto, Inc.





_______________________________________________
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

 _______________________________________________
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

References: 
 >rowDiffsForAttributes (From: David Avendasora <email@hidden>)
 >Re: rowDiffsForAttributes (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: rowDiffsForAttributes
  • Next by Date: Re: Flattened to-one relationship problems
  • Previous by thread: Re: rowDiffsForAttributes
  • Next by thread: Re: rowDiffsForAttributes
  • Index(es):
    • Date
    • Thread