users@grizzly.java.net

Problem: inconsistent browser communication (chat samples)

From: Jens Heyer <JensHeyer_at_gmx.de>
Date: Mon, 9 Mar 2009 23:59:54 +0100

>Salut,

>

>Jens.Heyer_at_hsbctrinkaus.de wrote:

>> 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

>

>Are the 2 browsers running from the same instance of Firefox? If yes,

>the two connections max limit to a host will prevent the application

>from working.

 

Hmm, I don't really know what you mean by opening two different instances,
but I what I did is just double clicking the Firefox Desktop Icon two times.
I think this should create two separate instances right?

 

>

>

>> 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 (hereinafter 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? <<)

>

>hum...looks like we have a bug. Can you file an issue here:

>

>https://grizzly.dev.java.net/issues/

>

>Do you know if 1.9.6 suffer the same issue?

 

I tried to start the 1.9.6 Version but in that case I got an exception after
entering a name and logging in (take a look at the attachment for further
details).

 

>

>Thanks!

>

>--Jeanfrancois

>

>

>>

>> 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







Exception.jpg
(image/jpeg attachment: Exception.jpg)