After I used Fiddler, I can still see two requests issued when code stopped in FrameworkSevlet breakpoint. Following are two request headers from Fiddler. The only difference is second one has a referer, and I still can't tell the source sending these two requests. Any idea?
1. GET /appfuse/editUser.html?username=a&from=list HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Host: localhost:8008 Proxy-Connection: Keep-Alive Cookie: username=a; JSESSIONID=F9764F1BEEE98A5B8503FD27835A9EB7; ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=YToxMTY4Mzc5MDEzMTIyOmYyZTQ1MjY0YWEzNTgxZTg5ZjFjYTkxMjY3OWYyNGNj 2. GET /appfuse/editUser.html?username=a&from=list HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */* Referer: http://localhost:8008/appfuse/users.html;jsessionid=B3B335082176A4F176F0A6BD328F57F4 Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Host: localhost:8008 Proxy-Connection: Keep-Alive Cookie: username=a; JSESSIONID=F9764F1BEEE98A5B8503FD27835A9EB7; ACEGI_SECURITY_HASHED_REMEMBER_ME_COOKIE=YToxMTY4Mzc5MDEzMTIyOmYyZTQ1MjY0YWEzNTgxZTg5ZjFjYTkxMjY3OWYyNGNj Sanjiv Jivan wrote: > > All decent debuggers have a Call Stack / Frame view which allows you to > trace the sequence of methods that led to the current call being made. So > by > examining the higher order call stacks, you should be able to figure out > why > the calls are being made twice. Which IDE / debugger are you using? > > Is the request being made by a javascript onclick call which does not > return > false causing the request to be submitted twice? Try running Fiddler to > confirm that the request is being issued only once. Once you've ruled that > out, examine the call stack to narrow down the issue. > > Sanjiv > > On 12/22/06, kkus <[EMAIL PROTECTED]> wrote: >> >> >> When breakpoint was hit, I checked request field and both have the same >> session id and seems identical. What specific object or variable do you >> want >> me to check? >> >> >> Sanjiv Jivan wrote: >> > >> > Examine the call stack in your debugger when the breakpoints are hit. >> > >> > On 12/22/06, kkus <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> In 1.9.4 Spring MVC, I put a breakpoint at doGet() of >> >> FrameworkServlet.java. >> >> Then in Administration - View Users page I clicked a link for a user >> then >> >> there are two threads stopping at the same breakpoint. It seems only >> >> happen >> >> in displaytag or only for Get request. How can I debug the root cause >> for >> >> sending same request twice? Thanks! >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/tough-question%3A-doGet-request-fired-twice-in-displaytag-tf2872720s2369.html#a8029262 >> >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/tough-question%3A-doGet-request-fired-twice-in-displaytag-tf2872720s2369.html#a8029490 >> Sent from the AppFuse - User mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/tough-question%3A-doGet-request-fired-twice-in-displaytag-tf2872720s2369.html#a8057366 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
