From: Guido N. <gui...@gm...> - 2006-09-08 14:21:19
|
Two options: you are not invalidating properly and / or you are sending snapshots from different model versions. cug 2006/9/8, Timo Hoepfner <th...@on...>: > > > I guess this Exception is new with the globalID approach, at least I > didn't see it before. Has anyone else seen this? > > java.lang.IllegalStateException: > initializeObject: No snapshot for gid _EOIntegralKeyGlobalID > [AdvertisingMediumHistory (java.lang.Integer)2493] > at com.webobjects.eoaccess.EODatabaseContext.initializeObject > (EODatabaseContext.java:3722) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.initializeObject > (EOObjectStoreCoordinator.java:646) > at com.webobjects.eocontrol.EOEditingContext.initializeObject > (EOEditingContext.java:3744) > at er.extensions.ERXEC.initializeObject(ERXEC.java:710) > at com.webobjects.eoaccess.EODatabaseContext._fireFault > (EODatabaseContext.java:4292) > at > com.webobjects.eoaccess.EOAccessFaultHandler.completeInitializationOfObj > ect(EOAccessFaultHandler.java:85) > at com.webobjects.eocontrol.EOCustomObject.willRead > (EOCustomObject.java:1189) > at com.webobjects.eocontrol.EOCustomObject.willChange > (EOCustomObject.java:270) > at com.webobjects.eocontrol._EOMutableKnownKeyDictionary > $Initializer$_GenericRecordBinding.setValueInObject > (_EOMutableKnownKeyDictionary.java:527) > at > com.webobjects.eocontrol.EOCustomObject.takeStoredValueForKey > (EOCustomObject.java:1778) > at er.extensions.ERXGenericRecord.takeStoredValueForKey > (ERXGenericRecord.java:763) > ... > > java.lang.IllegalStateException: > rowDiffsForAttributes: snapshot in > com.webobjects.eoaccess.EODatabaseOperation { > _dbSnapshot = {}; > _entity = "AdvertisingMediumHistory"; > _newRow = {advertisingMediumHistoryID = > 2493; ...tons_of_other_attributes... }; > _object = "<de.ddcom.indi.om.AdvertisingMediumHistory pk:"2493">"; > _globalID = _EOIntegralKeyGlobalID[AdvertisingMediumHistory > (java.lang.Integer)2493]; > _databaseOperator = "EODatabaseUpdateOperator"; > } > does not contain value for attribute named advertisingMediumHistoryID > with snapshot key: advertisingMediumHistoryID > at > com.webobjects.eoaccess.EODatabaseOperation.rowDiffsForAttributes > (EODatabaseOperation.java:338) > at > com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForData > baseOperationAttributes(EODatabaseContext.java:5364) > at > com.webobjects.eoaccess.EODatabaseContext.createAdaptorOperationsForData > baseOperation(EODatabaseContext.java:5539) > at com.webobjects.eoaccess.EODatabaseContext.performChanges > (EODatabaseContext.java:6356) > at > com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingCo > ntext(EOObjectStoreCoordinator.java:415) > at com.webobjects.eocontrol.EOEditingContext.saveChanges > (EOEditingContext.java:3165) > at er.extensions.ERXEC._saveChanges(ERXEC.java:662) > at er.extensions.ERXEC.saveChanges(ERXEC.java:590) > ... > > > Timo > > > > > Am 07.09.2006 um 21:21 schrieb Timo Hoepfner: > > > Ok, > > > > I now have a production app running with a patched > > ERChangeNotification framework (globalIDs instead of snapshots; > > mainly the patch from Eugene) and ActiveMQ. Let's see if it works > > better than before. > > > > Timo > > > > > > Am 07.09.2006 um 14:59 schrieb Dov Rosenberg: > > > >> I haven't had a chance to go back to look at ActiveMQ - I really > >> don't like > >> OpenJMS. It seems like the development has ground to a halt and it > >> is still > >> pretty fragile. The big hassle for us is that OpenJMS is not > >> clusterable. > >> > >> Overall the change notification framework seems to work pretty well > >> and > >> keeps our apps in sync. We made modifications to the framework not > >> to send > >> snapshots though - only globalids. It is much lighterweight and > >> faster. > >> > >> > >> > >> > >> On 9/7/06 7:46 AM, "Timo Hoepfner" <th...@on...> wrote: > >> > >>> Hi Dov, > >>> > >>>> We had been using OpenJMS 0.7.6 for awhile but there are some > >>>> severe > >>>> problems with that version. I would strongly recommend upgrading to > >>>> the > >>>> current release. It appears that development of openjms has > >>>> stalled. We are > >>>> looking at replacing openjms with ActiveMQ (http:// > >>>> www.activemq.org) > >>> > >>> Do you have any good or bad experiences with ActiveMQ by now? I've > >>> got it running locally with a test app now and wonder if it would > >>> make sense to replace the ERChangeNotification docs and default > >>> config to describe/use ActiveMQ instead of OpenJMS. > >>> > >>> The problem with this framework and the JMS server is, that you can > >>> spend months successfully testing it in a clean room environment to > >>> have it fail within the first five minutes of production use... > >>> > >>> Timo > >>> > >> > >> -- > >> Dov Rosenberg > >> Conviveon/Inquira > >> Knowledge Management Experts > >> http://www.conviveon.com > >> http://www.inquira.com > >> > >> > >> > >> --------------------------------------------------------------------- > >> - > >> --- > >> Using Tomcat but need to do more? Need to support web services, > >> security? > >> Get stuff done quickly with pre-integrated technology to make your > >> job easier > >> Download IBM WebSphere Application Server v.1.0.1 based on Apache > >> Geronimo > >> http://sel.as-us.falkag.net/sel? > >> cmd=lnk&kid=120709&bid=263057&dat=121642 > >> _______________________________________________ > >> Wonder-disc mailing list > >> Won...@li... > >> https://lists.sourceforge.net/lists/listinfo/wonder-disc > > > > > > ---------------------------------------------------------------------- > > --- > > Using Tomcat but need to do more? Need to support web services, > > security? > > Get stuff done quickly with pre-integrated technology to make your > > job easier > > Download IBM WebSphere Application Server v.1.0.1 based on Apache > > Geronimo > > http://sel.as-us.falkag.net/sel? > > cmd=lnk&kid=120709&bid=263057&dat=121642 > > _______________________________________________ > > Wonder-disc mailing list > > Won...@li... > > https://lists.sourceforge.net/lists/listinfo/wonder-disc > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Wonder-disc mailing list > Won...@li... > https://lists.sourceforge.net/lists/listinfo/wonder-disc > -- PostgreSQL Bootcamp, Big Nerd Ranch Europe, Nov 2006 http://www.bignerdranch.com/news/2006-08-21.shtml |