activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (Resolved) (JIRA)" <>
Subject [jira] [Resolved] (AMQ-3776) synchronization error in MessageListenerServlet.getAjaxWebClient
Date Tue, 20 Mar 2012 13:37:37 GMT


Timothy Bish resolved AMQ-3776.

       Resolution: Fixed
    Fix Version/s: 5.6.0
         Assignee: Timothy Bish

Fix applied in trunk.
> synchronization error in MessageListenerServlet.getAjaxWebClient
> ----------------------------------------------------------------
>                 Key: AMQ-3776
>                 URL:
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.5.0
>            Reporter: Chris Dolan
>            Assignee: Timothy Bish
>            Priority: Minor
>             Fix For: 5.6.0
> Note: I found this problem by reading code, not by an actual behavior problem!
> In the latest revision of MessageListenerServlet.getAjaxWebClient() you can see that
the ajaxWebClients map is read outside of a synchronized block and then edited inside the
block. This looks like a simple mistake, and the get() should be moved down one line.
> Theoretically, the downside of this bug will be that new clients will be unnecessarily
created if a single web session connects to the servlet from two or more concurrent connections.
In practice, this almost never happens because most ajax users of ActiveMQ should have only
one connection in flight at a time.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message