CometConnectionManagerValve combined with SimpleTcpCluster

2012-04-13 Thread Willem Fibbe - Realworks BV

Hi,

We have a small cluster of 2 Tomcat-nodes, replicating sessions via 
SimpleTcpCluster.
After we enabled CometConnectionManagerValve in context.xml, sessions weren't 
replicated anymore and we saw the following exceptions in the tomcat logs:
   java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: org.apache.catalina.connector.Request

After digging further, I see that the Valve puts a list of Request-objects on 
the session that have comet-connections open.
When sessions are tried to be replicated, the Request-objects can't be 
serialized, hence the exception.

Is this a bug, maybe? Or should I use something else than SimpleTcpCluster?

Regards,
Willem Fibbe

Re: CometConnectionManagerValve combined with SimpleTcpCluster

2012-04-13 Thread Willem Fibbe - Realworks BV

Sorry, should have mentioned this before, but this was on Tomcat 6.0.35 
(Debian).

Willem


Op vrijdag, 13 april 2012 16:21 schreef Willem Fibbe - Realworks BV 
wil...@realworks.nl:




Hi,

We have a small cluster of 2 Tomcat-nodes, replicating sessions via 
SimpleTcpCluster.
After we enabled CometConnectionManagerValve in context.xml, sessions weren't 
replicated anymore and we saw the following exceptions in the tomcat logs:
java.io.WriteAbortedException: writing aborted; 
java.io.NotSerializableException: org.apache.catalina.connector.Request

After digging further, I see that the Valve puts a list of Request-objects on 
the session that have comet-connections open.
When sessions are tried to be replicated, the Request-objects can't be 
serialized, hence the exception.

Is this a bug, maybe? Or should I use something else than SimpleTcpCluster?

Regards,
Willem Fibbe