HI , Any suggestions on the problem reported below .I would like to add another point that this works perfectly in Linux . I have tomcat4 running in linux and the session does not become null .As I mentioned before in Windows it works fine ..Only in HP Unix I get this problem of the session variable becoming null..any specific settings that I need to check ?
-----Original Message----- From: MUKUND Premchander [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 12:23 PM To: Tomcat Users List Subject: RE: SESSION PROBLEM in UNIX Hi, Thank you for your inputs. I couldn't implement HttpSessionListener on tomcat3.2,hence I tried with HttpSessionBindingListener before. where I added an a listener object to the session and so that when session becomes invalid then the unbound method will get called . Now as suggested I moved my application to tomcat4.1.29 and tested the same ,by implementing HttpSessionListener and also Enabled the request dumper in the server.xml. I still get the same problem i.e. after a few refresh null pointer exception is thrown when session is accessed. sessionCreated(HttpSessionEvent se) is called and I get the SOP when I load application in Browser ,but after the error occurs the sessionDestroyed(HttpSessionEvent se) is not called ( confirmed it as SOP was not displayed on the console) Also I see no difference in the dump by the request dumper for the refresh period when the problem occurred and the previous interval . Message in the log file 2004-04-21 12:02:19 ApplicationDispatcher[/MCOne] Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException Part of the request response dump: As I see it the session ID is the same and maintained . So I am unable to find out if its my application or the session management that is causing the problem. As shown above problem occurs at 12:02:19 Find below dump of 12:02:19 and previous interval 12:02:09 when the screen display is good 2004-04-21 12:02:08 RequestDumperValve[Standalone]: REQUEST URI =/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:08 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: characterEncoding=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: contentLength=116 2004-04-21 12:02:08 RequestDumperValve[Standalone]: contentType=application/x-www-form-urlencoded 2004-04-21 12:02:08 RequestDumperValve[Standalone]: contextPath= 2004-04-21 12:02:08 RequestDumperValve[Standalone]: cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=referer=http://10.3.106.177:8080/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept-language=en-us 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=content-type=application/x-www-form-urlencoded 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=accept-encoding=gzip, deflate 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=host=10.3.106.177:8080 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=content-length=116 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=connection=Keep-Alive 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=cache-control=no-cache 2004-04-21 12:02:08 RequestDumperValve[Standalone]: header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: locale=en_US 2004-04-21 12:02:08 RequestDumperValve[Standalone]: method=POST 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenUrlInitialize= 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=interval=null, check_interval 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenInterval=10 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=hiddenRealtimeMain=Summary 2004-04-21 12:02:08 RequestDumperValve[Standalone]: parameter=selectopt=10 2004-04-21 12:02:08 RequestDumperValve[Standalone]: pathInfo=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: protocol=HTTP/1.1 2004-04-21 12:02:08 RequestDumperValve[Standalone]: queryString=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteAddr=10.3.106.64 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteHost=10.3.106.64 2004-04-21 12:02:08 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:08 RequestDumperValve[Standalone]: scheme=http 2004-04-21 12:02:08 RequestDumperValve[Standalone]: serverName=10.3.106.177 2004-04-21 12:02:08 RequestDumperValve[Standalone]: serverPort=8080 2004-04-21 12:02:08 RequestDumperValve[Standalone]: servletPath=null 2004-04-21 12:02:08 RequestDumperValve[Standalone]: isSecure=false 2004-04-21 12:02:08 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:09 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:09 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentLength=-1 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentType=text/html;charset=ISO-2022-JP 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=Content-Type=text/html;charset=ISO-2022-JP 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=Transfer-Encoding=chunked 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=Date=Wed, 21 Apr 2004 06:32:09 GMT 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=Server=Apache-Coyote/1.1 2004-04-21 12:02:09 RequestDumperValve[Standalone]: message=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: status=200 2004-04-21 12:02:09 RequestDumperValve[Standalone]: =============================================================== 2004-04-21 12:02:09 RequestDumperValve[Standalone]: REQUEST URI =/MCOne/images/MCOne.jpg 2004-04-21 12:02:09 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: characterEncoding=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentLength=-1 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentType=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contextPath= 2004-04-21 12:02:09 RequestDumperValve[Standalone]: cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=accept=*/* 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=referer=http://10.3.106.177:8080/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=accept-language=en-us 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=accept-encoding=gzip, deflate 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=if-modified-since=Wed, 21 Apr 2004 04:25:03 GMT 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=if-none-match=W/"2741-1082521503000" 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=host=10.3.106.177:8080 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=connection=Keep-Alive 2004-04-21 12:02:09 RequestDumperValve[Standalone]: header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:09 RequestDumperValve[Standalone]: locale=en_US 2004-04-21 12:02:09 RequestDumperValve[Standalone]: method=GET 2004-04-21 12:02:09 RequestDumperValve[Standalone]: pathInfo=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: protocol=HTTP/1.1 2004-04-21 12:02:09 RequestDumperValve[Standalone]: queryString=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: remoteAddr=10.3.106.64 2004-04-21 12:02:09 RequestDumperValve[Standalone]: remoteHost=10.3.106.64 2004-04-21 12:02:09 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:09 RequestDumperValve[Standalone]: scheme=http 2004-04-21 12:02:09 RequestDumperValve[Standalone]: serverName=10.3.106.177 2004-04-21 12:02:09 RequestDumperValve[Standalone]: serverPort=8080 2004-04-21 12:02:09 RequestDumperValve[Standalone]: servletPath=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: isSecure=false 2004-04-21 12:02:09 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:09 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:09 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentLength=-1 2004-04-21 12:02:09 RequestDumperValve[Standalone]: contentType=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: message=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:09 RequestDumperValve[Standalone]: status=304 2004-04-21 12:02:09 RequestDumperValve[Standalone]: =============================================================== 2004-04-21 12:02:19 RequestDumperValve[Standalone]: REQUEST URI =/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:19 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: characterEncoding=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentLength=116 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentType=application/x-www-form-urlencoded 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contextPath= 2004-04-21 12:02:19 RequestDumperValve[Standalone]: cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=accept=image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */* 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=referer=http://10.3.106.177:8080/MCOne/BP/BPRealtimeServlet 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=accept-language=en-us 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=content-type=application/x-www-form-urlencoded 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=accept-encoding=gzip, deflate 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=host=10.3.106.177:8080 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=content-length=116 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=connection=Keep-Alive 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=cache-control=no-cache 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=cookie=JSESSIONID=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:19 RequestDumperValve[Standalone]: locale=en_US 2004-04-21 12:02:19 RequestDumperValve[Standalone]: method=POST 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenUrlInitialize= 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=interval=null, check_interval 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenInterval=10 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=hiddenRealtimeMain=Summary 2004-04-21 12:02:19 RequestDumperValve[Standalone]: parameter=selectopt=10 2004-04-21 12:02:19 RequestDumperValve[Standalone]: pathInfo=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: protocol=HTTP/1.1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: queryString=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteAddr=10.3.106.64 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteHost=10.3.106.64 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: requestedSessionId=314C72D3A1279E24B5095C9DA4D02DF2 2004-04-21 12:02:19 RequestDumperValve[Standalone]: scheme=http 2004-04-21 12:02:19 RequestDumperValve[Standalone]: serverName=10.3.106.177 2004-04-21 12:02:19 RequestDumperValve[Standalone]: serverPort=8080 2004-04-21 12:02:19 RequestDumperValve[Standalone]: servletPath=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: isSecure=false 2004-04-21 12:02:19 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:19 RequestDumperValve[Standalone]: --------------------------------------------------------------- 2004-04-21 12:02:19 RequestDumperValve[Standalone]: authType=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentLength=-1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: contentType=text/html;charset=ISO-2022-JP 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Content-Type=text/html;charset=ISO-2022-JP 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Transfer-Encoding=chunked 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Date=Wed, 21 Apr 2004 06:32:19 GMT 2004-04-21 12:02:19 RequestDumperValve[Standalone]: header=Server=Apache-Coyote/1.1 2004-04-21 12:02:19 RequestDumperValve[Standalone]: message=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: remoteUser=null 2004-04-21 12:02:19 RequestDumperValve[Standalone]: status=200 2004-04-21 12:02:19 RequestDumperValve[Standalone]: =============================================================== Excuse me for this long mail .Request your inputs on above Thanks and Regards Mukund -----Original Message----- From: Veniamin Fichin [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 20, 2004 7:53 PM To: Tomcat Users List Subject: Re: SESSION PROBLEM in UNIX MUKUND Premchander wrote: > I am using tomcat 3.2 not tomcat 4.0 hence as per your suggestion I > did try and implement HttpSessionBindingListener and put the object > into the session in the same jsp , the valueBound was called but when > the session access threw null pointer > exception valueUnbound was not called No-no, you need to implement HttpSessionListener, not HttpSessionBindingListener. The former interface will alert you when a session is created and destroyed, that way you will know if your session does away for example by container or just disappears, that's the bug. And still, try somehow to determine if JSESSIONID is passed with each request (use filter, HTTP sniffer or anything). If this cookie is passed, but session continuously lost, this must be the bug. And 3.x version is now outdated a little, so may be there was a bug in session handling, but nobody will fix it these days. Consider upgrade to at least 4.x serie, that way you may hope someone will help you in case of trouble. > And when I gave a sop the request.getSession(false) printed the same > session object . I did try with NN and I get the same problem . > Kindly help with your comments --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
