Multiple requests to SLSB-backed page returning login page
rituraj_tiwari Dec 12, 2008 8:44 PMI am running Seam 2.1.0A1 on JBoss 4.2.2. My application uses a Flex frontend to display a photo slideshow. In the slideshow, I fetch thumbnails in an album followed by full-size photos as they are selected from thumbnails.
I am observing that some of the thumbnails are not getting rendered. To dig deeper, I performed a packet capture to see what was being returned.
My requests look like:
GET /SharOn/thumbnail.seam?uid=27B875DE-ECC1-1D18-FC11-F4426B386E29 ... Host: dev.webshar.com Connection: Keep-Alive Cookie: org.jboss.seam.security.username=http://raj.tiwari.myopenid.com/; org.jboss.seam.security.username=http://raj.tiwari.myopenid.com/; __utma=125902091.2827918230008524300.1222282408.1227302513.1229100037.53; __utmz=125902091.1222282408.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=169745972.2053616456037313800.1227223392.1229100072.1229105173.25; __utmz=169745972.1227223392.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); org.jboss.seam.security.username=p8qZGf.6ufcGYpuOuoxRWRFjJDE-; __utmb=169745972.98.10.1229105173; JSESSIONID=3C1B8996E7C16318C10BF8B0008F8EBC; __utmc=169745972 ...
Most of the time, I see the thumbnail being returned:
HTTP/1.1 200 OK Date: Fri, 12 Dec 2008 19:27:35 GMT Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 X-Powered-By: JSF/1.2 Content-Type: image/jpeg Content-Length: 1537 Via: 1.1 webshar.com Keep-Alive: timeout=15, max=64 Connection: Keep-Alive ......JFIF.............C..............................................!........."$". ...
However, every now and then I see this:
HTTP/1.1 200 OK Date: Fri, 12 Dec 2008 19:27:36 GMT Server: Apache-Coyote/1.1 X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)/Tomcat-5.5 X-Powered-By: JSF/1.2 Content-Type: text/html;charset=UTF-8 Content-Length: 4428 Via: 1.1 webshar.com Keep-Alive: timeout=15, max=62 Connection: Keep-Alive <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml"> <head> <!-- The login page -->
Basically, Seam returns me the login page.
The thumbnail fetching is implemented by a Stateless bean, so I don't see there being any concurrency issues. Is there a limitation in Seam regarding the number of concurrent requests?
I have also implemented logic in my Flex UI to stagger the requests so they are sent 0.3 seconds apart rather than at the whim of the UI. Still, no major help.
Any insights will be greatly appreciated.
Thanks.
-Raj