• 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: ERD2W and EOGeneralAdaptorException
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ERD2W and EOGeneralAdaptorException


  • Subject: Re: ERD2W and EOGeneralAdaptorException
  • From: Fabian Peters <email@hidden>
  • Date: Mon, 03 Jun 2013 22:06:04 +0200

Hi Tim,

I don't think I've seen this with my D2W-Apps yet. This may be due to my disabling browser navigation via the page wrapper:

    @Override
    public void appendToResponse(WOResponse response, WOContext context) {
        super.appendToResponse(response, context);
	...
        ERXResponseRewriter.addScriptCodeInHead(response, context,
                "if(window.history){window.history.forward(1);}");
    }

This quite effectively prevents the back-button from wreaking havoc. Also, you may want to try:

100 : task = 'edit' => shouldRecoverFromOptimisticLockingFailure = "true" [com.webobjects.directtoweb.BooleanAssignment]

Fabian


Am 03.06.2013 um 21:06 schrieb Tim Worman:

> All:
>
> I have an ERModern app where I see this issue from time to time - an optimistic locking problem I believe. If I kick a new instance everything is fine. It seems to be due to something left "dirty" or unchanged and I feel like I've seen it when users start using browser navigation instead of the "Cancel" button on an edit page. When they come back later, something is messed up and subsequent saves fail.
>
> I could be wrong about the cause. Does anyone else ever have similar problems or maybe some strategies for avoiding these issues. Of course, it could be something else. If it's my fault, I wanna fix it!
>
> Tim
> UCLA GSE&IS
>
>
>
> EOGeneralAdaptorException: updateValuesInRowDescribedByQualifier -- er.extensions.jdbc.ERXJDBCAdaptor$Channel method failed to update row in database
>  at com.webobjects.eoaccess.EODatabaseContext._exceptionWithDatabaseContextInformationAdded(EODatabaseContext.java:4504)
>     ... skipped 1 stack elements
>  at com.webobjects.eocontrol.EOObjectStoreCoordinator.saveChangesInEditingContext(EOObjectStoreCoordinator.java:376)
>  at com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3192)
>  at er.extensions.eof.ERXEC._saveChanges(ERXEC.java:1179)
>  at er.extensions.eof.ERXEC.saveChanges(ERXEC.java:1102)
>  at er.directtoweb.pages.ERD2WInspectPage.tryToSaveChanges(ERD2WInspectPage.java:232)
>  at er.directtoweb.pages.ERD2WInspectPage.submitAction(ERD2WInspectPage.java:282)
>  at er.modern.look.pages.ERMODInspectPage.submitAction(ERMODInspectPage.java:101)
> _______________________________________________
> 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


 _______________________________________________
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: 
 >ERD2W and EOGeneralAdaptorException (From: Tim Worman <email@hidden>)

  • Prev by Date: ERD2W and EOGeneralAdaptorException
  • Next by Date: Re: ERD2W and EOGeneralAdaptorException
  • Previous by thread: ERD2W and EOGeneralAdaptorException
  • Next by thread: Re: ERD2W and EOGeneralAdaptorException
  • Index(es):
    • Date
    • Thread