Help with you can only locate or create sessions in the context of a request cycle error

2009-10-30 Thread Yasa, Srinivasa R
Hi,
I am getting this error when i try to get the Session using 
getWebRequestCycle().getSession(); or even with Session.get() inside my WebPage.
Also this is happening only when request goes through the Http Serevr and then 
to Oracle Application server which was our production setup. The error message 
is getting displayed in the feedbackpanel of the Wicket WebPage where its 
trying to get teh Session.
In the development environment, i don't have a separate Http Server and all my 
requests directly goes to my Oracle Application server and i don't have this 
issue. Since i don't have access to production logs i don't have any other 
information on this error. But i would appreciate if some one can let me what 
this error means and when can this error is expected.

Thanks a lot in advance for your help.

Srini

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Help with you can only locate or create sessions in the context of a request cycle error

2009-10-30 Thread Pedro Santos
Hi Yasa, can you make sure that getWebRequestCycle().getSession() is called
on the same thread that WicketFilter is responding the request? RequestCycle
use thread locals to keep his reference, if you are working in an multi
thread response, you can get that exception.

On Fri, Oct 30, 2009 at 3:53 PM, Yasa, Srinivasa R 
srinivasa.r.y...@lmco.com wrote:

 Hi,
 I am getting this error when i try to get the Session using
 getWebRequestCycle().getSession(); or even with Session.get() inside my
 WebPage.
 Also this is happening only when request goes through the Http Serevr and
 then to Oracle Application server which was our production setup. The error
 message is getting displayed in the feedbackpanel of the Wicket WebPage
 where its trying to get teh Session.
 In the development environment, i don't have a separate Http Server and all
 my requests directly goes to my Oracle Application server and i don't have
 this issue. Since i don't have access to production logs i don't have any
 other information on this error. But i would appreciate if some one can let
 me what this error means and when can this error is expected.

 Thanks a lot in advance for your help.

 Srini

 -
 To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




-- 
Pedro Henrique Oliveira dos Santos