tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hanusch, Hartwig" <Hartwig.Hanu...@fja.com>
Subject error in HttpSessionFacade when working with Apache/Tomcat 3.2
Date Fri, 15 Dec 2000 08:45:37 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!

Happy to here from anybody
Cheers Hartwig


Mime
View raw message