Hi.
How do you disconnect the clients ?
public void destroy() throws Exception {
if(client.isConnected()){
try{
client.getChannel(configurationHolder.getChannel()).unsubscribe();
client.disconnect();
}catch(Exception e){}
}
}
Do you have a debug log that shows the problem ?
Here is a complete stacktrace:2012-06-01 13:24:11.382 qtp26872956-14 INFO org.cometd.client.BayeuxClient 992 :onFailure - Messages failed [{id=10151, connectionType=websocket, channel=/meta/connect, clientId=26jlii3j9sg5exp15kjx6f8qwcqt}]
java.io.EOFException: Connection closed 1000 Disconnect
at org.cometd.websocket.client.WebSocketTransport$CometDWebSocket.onClose(WebSocketTransport.java:506) [cometd-websocket-jetty-2.4.3.jar:na]
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.closeOut(WebSocketConnectionRFC6455.java:368) [jetty-websocket-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455$WSFrameConnection.close(WebSocketConnectionRFC6455.java:499) [jetty-websocket-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.cometd.websocket.client.WebSocketTransport.disconnect(WebSocketTransport.java:183) [cometd-websocket-jetty-2.4.3.jar:na]
at org.cometd.websocket.client.WebSocketTransport.onMessages(WebSocketTransport.java:485) [cometd-websocket-jetty-2.4.3.jar:na]
at org.cometd.websocket.client.WebSocketTransport$CometDWebSocket.onMessage(WebSocketTransport.java:515) [cometd-websocket-jetty-2.4.3.jar:na]
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455$WSFrameHandler.onFrame(WebSocketConnectionRFC6455.java:845) [jetty-websocket-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.websocket.WebSocketParserRFC6455.parseNext(WebSocketParserRFC6455.java:359) [jetty-websocket-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.websocket.WebSocketConnectionRFC6455.handle(WebSocketConnectionRFC6455.java:235) [jetty-websocket-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:620) [jetty-io-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46) [jetty-io-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603) [jetty-util-8.1.4.v20120524.jar:8.1.4.v20120524]
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538) [jetty-util-8.1.4.v20120524.jar:8.1.4.v20120524]
at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26]
2012-06-01 13:24:11.399 qtp26872956-14 DEBUG o.c.client.transport.ClientTransport 70 :debug - Deregistering null for message {id=9979, connectionType=websocket, channel=/meta/connect, clientId=25ed747mcjd0sis6dsks3yeobwi}
2012-06-01 13:24:11.399 qtp26872956-14 DEBUG org.cometd.client.BayeuxClient 858 :debug - State not updateable: DISCONNECTED -> UNCONNECTED
Regards
Christian