>Frank Russo <frank.russo <at> FXALL.com> writes:
> 
> It may also be the case when the session times out...
> 
> Frank Russo
> Senior Developer
> FX Alliance, LLC
> 
> > -----Original Message-----
> > From: root [mailto:root <at> scazdl.org] 
> > Sent: Monday, December 12, 2005 7:32 PM
> > To: Tapestry users
> > Subject: Re: Visit becomes unexpectedly NULL
> > 
> > 
> > "getVisit" call... where? In what object? (Page? Engine?). 
> > I'm going to assume that it's a page's "getVisit" call.  I 
> > use 3.0.3 and jvm 1.4.2 (both for test and development) and 
> > don't have any issues with the visit being null, generally.  
> > The only times I've personally seen it are when there's some 
> > sort of session id loss that occurrs (for example: if your 
> > browser is eating the session cookie, and you have 
> > urlrewriting disabled or something odd like that).  I'd check 
> > to see if there are any configuration difference production 
> > vs. development, both wrt to tapestry and wrt to what you're 
> > using to test tapestry first.  Then check your code. :) 
> > 
> > Robert

First to address the problem of the production vs development environment.  
They are both actually behaving the same.

For some unexplained reason when accessing the site locally everything works
fine.  When I access the page across the internet then I run into this session
problem.

I am not using https.

The session is certainly not timing out because I can get this error within 10
seconds of logging in and creating a new session.

So to resummarize my problem into something concise:

I have a login page.
I have a main page with a form, some direct links, and dynamic content based on
the visit object.

The login page has a form that takes the username and password.  Checks that the
combination exists in the DB and then creates a Visit object by calling
getVisit() from the page's java class.  Then it creates a User domain object and
stores it in the Visit (both Visit and User are serializable and have ids).

Once the user logs in they are taken to the main page.  This main page displays
some content based on the visit object.  I have pageBeginRender and EndRender
listeners that check to see if the Visit is null.

I submit a form and the Begin and End render methods report that Visit is 
allright.

Then the page reloads and it goes through the page Validation.  At this point
the Visit is NULL.

So somehow between endRender and pageValidate the Visit (or session) is being 
lost.

I am stumped.

Help is very much appreciated!




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to