@#$%

Stupid RMI is causing the problem.

I don't know why, but apparently having read-only attributes on the client that get their value from the server side eventually corrupts the EC.

I have a guess though.

Because this is a Java Client UI instead of web, these values that are calculated on the server are being requested pretty-much continuously. Every time you change windows, the UI asks for the values to be updated. Switch to another app, update, switch back, update, select a another tab in this window, update, change a value in another window, update.

Update, update, update.

Because of the way JC works, it is copying the EC up to the server and back down to the client every time I make a RMI request for the data. In theory this shouldn't corrupt the EC, but apparently it does.

I guess I'll either have to go back to executing the code on the client, or figure out a way I can do it stateless so the EC doesn't need to be copied back and forth.

Dave

On Apr 11, 2008, at 2:23 PM, David Avendasora wrote:

The odd thing is that this is the first time I've seen this happen, and this part of the application is the same as it's been for 2 years. The only exception to that is that I changed a couple non- model attributes to ask the server for values instead of calculating them on the client. But these are the attributes it's complaining about.

I'm going to remove stop the RMI and see if that gets it working again...

<WorkerThread0> Server exception:
rowDiffsForAttributes: snapshot in com.webobjects.eoaccess.EODatabaseOperation {
        _dbSnapshot = {};
        _entity = "BillOfMaterial";
        _newRow = {
                isActive = false;
                mustBeBalanced = false;
                partId = <com.webobjects.foundation.NSKeyValueCoding$Null>;
routingDescription = "Preform Homestyle 240/1oz Chocolate Chip, MMA BOM";
                isDefault = false;
                productionSequence = 0.000000;
                partQuantity = 1.000000; };
        _object = "Preform Homestyle 240/1oz Chocolate Chip, MMA BOM";
_globalID = _EOIntegralKeyGlobalID[BillOfMaterial (java.lang.Long)1138];
        _databaseOperator = "EODatabaseUpdateOperator";
} does not contain value for attribute named billOfMaterialTypeId with snapshot key: billOfMaterialTypeId

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to