• 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: ec.saveChanges() throws exception, still saves
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ec.saveChanges() throws exception, still saves


  • Subject: Re: ec.saveChanges() throws exception, still saves
  • From: Chuck Hill <email@hidden>
  • Date: Tue, 05 Feb 2013 13:14:53 -0800

On 2013-02-05, at 12:55 PM, Ramsey Gurley wrote:

> **** Caught: java.lang.IllegalStateException: incrementSnapshotCountForGlobalID: com.webobjects.eoaccess.EODatabase com.webobjects.eoaccess.EODatabase@74bfd10a -- is unable to increment snapshot count for object with global ID <EOTemporaryGlobalID: 0 0 -64 -88 100 98 0 0 7 -36 1 0 0 0 1 60 -85 -83 -87 -21 79 -127 -20 23> - no snapshot exists
>      Extra Information:
>          Actor = No Actor
> java.lang.IllegalStateException: incrementSnapshotCountForGlobalID: com.webobjects.eoaccess.EODatabase com.webobjects.eoaccess.EODatabase@74bfd10a -- is unable to increment snapshot count for object with global ID <EOTemporaryGlobalID: 0 0 -64 -88 100 98 0 0 7 -36 1 0 0 0 1 60 -85 -83 -87 -21 79 -127 -20 23> - no snapshot exists
> 	at com.webobjects.eoaccess.EODatabase.incrementSnapshotCountForGlobalID(EODatabase.java:1062)
> 	at com.webobjects.eoaccess.EODatabaseContext.commitChanges(EODatabaseContext.java:6368)
> 	at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:386)
> 	at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
> 	at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1176)
> 	at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1099)
>
> Just wondering about this.. I got an exception saving an ec, but the EOs still managed to save into the db. Is that the rule then? EOGeneralAdaptorException == no save, IllegalStateException or others == save?

I don't think I would call that a rule.  But EOF does not write a rollback transaction if an unexpected error (which this certainly is!) happens late in the save cycle.

How did you manage this?  It should not still have an EOTemporaryGlobalID at this point.


Chuck


--
Chuck Hill             Senior Consultant / VP Development

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/gvc/practical_webobjects

Global Village Consulting ranks 13th in 2012 in BIV's Top 100 Fastest Growing Companies in B.C!
Global Village Consulting ranks 76th in 24th annual PROFIT 200 ranking of Canada’s Fastest-Growing Companies by PROFIT Magazine!









 _______________________________________________
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: ec.saveChanges() throws exception, still saves
      • From: Ramsey Gurley <email@hidden>
References: 
 >ec.saveChanges() throws exception, still saves (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: ec.saveChanges() throws exception, still saves
  • Next by Date: Re: ec.saveChanges() throws exception, still saves
  • Previous by thread: ec.saveChanges() throws exception, still saves
  • Next by thread: Re: ec.saveChanges() throws exception, still saves
  • Index(es):
    • Date
    • Thread