Exception while invoking extension AcknowledgedMessagesClientExtension

12 views
Skip to first unread message

Iain

unread,
Sep 13, 2011, 9:14:18 PM9/13/11
to cometd-users
Hi,

I am getting an exception when I try and subscribe to the channel "/
**". I have enabled message acknowledgement on the server and client.

On the client, it constantly Connects, Disconnects, Connects,
Disconnects.

On the server, the following happens:
2011-09-14
01:07:51.701:DBUG:org.cometd.server.BayeuxServerImpl@2409492:<<
{"id":"222","successful":true,"channel":"/meta/connect"}
2011-09-14
01:07:51.701:DBUG:org.cometd.server.BayeuxServerImpl@2409492:<
{"id":"222","successful":true,"channel":"/meta/connect"}
2011-09-14
01:07:51.761:DBUG:org.cometd.server.BayeuxServerImpl@2409492:>
{"id":"223","connectionType":"callback-polling","channel":"/meta/
connect","ext":{"ack":218},"clientId":"c3ku4tcebu71l1mmg9pxuzjoqa"}
c3ku4tcebu71l1mmg9pxuzjoqa
2011-09-14
01:07:51.761:DBUG:org.cometd.server.BayeuxServerImpl@2409492:>>
{"id":"223","connectionType":"callback-polling","channel":"/meta/
connect","ext":{"ack":218},"clientId":"c3ku4tcebu71l1mmg9pxuzjoqa"}
2011-09-14
01:07:51.761:INFO:org.cometd.server.BayeuxServerImpl@2409492:Exception
while invoking extension
org.cometd.server.ext.AcknowledgedMessagesClientExtension@1961a84
java.lang.UnsupportedOperationException
at java.util.Collections$UnmodifiableMap.put(Collections.java:
1285)
at
org.cometd.server.ext.AcknowledgedMessagesClientExtension.sendMeta(AcknowledgedMessagesClientExtension.java:
134)
at
org.cometd.server.ServerSessionImpl.notifySendMeta(ServerSessionImpl.java:
709)
at
org.cometd.server.ServerSessionImpl.extendSendMeta(ServerSessionImpl.java:
699)
at
org.cometd.server.ServerSessionImpl.doDeliver(ServerSessionImpl.java:
240)
at
org.cometd.server.BayeuxServerImpl.doPublish(BayeuxServerImpl.java:
868)
at
org.cometd.server.BayeuxServerImpl.handle(BayeuxServerImpl.java:673)
at
org.cometd.server.transport.LongPollingTransport.bayeuxServerHandle(LongPollingTransport.java:
412)
at
org.cometd.server.transport.LongPollingTransport.handle(LongPollingTransport.java:
227)
at org.cometd.server.CometdServlet.service(CometdServlet.java:
173)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
820)
at
org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1352)
at
org.eclipse.jetty.continuation.ContinuationFilter.doFilter(ContinuationFilter.java:
118)
at org.eclipse.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1323)
at
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:
476)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
119)
at
org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:
480)
at
org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:
225)
at
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:
937)
at
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:
406)
at
org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:
183)
at
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:
871)
at
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:
117)
at
org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:
247)
at
org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:
149)
at
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:
110)
at org.eclipse.jetty.server.Server.handle(Server.java:346)
at
org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:
589)
at org.eclipse.jetty.server.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:1048)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:
601)
at
org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
at
org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:
411)
at
org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:
535)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint
$1.run(SelectChannelEndPoint.java:40)
at org.eclipse.jetty.util.thread.QueuedThreadPool
$3.run(QueuedThreadPool.java:529)
at java.lang.Thread.run(Thread.java:662)

And the server code:
@Bean(initMethod = "start", destroyMethod = "stop")
public BayeuxServer bayeuxServer()
{
BayeuxServerImpl bean = new BayeuxServerImpl();
bean.setOption(BayeuxServerImpl.LOG_LEVEL, "3");
bean.addExtension(new
org.cometd.server.ext.AcknowledgedMessagesExtension());
return bean;
}


Any ideas?

Cheers,

Iain

Simone Bordet

unread,
Sep 14, 2011, 3:14:08 AM9/14/11
to cometd...@googlegroups.com
Hi,

On Wed, Sep 14, 2011 at 03:14, Iain <iain.r...@gmail.com> wrote:
> Hi,
>
> I am getting an exception when I try and subscribe to the channel "/
> **". I have enabled message acknowledgement on the server and client.

CometD version ?

Simon
--
http://bordet.blogspot.com
---
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

Iain

unread,
Sep 14, 2011, 10:15:23 PM9/14/11
to cometd-users
Sorry I should have included that:

I am using:
* Jetty 7.4.5
* Cometd 2.3.1
* Chrome 14.0.835

On Sep 14, 5:14 pm, Simone Bordet <sbor...@intalio.com> wrote:
> Hi,
>
> On Wed, Sep 14, 2011 at 03:14, Iain <iain.robe...@gmail.com> wrote:
> > Hi,
>
> > I am getting an exception when I try and subscribe to the channel "/
> > **". I have enabled message acknowledgement on the server and client.
>
> CometD version ?
>
> Simon
> --http://bordet.blogspot.com

Simone Bordet

unread,
Sep 15, 2011, 1:11:01 PM9/15/11
to cometd...@googlegroups.com
Hi,

On Thu, Sep 15, 2011 at 04:15, Iain <iain.r...@gmail.com> wrote:
> Sorry I should have included that:
>
> I am using:
> * Jetty 7.4.5
> * Cometd 2.3.1
> * Chrome 14.0.835

All right I can reproduce, can you please file a bug at http://bugs.cometd.org ?

The issue is the subscription to /** along with the ack extension.
Subscription to non /** works fine.

Working on it.

Simon
--

Simone Bordet

unread,
Sep 16, 2011, 6:58:40 AM9/16/11
to cometd...@googlegroups.com
Hi,

On Thu, Sep 15, 2011 at 19:11, Simone Bordet <sbo...@intalio.com> wrote:
> All right I can reproduce, can you please file a bug at http://bugs.cometd.org ?

Never mind: http://bugs.cometd.org/browse/COMETD-285

Iain

unread,
Sep 19, 2011, 8:33:04 PM9/19/11
to cometd-users
wow that was a fast fix. Much faster than I expected.

Thanks Simone! I will give it a go.

On Sep 16, 8:58 pm, Simone Bordet <sbor...@intalio.com> wrote:
> Hi,
>
> On Thu, Sep 15, 2011 at 19:11, Simone Bordet <sbor...@intalio.com> wrote:
> > All right I can reproduce, can you please file a bug athttp://bugs.cometd.org?
>
> Never mind:http://bugs.cometd.org/browse/COMETD-285
>
> Simon
> --http://bordet.blogspot.com

Simone Bordet

unread,
Sep 20, 2011, 2:37:57 AM9/20/11
to cometd...@googlegroups.com
Hi,

On Tue, Sep 20, 2011 at 02:33, Iain <iain.r...@gmail.com> wrote:
> wow that was a fast fix. Much faster than I expected.
>
> Thanks Simone! I will give it a go.

Let us know if it worked.

Simon
--

Reply all
Reply to author
Forward
0 new messages