activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Dean (JIRA)" <>
Subject [jira] Updated: (AMQ-3094) ajax client does not receive all messages
Date Wed, 05 Jan 2011 19:46:47 GMT


Alex Dean updated AMQ-3094:

    Attachment: test_shows_that_ajax_client_misses_messages_which_arrive_while_poll_is_in_progress.patch

Attached test shows that an ajax client will miss messages which arrive while an ajax poll
request is in progress.

This test uses org.eclipse.jetty.client.HttpClient rather than org.apache.commons.httpclient.HttpClient.
 I was able to get session handling working with the Jetty HttpClient, and it's much better
at async requests than the commons HttpClient.

I sometimes see an in the poll request.  The cause is unclear.
 Sometimes the error disappears simply by re-running the test.  Sometimes doing a recompile
of activemq-trunk/activemq-web and then re-running the test causes the error to disappear.

> ajax client does not receive all messages
> -----------------------------------------
>                 Key: AMQ-3094
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.4.2
>         Environment: OSX 10.6 on MacBook Pro
> java version "1.6.0_20"
> Java(TM) SE Runtime Environment (build 1.6.0_20-b02-279-10M3065)
> Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01-279, mixed mode)
>            Reporter: Alex Dean
>            Assignee: Dejan Bosanac
>             Fix For: 5.5.0
>         Attachments: AjaxTest-output-eof-exception.txt, AjaxTest-output-no-eof-exception.txt,
AjaxTest-output-notes.txt, AjaxTest-output.txt,, chat-send.html, include-commons-httpclient-in-pom-xml.patch,
write_message_response_debugging.patch, write_message_response_debugging_output.txt
> Not all messages written to a destination are delivered to an ajax client.  This seems
particularly true if more than 1 message should be returned to a client at once.  Often, if
5 messages are available, only the first 1 is actually returned in the <ajax-response>
XML.  The other 4 are lost.
> Steps to reproduce:
>  * Place the attached chat-sent.html in activemq/webapps/demo/  (or in activemq-trunk/activemq-web-demo/src/main/webapp
in an svn working copy).
>  * Start ActiveMQ.
>  * Browse to http://localhost:8161/demo/chat.html & join the chat room.
>  * In a new window, browse to http://localhost:8161/demo/chat-send.html
> chat-send.html will send 5 message to topic://CHAT.DEMO.  Only 1 (or sometimes 2) messages
will be received by the original browser window which is subscribed to the topic.  The activemq
web admin will verify that 5 messages were actually sent.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message