users@grizzly.java.net

Problem: inconsistent browser communication (chat samples)

From: <Jens.Heyer_at_hsbctrinkaus.de>
Date: Mon, 9 Mar 2009 11:55:49 +0100

Hello everybody,

I tried the sample "grizzly-comet-chat-1.9.9-20090307.220712-19.war",
"grizzly-comet-chat-iframe-1.9.9-20090307.220712-19.war" and
"grizzly-comet-counter-1.9.9-20090307.220712-19.war" from the maven
repository (http://download.java.net/maven/2/com/sun/grizzly/samples/) and
got an unexpected behaviour by using miscellaneous browsers.

This is what I have done in case of sample
"grizzly-comet-chat-1.9.9-20090307.220712-19.war":

1. java -jar grizzly-comet-webserver-1.9.9-20090307.220712-42.jar -p 8080
-a grizzly-comet-chat-1.9.9-20090307.220712-19.war
com.sun.grizzly.samples.comet.AjaxCometServlet
2. Start a Firefox 3.0.6 (hereinafter called 'A'), open
"http://localhost:8080/", enter a Name
3. Start a Firefox 3.0.6 (hereinafter called 'B'), open
"http://localhost:8080/", enter a Name
4. Enter a Text in 'B' and press the "Post Message" button (this notifies
the chat clients 'A' and 'B' as expected)
5. Start a Internet Explorer 7.0.5730.13 (herinafter called 'C'), open
"http://localhost:8080/", enter a Name
6. Enter a Text in 'A' and press the "Post Message" button (this notifies
the chat clients 'A', 'B' and 'C' as expected)
7. Enter a Text in 'C' and press the "Post Message" button (>> nothing
happens? <<)

Aside from that, after waiting some minutes both Firefox instances stop
listening to the chat although they are still able to send messages?


Another demonstration by using the
"grizzly-comet-chat-iframe-1.9.9-20090307.220712-19.war":

1. java -jar grizzly-comet-webserver-1.9.9-20090307.220712-42.jar -p 8080
-a grizzly-comet-chat-iframe-1.9.9-20090307.220712.19.war
com.sun.grizzly.sample.comet.iframechat.CometServlet
2. Start a Firefox 3.0.6 (hereinafter called 'A'), open
"http://localhost:8080/", enter a Name
3. Start a Firefox 3.0.6 (hereinafter called 'B'), open
"http://localhost:8080/", enter a Name (>> after the logging in the name I
entered is not displayed in the top? <<)
4. Enter Text in 'A' and press enter (>> only 'A' gets a message, not 'B'?
<<)
5. Enter Text in 'B' and press enter (>> only 'A' gets a message, not 'B'?
<<)
6. Start a Internet Explorer 7.0.5730.13 (herinafter called 'C'), open
"http://localhost:8080/", enter a Name (>> after the logging in the name I
entered is not displayed in the top like in case of 'B'? <<)
7. Enter Text in 'C' and press enter (>> only 'A' gets a message, not 'B'
or 'C'? <<)
8. Close 'A' (>> both the chat and the name gets visible in 'B' somehow?
<<)

Best regards

Jens

**** Ressourcen schonen, weniger drucken - Think before you print! ****

---------------------------------------------------------------------
Diese E-Mail sowie eventuelle Anhänge enthalten vertrauliche und / oder
rechtlich geschützte Informationen. Wenn Sie nicht der richtige Adressat
sind oder diese E-Mail irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren
oder Speichern sowie die unbefugte Weitergabe dieser E-Mail sind nicht
gestattet.

This e-mail and any attachments may contain confidential and / or
privileged information. If you are not the intended recipient or have
received this e-mail in error, please notify the sender immediately and
destroy this e-mail . Any unauthorized copying, storing, disclosure or
distribution of the contents of this e-mail is strictly forbidden.

---------------------------------------------------------------------
HSBC Trinkaus & Burkhardt AG
Sitz: Düsseldorf, Königsallee 21/23, 40212 Düsseldorf, Handelsregister:
Amtsgericht Düsseldorf HRB 54447
Mitglieder des Vorstands: Andreas Schmitz (Sprecher), Paul Hagen, Dr. Olaf
Huth, Carola Gräfin v. Schmettow
Vorsitzender des Aufsichtsrats: Dr. Sieghardt Rometsch