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

Snapshot Question


  • Subject: Snapshot Question
  • From: Andrew Lindesay <email@hidden>
  • Date: Fri, 27 Apr 2007 11:14:59 +1200

Hello;

I'm getting an error at...

at ..EODatabaseOperation.rowDiffsForAttributes (EODatabaseOperation.java:338)
at ..EODatabaseContext.createAdaptorOperationsForDatabaseOperationAttr ibutes(EODatabaseContext.java:5373)
at ..EODatabaseContext.createAdaptorOperationsForDatabaseOperation (EODatabaseContext.java:5548)
at ..EODatabaseContext.performChanges(EODatabaseContext.java:6365)
at ..EOObjectStoreCoordinator.saveChangesInEditingContext (EOObjectStoreCoordinator.java:415)
at ..EOEditingContext.saveChanges(EOEditingContext.java:3226)

...which looks a bit like this (entity name changed)...

rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation

{_dbSnapshot = {}; _entity = "MyEntity"; _newRow =

{
...
articleBody = <com.webobjects.foundation.NSKeyValueCoding$Null>;
...
};

_object = "{values = {
...
articleBody = <com.webobjects.foundation.NSKeyValueCoding$Null>;
...
};
this = "<nz.co.chong.cbw.eo.CBClip 8e67d8 _EOIntegralKeyGlobalID [CBClip (java.lang.Integer)1637467]>"; }";
_globalID = _EOIntegralKeyGlobalID[MyEntity (java.lang.Integer) 1637467]; _databaseOperator = "EODatabaseUpdateOperator";
}


does not contain value for attribute named articleBody with snapshot key: articleBody

Which is confusing because "articleBody" seems to be there in the snap. It can't be marshalling its optimistic locking because there is none on the "articleBody" attribute. It must be looking to see if there is a change in order to turn that change into adaptor operations. I'm using...


forgetSnapshotForGlobalID(...)
recordSnapshotForSourceGlobalID(null, gidA, rA.name());

... on EODatabase as discussed some weeks ago here for change notification. I'm pretty sure that I am locking the EODatabaseContext for the entity appropriately before dropping snapshots. I assume that "EOObjectStoreCoordinator" must also lock the database context before "performChanges(...)".


It is highly likely that two users of the WOA are trying to edit the same data at the same time here. Anything I've obviously forgotten?

cheers.

___
Andrew Lindesay
www.lindesay.co.nz


_______________________________________________ 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: Snapshot Question
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Array variables in building a qualifier in EOModeler
  • Next by Date: Re: Snapshot Question
  • Previous by thread: Re: Array variables in building a qualifier in EOModeler
  • Next by thread: Re: Snapshot Question
  • Index(es):
    • Date
    • Thread