• 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: Handling Session timeout with ajax
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Handling Session timeout with ajax


  • Subject: Re: Handling Session timeout with ajax
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 28 Jan 2009 13:29:51 +1030

On 28/01/2009, at 10:59 AM, Chuck Hill wrote:

On Jan 27, 2009, at 4:18 PM, Paul Hoadley wrote:

On 28/01/2009, at 10:08 AM, Chuck Hill wrote:

On Jan 26, 2009, at 11:17 PM, Paul Hoadley wrote:

On 27/01/2009, at 5:11 PM, Chuck Hill wrote:

FireBug and FireFox.  Take a look at the Net log.  You can see all the traffic back and forth.  Often these things came in an Ajax update and so don't show up in the page source (as originally loaded).  Look at the response content in FireBug and you should be able to find it.

Sorry Chuck, I'm obviously having a slow afternoon (and it's 41ºC here)

It is snowing here.  I am willing to trade.

Did not even consider that, did you?

Actually, I did.  It's 42ºC today, 39ºC tomorrow.  Please send snow.

---I assume you mean to look using the Net log on the page where I'm generating the Exception, but _after_ the exception has been thrown, right?  I don't get the chance, as the app responds to the request, returning the login page, and the inspector is updated.  Am I looking in the right place?

Yes, almost.  What I would do is go to this before you trigger the exception and hit Clear.  Then trigger the exception, and see what show up.

When I trigger the exception (by using an AjaxUpdateLink, and I suspect this is the problem), I assume the errant request is coming from some JS executed due to the onclick attribute.  In which case, I can't seem to catch it with Firebug.  I trigger the exception, and the next thing that happens is I'm back at Main.  By then it's too late, all Firebug shows is the errant request itself, and the rest of the requests/responses to render Main.

Can you not scroll back up?  I thought it kept quite a record of the RR loops.

Maybe I have FireBug configured wrong, but I can't seem to scroll back.

If not, follow Anjo's suggestion of overriding dispatchRequest() and logging out the response before returning it.

Jan 28 13:23:08 AM[50121] WARN  NSLog  - <er.ajax.AjaxRequestHandler>: Exception occurred while handling request:
java.lang.NullPointerException
Jan 28 13:23:08 AM[50121] INFO  NSLog  - Application.handleException: Handling an Exception:
[2009-1-28 13:23:8 CST] <WorkerThread1> java.lang.NullPointerException

...

Jan 28 13:23:08 AM[50121] INFO  NSLog  - AMErrorPage.setPageType: pageType = exception
Application.dispatchRequest: 
<script type="text/_javascript_">document.location.href='';</script>
Application.dispatchRequest: 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...

So there's the request, coming from a small _javascript_ fragment.  I don't know what's generating _that_, though.


-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/


 _______________________________________________
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: Handling Session timeout with ajax
      • From: Chuck Hill <email@hidden>
References: 
 >Handling Session timeout with ajax (From: Amedeo Mantica <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Paul Hoadley <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Paul Hoadley <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Paul Hoadley <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Paul Hoadley <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Paul Hoadley <email@hidden>)
 >Re: Handling Session timeout with ajax (From: Chuck Hill <email@hidden>)

  • Prev by Date: mightDelete Question
  • Next by Date: Re: Handling Session timeout with ajax
  • Previous by thread: Re: Handling Session timeout with ajax
  • Next by thread: Re: Handling Session timeout with ajax
  • Index(es):
    • Date
    • Thread