tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Http Session Null issue
Date Tue, 14 Jul 2009 17:11:12 GMT
On 14/7/09 16:59, Achal Patel wrote:
> Thanks for the inputs.
>
> We hv traced this problem to a bug with Tomcat server.

Have you filed a bug report?  I'd be curious to see both the bug and 
your solution.  You can file a patch along with the bug.

  https://issues.apache.org/bugzilla/

p


> Basically the tomcat server is sending the response before the
> context/session is set.
> Since it is open source, we modified the code and that change has resolved
> this 500 error.
> The change we hv made is not the best possible solution and we are
> evaluating changes on the codes.
> (Changed jasper.jar JSPServletWrapper.java)
>
> Can you analyze what would be code changes on application side in this case?
>
> On Sat, Jul 4, 2009 at 2:52 PM, Pid<p@pidster.com>  wrote:
>
>> 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@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>
>
>


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


Mime
View raw message