Hi,
On Tue, Dec 25, 2012 at 11:04 AM, sol <
solm...@gmail.com> wrote:
> Hi,
>
> Could anyone please help with the following?
> We use Cometd 2.4.3 with Acknowledgement extension.
> Usually it works, but sometimes it stops delivering messages, and complains
> about "UnmodifiableMap" (trace below).
> Once it starts failing, it only recovers after a server restart (there's no
> need to restart the browser).
> BTW it usually happens if I leave the application running during lunch,
> during which I don't send any messages (but my log shows that long polling
> kept working, reconnecting every minute or so).
>
> I searched this forum for "UnmodifiableMap" but saw only 2 mentions, that
> don't seem relevant:
> 1) Comend Security issues - but I didn't secure my application
> 2) Wildcards in channel names - but I register to a hard-coded channel, no
> wildcards
>
> Is there please any record of this phenomenon?
> And what, in general, could even cause the Map to become
> UnmodifiableMap....? From a quick naiive look at
> AcknowledgedMessagesClientExtension, it should be a simple HashMap...
> Thanks very much.
I've never seen this error.
Seems like a /meta/connect response is sent twice, which should never happen.
I see you're using Tomcat, what exact version ?
Do you have this problem with Jetty too ?
I ask because Tomcat had (have ?) problems in handling asynchronous
requests and one common problem was an extra dispatch for the same
request which would lead to the problem you are experiencing.
Try Jetty and let us know if the problem is gone.
Simon
--
http://cometd.org
http://webtide.com
Developer advice, training, services and support
from the Jetty & CometD experts.
----
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless. Victoria Livschitz