• 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 _dbSnapshot and _newRow missing attributes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: rowDiffsForAttributes _dbSnapshot and _newRow missing attributes


  • Subject: Re: rowDiffsForAttributes _dbSnapshot and _newRow missing attributes
  • From: David Avendasora <email@hidden>
  • Date: Fri, 11 Apr 2008 15:00:54 -0400

@#$%

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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >rowDiffsForAttributes _dbSnapshot and _newRow missing attributes (From: David Avendasora <email@hidden>)
 >Re: rowDiffsForAttributes _dbSnapshot and _newRow missing attributes (From: David Avendasora <email@hidden>)

  • Prev by Date: Re: ERXMigrationTable.newColumn does not set default value
  • Next by Date: Re: ERXMigrationTable.newColumn does not set default value
  • Previous by thread: Re: rowDiffsForAttributes _dbSnapshot and _newRow missing attributes
  • Next by thread: Re: rowDiffsForAttributes _dbSnapshot and _newRow missing attributes
  • Index(es):
    • Date
    • Thread