You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2012/01/30 11:46:47 UTC
DO NOT REPLY [Bug 52558] New: CometConnectionManagerValve is adding
non-serializable Request[] to Session
https://issues.apache.org/bugzilla/show_bug.cgi?id=52558
Bug #: 52558
Summary: CometConnectionManagerValve is adding non-serializable
Request[] to Session
Product: Tomcat 7
Version: 7.0.22
Platform: Macintosh
Status: NEW
Severity: enhancement
Priority: P2
Component: Catalina
AssignedTo: dev@tomcat.apache.org
ReportedBy: adam.hawkins@gmail.com
Classification: Unclassified
CometConnectionManagerValve is adding HttpServletRequest[] to HttpSession which
is preventing the Session being serialized in a Clustered setup.
We're resolving this locally using a serializable ConnectionList class with a
transient Request[]
i.e.
public class ConnectionList implements Serializable {
transient Request[] connectionList = null;
ConnectionList(Request[] connectionList){
this.connectionList = connectionList;
}
public Request[] get(){
return connectionList;
}
}
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 52558] CometConnectionManagerValve is adding non-serializable
Request[] to Session
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52558
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Component|Catalina |Catalina
Version|7.0.22 |8.0.0-RC1
Resolution|--- |FIXED
Product|Tomcat 7 |Tomcat 8
Target Milestone|--- |----
--- Comment #2 from Mark Thomas <ma...@apache.org> ---
I'd be surprised if anyone was relying on the connection list being stored as
an array of requests but in case they are it is safer to use the work=around
for 7.0.x and earlier. I have applied a fix based on the suggested new class
for Tomcat 8.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 52558] CometConnectionManagerValve is adding
non-serializable Request[] to Session
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=52558
Rainer Jung <ra...@kippdata.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS/Version| |All
--- Comment #1 from Rainer Jung <ra...@kippdata.de> 2012-01-30 10:59:05 UTC ---
Note that there is an attribute "sessionAttributeFilter" in the cluster manager
configuration, that allows to decide which session attributes you want to be
replicated. It was introduced in Tomcat 7.0.22.
See:
http://tomcat.apache.org/tomcat-7.0-doc/config/cluster-manager.html
It is not a direct answer to your observation, but might be enough for a
workaround. Therefore I keep this issue in status "New".
Regards,
Rainer
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org