tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanusch, Hartwig" <Hartwig.Hanu...@fja.com>
Subject Still : Error in HttpSessionFacade - still nobodys really interes ted in
Date Wed, 20 Dec 2000 08:56:42 GMT
		Hi there,

		does anybody know why a servlet works fine with tomcat only
(port 8080) 
		but when using apache/tomcat via jk_mod (or old jserv) the
servlet throws 
		an error like that: 

		java.lang.NullPointerException: 
		        at org.apache.tomcat.facade. 
	
HttpSessionFacade.getId(HttpSessionFacade.java:114) 
		... 

		the calling code looks that way: 

		session is hash of sessions 

		for (Iterator i = sessions.iterator(); i.hasNext(); ) 
		{ 
		        HttpSession theHttpSession = (HttpSession) i.next();

		        String sid = theHttpSession.getId();
<---- problem, 
		calling HttpSessionFacade .... 
		        if (loginObj.hasContentSessionRelatedBlaSession(sid)
!= true) 
		        { 
		                tmpVec.add(theHttpSession); 
		        } 
		} 

		Could that be a configuration error? Doesnt seems like?! Any
ideas? 
		When looking at the HttpSession the stored session in memory
seem to mix up! 
		I am, as far as i know not the only person who has that kind
of problem.

		Happy to here from anybody 
		Cheers Hartwig



Mime
View raw message