HttpSessionFacade

2001-03-14 Thread Dominic Reynolds

Hi,
  I have a question regarding the use of HttpSessionFacade. It appears that many
 instances of this object can wrap the same *real* session. These objects are th
en recycled by tomcat (unbinding the facade from the real session). This recycli
ng happens prior to the session being invalidated which can cause troubles on se
rvlet objects which use the session. What are the rules that govern when a facade is 
recycled?
 Previous mailing-list threads recommend to use the context to store servlet app
lication data but I'm confused as to why the HttpSession object provides an inte
rface to set/get data if not for the application to store data that should be pe
rsisted accross requests but used within a single session.

thanks,
dominic.



error in HttpSessionFacade when working with Apache/Tomcat 3.2

2000-12-15 Thread Hanusch, Hartwig

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




Still : Error in HttpSessionFacade - still nobodys really interested in

2000-12-20 Thread Hanusch, Hartwig

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





Re:Still : Error in HttpSessionFacade - still nobodys really interested in

2000-12-20 Thread Narayanan Balasubramanian


There is no problem for me as u have stated ..i have tested a servlet with 
tomcat and also with tomcat and apache . Things r going fine .

  May be as u have stated u might had made some mistake in coinfiguration .

Narayanan.
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




AW: Still : Error in HttpSessionFacade - still nobodys really interested in

2000-12-20 Thread Hanusch, Hartwig

Hi Narayanan,

thanks for your interest but that doen't help at all. 
Things allways run on my computer ;)


Cheers Hartwig



> -Ursprüngliche Nachricht-
> Von:  Narayanan Balasubramanian [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Mittwoch, 20. Dezember 2000 10:14
> An:   Hanusch, Hartwig
> Cc:   [EMAIL PROTECTED]
> Betreff:      Re:Still : Error in HttpSessionFacade - still nobodys really
> interested in 
> 
> 
> There is no problem for me as u have stated ..i have tested a servlet with
> 
> tomcat and also with tomcat and apache . Things r going fine .
> 
>   May be as u have stated u might had made some mistake in coinfiguration
> .
> 
> Narayanan.
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.