Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: snapshot does not contain value for attribute named x with snapshot key: x ?



Hi Alan,


On Mar 30, 2007, at 7:14 AM, Alan Zebchuk wrote:

Does anyone know what would cause the following error and what the solution is?

You are not properly locking all of the editing contexts and / or violating EOF Commandments (Google that term for the details).



er.extensions.ERXApplication (ERXApplication.java:904) - Exception caught: rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {_dbSnapshot = {};

That last bit, _dbSnapshot = {}, is the clue. EOF has no snapshot for the object you are trying to update. You have trashed the EOF state.


Chuck


_entity = "MyEntity"; _newRow = {content = "Some Random Content"; myInteger = 1; oid = 336; }; _object = "<ca.protocolis.entity.MyTestEntity pk:"336">"; _globalID = _EOIntegralKeyGlobalID[MyTestEntity (java.lang.Integer)336]; _databaseOperator = "EODatabaseUpdateOperator"; } does not contain value for attribute named content with snapshot key: content


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/email@hidden

This email sent to email@hidden
References: 
 >snapshot does not contain value for attribute named x with snapshot key: x ? (From: Alan Zebchuk <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.