Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89369 invoked from network); 3 Jul 2009 15:49:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 15:49:18 -0000 Received: (qmail 61328 invoked by uid 500); 3 Jul 2009 15:49:25 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 61268 invoked by uid 500); 3 Jul 2009 15:49:25 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 61257 invoked by uid 99); 3 Jul 2009 15:49:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 15:49:25 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of p@pidster.com designates 87.106.82.221 as permitted sender) Received: from [87.106.82.221] (HELO s15243851.onlinehome-server.info) (87.106.82.221) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 15:49:14 +0000 Received: (qmail 13054 invoked from network); 3 Jul 2009 16:48:52 +0100 Received-SPF: neutral (s15243851.onlinehome-server.info: 78.86.122.68 is neither permitted nor denied by domain of pidster.com) client-ip=78.86.122.68; envelope-from=p@pidster.com; helo=Phoenix.config; Received: from 78-86-122-68.zone2.bethere.co.uk (HELO Phoenix.config) (78.86.122.68) by s15243851.onlinehome-server.info with SMTP; 3 Jul 2009 16:48:51 +0100 Message-ID: <4A4E2862.1060702@pidster.com> Date: Fri, 03 Jul 2009 16:48:50 +0100 From: Pid Reply-To: p@pidster.com Organization: Pid Inc User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b3pre) Gecko/20090223 Thunderbird/3.0b2 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Http Session Null issue References: <54044a7e0907030625j7df32a87tbb0725a31aefadf8@mail.gmail.com> <4A4E096E.3060006@pidster.com> <54044a7e0907030718u19ece7c1ued1ca5e403d6cedb@mail.gmail.com> In-Reply-To: <54044a7e0907030718u19ece7c1ued1ca5e403d6cedb@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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-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