Hey all, I have been tinkering around with JBoss 3.2 RC1's session clustering feature using a simple jsp app to test that sessions are communicated between nodes.
This sounds crazy, but does anyone know for a fact that RC1 or RC2 can perform session clustering? I run into null pointer exceptions when I create a session on node1 and then try to request a jsp page on node2. It looks like node2 is attempting to look up the session id when it fails. Here is the stack trace from a failure: --------------------------------------------------------------------------------------------------------------- -662189858=jboss.j2ee:jndiName=clustering/HTTPSession,service=EJB 11:37:13,362 ERROR [Engine] CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.NullPointerException at org.jboss.web.catalina.session.ClusterManager.findSession(ClusterManager.java:188) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:173) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) --------------------------------------------------------------------------------------------------------------- In the cluster manager file, here is the line that the stack trace if refferencing: --------------------------------------------------------------------------------------------------------------- 177 // If jvmRoute is set manipulate the sessionid and generate a cookie to make 178 // the session sticky on its new node 179 String jvmRoute=this.getJvmRoute(); 180 if(jvmRoute!=null) { 181 String sessionid=id; 182 HttpServletResponse response=(HttpServletResponse)ClusteredSessionValve.responseThreadLocal.get(); 183 184 // kill the old Cookie 185 Cookie oldCookie=new Cookie(Globals.SESSION_COOKIE_NAME,id); 186 oldCookie.setMaxAge(0); 187 oldCookie.setPath(contextPath); 188 response.addCookie(oldCookie); 189 --------------------------------------------------------------------------------------------------------------- Hence is the response object that is comming back null from the ClusteredSessionValve. -- Bruce Playboy.com ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user