tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 52558] New: CometConnectionManagerValve is adding non-serializable Request[] to Session
Date Mon, 30 Jan 2012 10:46:47 GMT
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


Mime
View raw message