Re: Http Session Null issue

2009-07-14 Thread Pid

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  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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org








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



Re: Http Session Null issue

2009-07-14 Thread Achal Patel
Thanks for the inputs.

We hv traced this problem to a bug with Tomcat server.
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  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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Regards,
Achal Patel.


Re: Http Session Null issue

2009-07-04 Thread Pid

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-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Http Session Null issue

2009-07-03 Thread Konstantin Kolinko
> 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).




2009/7/3 Achal Patel :
> Its basically below:
>
> HttpSession session = request.getSession();
> Settings settings = (Settings) session.getAttribute(ATTR_NAME);
>
> I debugged it and got to know that session is getting null and again
> invoking the same resource from UI serves fine.
> The same is working fine on Weblogic.
>
> Regards,
> Achal.
>
> On Fri, Jul 3, 2009 at 7:06 PM, Pid  wrote:
>
>> On 3/7/09 14:25, Achal Patel wrote:
>>
>>> Hi,
>>>
>>> I am facing strange issue with Tomcat 6 Jsp deployment.
>>> I have JSP pages deployed which internally performs operations and
>>> generates
>>> XML response which will be parsed using XSL and then finally displayed on
>>> the UI.
>>> Now when I invoke JSP pages from UI, session is getting null between the
>>> requests and this works perfectly fine on other Weblogic/Websphere App
>>> servers.
>>> We do use taglibs in xsl and JSPs.
>>>
>>> JDK version : 1.5.13
>>> Tomcat Ver: 6.0.18
>>>
>>> This error is again random but comes frequently even for the same page 2
>>> times out of 5 clicks.
>>> Any help on this will be useful, thanks.
>>>
>>> Posting the error message here for more info:
>>>
>>> org.apache.jasper.JasperException: java.lang.NullPointerException
>>>
>>>  org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
>>>
>>>  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
>>>
>>>
>>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>>        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> *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
>>
>>
>>
>>>  com.teradata.ui.web.common.HTMLComponent.getSettings(HTMLComponent.java:76)
>>>
>>>  com.teradata.ui.web.common.StyleSheetLink.doInline(StyleSheetLink.java:237)
>>>
>>>  com.teradata.ui.web.common.StyleSheetLink.prepareHTMLString(StyleSheetLink.java:170)
>>>
>>>
>>>  com.teradata.ui.web.common.HTMLComponent.toHTMLString(HTMLComponent.java:91)
>>>
>>>  com.teradata.ui.web.taglib.BodyTagBase.doEndTag(BodyTagBase.java:65)
>>>
>>>  org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspx_meth_td_005fstylesheet_005f0(tableeditor_jsp.java:201)
>>>
>>>
>>>  org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspService(tableeditor_jsp.java:99)
>>>        org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>>
>>>  org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>>
>>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>>        org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>>
>>>        javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>
>>> Regards,
>>> Achal.
>>>
>>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>
>
> --
> Regards,
> Achal Patel.
>

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



Re: Http Session Null issue

2009-07-03 Thread Daniel Henrique Alves Lima
Keep it simple. Try this first, if your problem is the "missing"
attribute from http session. At least this what i would do in your
place:

>   Maybe, you're getting a new session every time you're calling 
> this page
> and "settings" reference is getting null. I *think* this can happen if:
> 
>   - Something is invalidating the session before request.getSession get
> called;
>   - Your http client don't support cookies or is not sending the same
> cookie every time;
>   - URL rewriting is disabled.
> 
> 
>   Look the value returned by request.getRequestedSessionId() or
> session.getId(). If the same user call this page a lot of times, the
> same id should be returned. 
>   The best approach is look this value (session id) right before
> session.setAttribute(ATTR_NAME, settings) and
> session.getAttribute(ATTR_NAME) have been called.
> 

What is happening between set and getAttribute ? Do you have the same
session id before calling each one ?


After that you could try to imagine more complex scenarios (more
unlikely to happen) like: Are you Tomcat running behind a web server
with load balance ? Is the web server proxying http requests correctly
or it is sending each request to a different Tomcat instance/pair ? Are
you accessing Tomcat hostname directly or throw a "logical"/mapped
hostname resolved to distinct places/IPs ?





On Fri, 2009-07-03 at 16:41 -0300, Daniel Henrique Alves Lima wrote:
> Hi, Achal.
> 
> On Sat, 2009-07-04 at 00:47 +0530, Achal Patel wrote:
> > Hi Daniel,
> > 
> > Yes, at Weblogic, request.getSession() is returning a non-null value AND
> > "(Settings) session.getAttribute(ATTR_NAME)" is
> > 
> > > working.
> 
> Ok.
> 
> > 
> > On Tomcat out of 5 requests this is happening for 2 times.
> > 
> > Let me explain the deployment architecture:
> > 1. User invokes JSP page
> > 2. JSP calls homegrown framework which performs operation and generates XML
> > response
> >   2.1 This XML framework also works on sessions and request objects.
> > 3. XSLT transforms XML into HTML and displays on UI
> 
> In this framework is there any kind of distributed engine or
> configuration that can be wrong ? Is it possible that some is running
> over Tomcat and some over Weblogic (like jsp in Tomcat are doing
> redirects to a servlet in Weblogic) ? 
> 
> 
> > 
> > It looks like JSP and Servlets are using different sessions ???
> 
> I don't think so. Try to print/debug session id and you will find out.
> 
> 
> 
> > 
> > 
> > On Fri, Jul 3, 2009 at 9:05 PM, Daniel Henrique Alves Lima <
> > email_danie...@yahoo.com.br> wrote:
> > 
> > > Hi, Achal.
> > >
> > >
> > > On Fri, 2009-07-03 at 19:48 +0530, Achal Patel wrote:
> > > > Its basically below:
> > > >
> > > > HttpSession session = request.getSession();
> > > > Settings settings = (Settings) session.getAttribute(ATTR_NAME);
> > > >
> > > > I debugged it and got to know that session is getting null and
> > again
> > > > invoking the same resource from UI serves fine.
> > > > The same is working fine on Weblogic.
> > >
> > > Am i missing something or you're saying that when session is null
> > > "(Settings) session.getAttribute(ATTR_NAME)" works ?
> > > Are you sure ?
> > >
> > > Or you're saying that, at Weblogic, request.getSession() is
> > returning a
> > > non-null value AND "(Settings) session.getAttribute(ATTR_NAME)" is
> > > working ?
> > >
> > > >
> > >
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-- 
"If there must be trouble, let it be in my day, 
 that my child may have peace."

Thomas Paine


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



Re: Http Session Null issue

2009-07-03 Thread Daniel Henrique Alves Lima

Hi, Achal.

On Sat, 2009-07-04 at 00:47 +0530, Achal Patel wrote:
> Hi Daniel,
> 
> Yes, at Weblogic, request.getSession() is returning a non-null value AND
> "(Settings) session.getAttribute(ATTR_NAME)" is
> 
> > working.

Ok.

> 
> On Tomcat out of 5 requests this is happening for 2 times.
> 
> Let me explain the deployment architecture:
> 1. User invokes JSP page
> 2. JSP calls homegrown framework which performs operation and generates XML
> response
>   2.1 This XML framework also works on sessions and request objects.
> 3. XSLT transforms XML into HTML and displays on UI

In this framework is there any kind of distributed engine or
configuration that can be wrong ? Is it possible that some is running
over Tomcat and some over Weblogic (like jsp in Tomcat are doing
redirects to a servlet in Weblogic) ? 


> 
> It looks like JSP and Servlets are using different sessions ???

I don't think so. Try to print/debug session id and you will find out.



> 
> 
> On Fri, Jul 3, 2009 at 9:05 PM, Daniel Henrique Alves Lima <
> email_danie...@yahoo.com.br> wrote:
> 
> > Hi, Achal.
> >
> >
> > On Fri, 2009-07-03 at 19:48 +0530, Achal Patel wrote:
> > > Its basically below:
> > >
> > > HttpSession session = request.getSession();
> > > Settings settings = (Settings) session.getAttribute(ATTR_NAME);
> > >
> > > I debugged it and got to know that session is getting null and
> again
> > > invoking the same resource from UI serves fine.
> > > The same is working fine on Weblogic.
> >
> > Am i missing something or you're saying that when session is null
> > "(Settings) session.getAttribute(ATTR_NAME)" works ?
> > Are you sure ?
> >
> > Or you're saying that, at Weblogic, request.getSession() is
> returning a
> > non-null value AND "(Settings) session.getAttribute(ATTR_NAME)" is
> > working ?
> >
> > >
> >


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



Re: Http Session Null issue

2009-07-03 Thread Achal Patel
Hi Daniel,

Yes, at Weblogic, request.getSession() is returning a non-null value AND
"(Settings) session.getAttribute(ATTR_NAME)" is

> working.

On Tomcat out of 5 requests this is happening for 2 times.

Let me explain the deployment architecture:
1. User invokes JSP page
2. JSP calls homegrown framework which performs operation and generates XML
response
  2.1 This XML framework also works on sessions and request objects.
3. XSLT transforms XML into HTML and displays on UI

It looks like JSP and Servlets are using different sessions ???

Any pointers would be useful.

Regards,
Achal.


On Fri, Jul 3, 2009 at 9:05 PM, Daniel Henrique Alves Lima <
email_danie...@yahoo.com.br> wrote:

> Hi, Achal.
>
>
> On Fri, 2009-07-03 at 19:48 +0530, Achal Patel wrote:
> > Its basically below:
> >
> > HttpSession session = request.getSession();
> > Settings settings = (Settings) session.getAttribute(ATTR_NAME);
> >
> > I debugged it and got to know that session is getting null and again
> > invoking the same resource from UI serves fine.
> > The same is working fine on Weblogic.
>
> Am i missing something or you're saying that when session is null
> "(Settings) session.getAttribute(ATTR_NAME)" works ?
> Are you sure ?
>
> Or you're saying that, at Weblogic, request.getSession() is returning a
> non-null value AND "(Settings) session.getAttribute(ATTR_NAME)" is
> working ?
>
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Regards,
Achal Patel.


Re: Http Session Null issue

2009-07-03 Thread Pid

On 3/7/09 15:18, Achal Patel wrote:

Its basically below:

HttpSession session = request.getSession();
Settings settings = (Settings) session.getAttribute(ATTR_NAME);

I debugged it and got to know that session is getting null and again
invoking the same resource from UI serves fine.
The same is working fine on Weblogic.


Are you sure? The stack trace seems to say that something in 
Settings.java, at line 102 is null.


How and when is the object initialised?

p



Regards,
Achal.

On Fri, Jul 3, 2009 at 7:06 PM, Pid  wrote:


On 3/7/09 14:25, Achal Patel wrote:


Hi,

I am facing strange issue with Tomcat 6 Jsp deployment.
I have JSP pages deployed which internally performs operations and
generates
XML response which will be parsed using XSL and then finally displayed on
the UI.
Now when I invoke JSP pages from UI, session is getting null between the
requests and this works perfectly fine on other Weblogic/Websphere App
servers.
We do use taglibs in xsl and JSPs.

JDK version : 1.5.13
Tomcat Ver: 6.0.18

This error is again random but comes frequently even for the same page 2
times out of 5 clicks.
Any help on this will be useful, thanks.

Posting the error message here for more info:

org.apache.jasper.JasperException: java.lang.NullPointerException

  
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)

  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)


  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*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




  com.teradata.ui.web.common.HTMLComponent.getSettings(HTMLComponent.java:76)

  com.teradata.ui.web.common.StyleSheetLink.doInline(StyleSheetLink.java:237)

  
com.teradata.ui.web.common.StyleSheetLink.prepareHTMLString(StyleSheetLink.java:170)


  com.teradata.ui.web.common.HTMLComponent.toHTMLString(HTMLComponent.java:91)

  com.teradata.ui.web.taglib.BodyTagBase.doEndTag(BodyTagBase.java:65)

  
org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspx_meth_td_005fstylesheet_005f0(tableeditor_jsp.java:201)


  
org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspService(tableeditor_jsp.java:99)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


  
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)

  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Regards,
Achal.



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








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



Re: Http Session Null issue

2009-07-03 Thread Daniel Henrique Alves Lima
How can the session been null if you're calling request.getSession() ? 

"(...) Returns the current session associated with this request, or if
the request does not have a session, creates one. (...)"

http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpServletRequest.html#getSession()
 


Maybe, you're getting a new session every time you're calling this page
and "settings" reference is getting null. I *think* this can happen if:

- Something is invalidating the session before request.getSession get
called;
- Your http client don't support cookies or is not sending the same
cookie every time;
- URL rewriting is disabled.


Look the value returned by request.getRequestedSessionId() or
session.getId(). If the same user call this page a lot of times, the
same id should be returned. 
The best approach is look this value (session id) right before
session.setAttribute(ATTR_NAME, settings) and
session.getAttribute(ATTR_NAME) have been called.



On Fri, 2009-07-03 at 12:35 -0300, Daniel Henrique Alves Lima wrote:
> Hi, Achal.
> 
> 
> On Fri, 2009-07-03 at 19:48 +0530, Achal Patel wrote:
> > Its basically below:
> > 
> > HttpSession session = request.getSession();
> > Settings settings = (Settings) session.getAttribute(ATTR_NAME);
> > 
> > I debugged it and got to know that session is getting null and again
> > invoking the same resource from UI serves fine.
> > The same is working fine on Weblogic.
> 
> Am i missing something or you're saying that when session is null
> "(Settings) session.getAttribute(ATTR_NAME)" works ?
> Are you sure ? 
> 
> Or you're saying that, at Weblogic, request.getSession() is returning a
> non-null value AND "(Settings) session.getAttribute(ATTR_NAME)" is
> working ?
> 
> > 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-- 
"If there must be trouble, let it be in my day, 
 that my child may have peace."

Thomas Paine


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



Re: Http Session Null issue

2009-07-03 Thread Daniel Henrique Alves Lima
Hi, Achal.


On Fri, 2009-07-03 at 19:48 +0530, Achal Patel wrote:
> Its basically below:
> 
> HttpSession session = request.getSession();
> Settings settings = (Settings) session.getAttribute(ATTR_NAME);
> 
> I debugged it and got to know that session is getting null and again
> invoking the same resource from UI serves fine.
> The same is working fine on Weblogic.

Am i missing something or you're saying that when session is null
"(Settings) session.getAttribute(ATTR_NAME)" works ?
Are you sure ? 

Or you're saying that, at Weblogic, request.getSession() is returning a
non-null value AND "(Settings) session.getAttribute(ATTR_NAME)" is
working ?

> 


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



Re: Http Session Null issue

2009-07-03 Thread Achal Patel
Its basically below:

HttpSession session = request.getSession();
Settings settings = (Settings) session.getAttribute(ATTR_NAME);

I debugged it and got to know that session is getting null and again
invoking the same resource from UI serves fine.
The same is working fine on Weblogic.

Regards,
Achal.

On Fri, Jul 3, 2009 at 7:06 PM, Pid  wrote:

> On 3/7/09 14:25, Achal Patel wrote:
>
>> Hi,
>>
>> I am facing strange issue with Tomcat 6 Jsp deployment.
>> I have JSP pages deployed which internally performs operations and
>> generates
>> XML response which will be parsed using XSL and then finally displayed on
>> the UI.
>> Now when I invoke JSP pages from UI, session is getting null between the
>> requests and this works perfectly fine on other Weblogic/Websphere App
>> servers.
>> We do use taglibs in xsl and JSPs.
>>
>> JDK version : 1.5.13
>> Tomcat Ver: 6.0.18
>>
>> This error is again random but comes frequently even for the same page 2
>> times out of 5 clicks.
>> Any help on this will be useful, thanks.
>>
>> Posting the error message here for more info:
>>
>> org.apache.jasper.JasperException: java.lang.NullPointerException
>>
>>  
>> org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
>>
>>  
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)
>>
>>
>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>> *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
>
>
>
>>  com.teradata.ui.web.common.HTMLComponent.getSettings(HTMLComponent.java:76)
>>
>>  com.teradata.ui.web.common.StyleSheetLink.doInline(StyleSheetLink.java:237)
>>
>>  
>> com.teradata.ui.web.common.StyleSheetLink.prepareHTMLString(StyleSheetLink.java:170)
>>
>>
>>  com.teradata.ui.web.common.HTMLComponent.toHTMLString(HTMLComponent.java:91)
>>
>>  com.teradata.ui.web.taglib.BodyTagBase.doEndTag(BodyTagBase.java:65)
>>
>>  
>> org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspx_meth_td_005fstylesheet_005f0(tableeditor_jsp.java:201)
>>
>>
>>  
>> org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspService(tableeditor_jsp.java:99)
>>org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>>
>>  
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
>>
>>  org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
>>org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
>>
>>javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>
>> Regards,
>> Achal.
>>
>>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


-- 
Regards,
Achal Patel.


Re: Http Session Null issue

2009-07-03 Thread Pid

On 3/7/09 14:25, Achal Patel wrote:

Hi,

I am facing strange issue with Tomcat 6 Jsp deployment.
I have JSP pages deployed which internally performs operations and generates
XML response which will be parsed using XSL and then finally displayed on
the UI.
Now when I invoke JSP pages from UI, session is getting null between the
requests and this works perfectly fine on other Weblogic/Websphere App
servers.
We do use taglibs in xsl and JSPs.

JDK version : 1.5.13
Tomcat Ver: 6.0.18

This error is again random but comes frequently even for the same page 2
times out of 5 clicks.
Any help on this will be useful, thanks.

Posting the error message here for more info:

org.apache.jasper.JasperException: java.lang.NullPointerException

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*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




com.teradata.ui.web.common.HTMLComponent.getSettings(HTMLComponent.java:76)

com.teradata.ui.web.common.StyleSheetLink.doInline(StyleSheetLink.java:237)

com.teradata.ui.web.common.StyleSheetLink.prepareHTMLString(StyleSheetLink.java:170)


com.teradata.ui.web.common.HTMLComponent.toHTMLString(HTMLComponent.java:91)
com.teradata.ui.web.taglib.BodyTagBase.doEndTag(BodyTagBase.java:65)

org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspx_meth_td_005fstylesheet_005f0(tableeditor_jsp.java:201)


org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspService(tableeditor_jsp.java:99)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Regards,
Achal.




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



Http Session Null issue

2009-07-03 Thread Achal Patel
Hi,

I am facing strange issue with Tomcat 6 Jsp deployment.
I have JSP pages deployed which internally performs operations and generates
XML response which will be parsed using XSL and then finally displayed on
the UI.
Now when I invoke JSP pages from UI, session is getting null between the
requests and this works perfectly fine on other Weblogic/Websphere App
servers.
We do use taglibs in xsl and JSPs.

JDK version : 1.5.13
Tomcat Ver: 6.0.18

This error is again random but comes frequently even for the same page 2
times out of 5 clicks.
Any help on this will be useful, thanks.

Posting the error message here for more info:

org.apache.jasper.JasperException: java.lang.NullPointerException

org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

*root cause*

java.lang.NullPointerException
com.teradata.x2.context.Settings.getSettings(Settings.java:102)

com.teradata.x2.context.ServletProcessContext.getSettings(ServletProcessContext.java:38)


com.teradata.ui.web.common.HTMLComponent.getSettings(HTMLComponent.java:76)

com.teradata.ui.web.common.StyleSheetLink.doInline(StyleSheetLink.java:237)

com.teradata.ui.web.common.StyleSheetLink.prepareHTMLString(StyleSheetLink.java:170)


com.teradata.ui.web.common.HTMLComponent.toHTMLString(HTMLComponent.java:91)
com.teradata.ui.web.taglib.BodyTagBase.doEndTag(BodyTagBase.java:65)

org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspx_meth_td_005fstylesheet_005f0(tableeditor_jsp.java:201)


org.apache.jsp.bcm.framework.tableeditor.tableeditor_jsp._jspService(tableeditor_jsp.java:99)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)

javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Regards,
Achal.