Re: Snapshot problems
Re: Snapshot problems
- Subject: Re: Snapshot problems
- From: Chuck Hill <email@hidden>
- Date: Thu, 19 Apr 2007 09:50:28 -0700
This pretty much means one of two things:
1. You are not locking properly
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
Context_and_Database_Locking
2. You are violating EOF commandments
http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Using_EOF/
The_EOF_Commandments
Chuck
On Apr 19, 2007, at 7:54 AM, Steven Mark McCraw wrote:
Hi all,
I've been seeing a lot of exceptions/warnings in the logs for one
of my applications lately, and all seem to have something to do
with an unexpected snapshot state. I'm not really sure what causes
this, or where to look next. Has anyone seen these before?
The first appears just to be logging from something, and not a full-
blown exception:
DEBUG NSLog - decrementSnapshotCountForGlobalID:
com.webobjects.eoaccess.EODatabase
com.webobjects.eoaccess.EODatabase@7300c2 -- is unable to decrement
snapshot count for object with global ID _EOIntegralKeyGlobalID
[Media (java.lang.Integer)9755] - count is already 0 or this
snapshot doesn't exist
I'm also getting a lot of these, which seem like they might be
related somehow:
Error: java.lang.IllegalStateException
Reason: There is no database snapshot available for the object
<Disc pk:"76798"> with GlobalID _EOIntegralKeyGlobalID[Disc
(java.lang.Integer)76798]
EODatabaseContext.java line 4205 method objectsForSourceGlobalID
package com.webobjects.eoaccess
EOObjectStoreCoordinator.java line 682 method
objectsForSourceGlobalID package com.webobjects.eocontrol
EOEditingContext.java line 3904 method objectsForSourceGlobalID
package com.webobjects.eocontrol
ERXEC.java line 1036 method objectsForSourceGlobalID package
er.extensions
EODatabaseContext.java line 4418 method _fireArrayFault package
com.webobjects.eoaccess
EOAccessArrayFaultHandler.java line 70 method
completeInitializationOfObject package com.webobjects.eoaccess
_EOCheapCopyMutableArray.java line 38 method willRead package
com.webobjects.eocontrol
_EOCheapCopyMutableArray.java line 92 method count package
com.webobjects.eocontrol
_EOCheapCopyArray.java line 33 method _setArray package
com.webobjects.eocontrol
EOAccessArrayFaultHandler.java line 151 method
completeInitializationOfObject package com.webobjects.eoaccess
_EOCheapCopyArray.java line 126 method willRead package
com.webobjects.eocontrol
_EOCheapCopyArray.java line 95 method objectsNoCopy package
com.webobjects.eocontrol
NSArray.java line 393 method <init> package com.webobjects.foundation
NSMutableArray.java line 60 method <init> package
com.webobjects.foundation
_NSArrayUtilities.java line 197 method
arrayExcludingObjectsFromArray package com.webobjects.foundation
EODatabaseContext.java line 6100 method
recordChangesInEditingContext package com.webobjects.eoaccess
EOObjectStoreCoordinator.java line 412 method
saveChangesInEditingContext package com.webobjects.eocontrol
EOEditingContext.java line 3165 method saveChanges package
com.webobjects.eocontrol
ERXEC.java line 947 method _saveChanges package er.extensions
ERXEC.java line 870 method saveChanges package er.extensions
InventoryItem.java line 427 method successfulChangeSave package
InventoryItem
InventoryItem.java line 799 method increaseShelfQuantityBy package
InventoryItem
InventoryItem.java line 499 method setShelfQuantity package
InventoryItem
NativeMethodAccessorImpl.java line NA method invoke0 package
sun.reflect
NativeMethodAccessorImpl.java line 39 method invoke package
sun.reflect
DelegatingMethodAccessorImpl.java line 25 method invoke package
sun.reflect
Method.java line 324 method invoke package java.lang.reflect
KeyValueCodingProtectedAccessor.java line 65 method setMethodValue
package KeyValueCodingProtectedAccessor
NSKeyValueCoding.java line 1175 method setValueInObject package
com.webobjects.foundation
NSKeyValueCoding.java line 1205 method setValueInObject package
com.webobjects.foundation
EOCustomObject.java line 1601 method takeValueForKey package
com.webobjects.eocontrol
NSKeyValueCoding.java line 519 method takeValueForKey package
com.webobjects.foundation
NSValidation.java line 733 method validateTakeValueForKeyPath
package com.webobjects.foundation
EOCustomObject.java line 1363 method validateTakeValueForKeyPath
package com.webobjects.eocontrol
NSValidation.java line 551 method validateTakeValueForKeyPath
package com.webobjects.foundation
NSValidation.java line 741 method validateTakeValueForKeyPath
package com.webobjects.foundation
WOComponent.java line 1273 method validateTakeValueForKeyPath
package com.webobjects.appserver
...
Thanks in Advance,
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40global-village.net
This email sent to email@hidden
--
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:
This email sent to email@hidden