Re: You backtrack too far problem.
Re: You backtrack too far problem.
- Subject: Re: You backtrack too far problem.
- From: Gustavo Pizano <email@hidden>
- Date: Tue, 15 Dec 2009 17:18:23 +0100
MMM I will check the sessions on the requests, but as far as I recall Im doing nothing more but to fetch EO's, make relationships, send messages to a parent WOComponent, and that's it.. Im using a 3 mnths old Wonder... is it recent enough?
G.
On Dec 15, 2009, at 4:39 PM, Mike Schrag wrote:
> i can't replicate this .... moreover, within a single session, it seems like these requests should block. can you verify that the session in each of these requests is the same, that you're not accidentally invalidating your session somewhere along the way? i'm assuming you're using a relatively recent wonder, as well?
>
> On Dec 15, 2009, at 4:26 AM, Gustavo Pizano wrote:
>
>> Chuck Hello once Again.
>>
>> Well it happened again, but we realized it's happening when I click somewhere in any Ajax Component, and then I click immediately in another without waiting for the other response to come, then the exception occurs, maybe this give some idea where the problem resides?
>>
>>
>> Thanks for your help
>>
>> Gustavo
>>
>> On Dec 4, 2009, at 9:25 AM, Gustavo Pizano wrote:
>>
>>> Chuck, hi.
>>>
>>> Well I have realize that when I select an element form the Main list, I see in the console the ERXRequest being logged, I guess this comes form WOnder. ANyway, Im checking my code, and I have removed some useless forms I had, also I realize I had a nested form, and a repeated id, so far, from my local machine I have made like 50 clicks, everywhere, and no problems at all, I just need my colleague to use it from my computer and see what happens..
>>>
>>> Also I can imagine this kinda of bugs are really really complicated to find.
>>>
>>> regards.
>>> G.
>>>
>>> On Dec 3, 2009, at 9:31 PM, Chuck Hill wrote:
>>>
>>>>
>>>> On Dec 3, 2009, at 12:13 PM, Gustavo Pizano wrote:
>>>>
>>>>> Chuck Hi.
>>>>>
>>>>> On Dec 3, 2009, at 8:55 PM, Chuck Hill wrote:
>>>>>
>>>>>> I have no idea what your problem is, but it is probably not related. The only way I know of to debug this is:
>>>>>> (a) get a good grasp of how the Ajax page cache works
>>>>> .. well... yes I must learn Ajax and related, you are right, Im working blind here as a "trained monkey" as my Discrete math teacher used to say.
>>>>>
>>>>>> (b) log out all the requests (and probably response content) and examine them carefully to see what went wrong
>>>>>>
>>>>>
>>>>> I will set up the logs, and see what can I see.. due my lack of experience what should I be looking for? or at what should I pay more attention in the log?.
>>>>
>>>> I expect that this will be very, very difficult. You might better spend your time looking at what you need to do and finding a different way of doing it.
>>>>
>>>>
>>>> Chuck
>>>>
>>>>
>>>>
>>>>> Anyway..
>>>>> Thanks for all, I will keep you informed about the debugging process.
>>>>>
>>>>> Gustavo
>>>>>
>>>>>>
>>>>>> Chuck
>>>>>>
>>>>>>
>>>>>> On Dec 3, 2009, at 11:25 AM, Gustavo Pizano wrote:
>>>>>>
>>>>>>> SO.. I got little confused here.... what happened? is it because all the Updates Im making after the response form an AjaxSubmitButton?
>>>>>>>
>>>>>>> G.
>>>>>>> On Dec 3, 2009, at 7:56 PM, Chuck Hill wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> On Dec 3, 2009, at 10:49 AM, Mike Schrag wrote:
>>>>>>>>
>>>>>>>>> yeah, good point -- i think we have a safety net of 2 requests, but i seem to recall that if you can manage to trigger 3 requests for an update container before the first one comes back, you can get this to happen, except that wo blocks by session, which makes this pretty hard to actually pull off. not sure how you'd actually do it.
>>>>>>>>
>>>>>>>> If I have time, I will dig into it when it happens again. I recall that the context ID was waaaaay off when this happened.
>>>>>>>>
>>>>>>>>
>>>>>>>> Chuck
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>> ms
>>>>>>>>>
>>>>>>>>> On Dec 3, 2009, at 1:27 PM, Chuck Hill wrote:
>>>>>>>>>
>>>>>>>>>> I've gotten them with Selenium tests were it was triggering actions faster than a user could. I did not look into it, but expect that things may have been happening out of order. Adding a 250ms or 500ms pause here and there fixed it.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Dec 3, 2009, at 4:40 AM, email@hidden wrote:
>>>>>>>>>>
>>>>>>>>>>> You're the second person who has mentioned backtrack errors with new Ajax. Did something break? You should never get a backtrack error from an Ajax request.
>>>>>>>>>>>
>>>>>>>>>>> Sent from my iPhone
>>>>>>>>>>>
>>>>>>>>>>> On Dec 3, 2009, at 4:22 AM, "Gustavo Pizano"<email@hidden> wrote:
>>>>>>>>>>>
>>>>>>>>>>>> Hello all.
>>>>>>>>>>>>
>>>>>>>>>>>> In my app I have so AjaxUpdateContainers which gets updated when pressing some AjaxSubmitButtons , (funny, :) ), now sometimes, when I, clicking the submit butons, I get the you backtrack too far exception, it happens randlmly, it can happen after clicking 10 times the button, or after clicking 5, or sometimes it doesn't even happen.
>>>>>>>>>>>>
>>>>>>>>>>>> this is what Im doing at the end of the WOActionResult methods,
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> if (this.didBacktrack()){
>>>>>>>>>>>> session().defaultEditingContext().revert();
>>>>>>>>>>>> // handle and prepare to report errors
>>>>>>>>>>>> // this.errors.addObject("Unable to process page after back button was pressed.");
>>>>>>>>>>>> return this.context().page();
>>>>>>>>>>>> }
>>>>>>>>>>>>
>>>>>>>>>>>> I read it somewhere in the wiki, but it seems its not working..
>>>>>>>>>>>>
>>>>>>>>>>>> Any suggestions.?
>>>>>>>>>>>>
>>>>>>>>>>>> thanks
>>>>>>>>>>>>
>>>>>>>>>>>> Gustavo
>>>>>>>>>>>>
>>>>>>>>>>>> _______________________________________________
>>>>>>>>>>>> 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
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>> 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/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
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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/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
>>>>>>>
>>>>>>
>>>>>> --
>>>>>> 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/products/practical_webobjects
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> --
>>>> 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/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
>
>
> _______________________________________________
> 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