« Return to Thread: Http Session Null issue

Re: Http Session Null issue

by Pid-2 :: Rate this Message:

Reply to Author | View in Thread

On 4/7/09 00:22, Konstantin Kolinko wrote:
>> HttpSession session = request.getSession();
>
> Is the request a legit one (that is, the one that is being served by
> Tomcat now)?
>
> Requests are recycled immediately after their processing is done,
> and it can result in null being returned by that method (though throwing
> an IllegalStateException would be better).

(See partial stacktrace below.)

The Settings object looks like it is the source of the
NullPointerException and it looks like it is being statically initialised.

I don't know what that object is, so I asked for more info - the OP is
yet to respond, unless I missed that message?

How it is being initialised, it seems to me, is the source of the
problem.  Does the initialisation depend on an HttpSession object or on
some other parameters?

p






>>>> *root cause*
>>>>
>>>> java.lang.NullPointerException
>>>>         com.teradata.x2.context.Settings.getSettings(Settings.java:102)
>>>>
>>>>   com.teradata.x2.context.ServletProcessContext.getSettings(ServletProcessContext.java:38)
>>>>
>>> It's probably not that random.
>>>
>>> What is at Settings.java, line 102?
>>>
>>> p

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: Http Session Null issue