Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 38663 invoked from network); 3 Jul 2009 14:18:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Jul 2009 14:18:56 -0000 Received: (qmail 36680 invoked by uid 500); 3 Jul 2009 14:19:02 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36612 invoked by uid 500); 3 Jul 2009 14:19:02 -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 36601 invoked by uid 99); 3 Jul 2009 14:19:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 14:19:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of patel.achal@gmail.com designates 209.85.210.179 as permitted sender) Received: from [209.85.210.179] (HELO mail-yx0-f179.google.com) (209.85.210.179) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jul 2009 14:18:52 +0000 Received: by yxe9 with SMTP id 9so236667yxe.30 for ; Fri, 03 Jul 2009 07:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=YxRadF2ehdswuMxj36Ldgq7wIGKLkVkixZqEjFGMHp0=; b=RsQ3SitvxwBU8GAi4zqZiK+BoqbSB2uQF3GM8gxjBfh75M7axEj0HUc/klaT4CYqsz ZsCA86eWwnMzWbrNQjM9SZLGwEOKE0tncWt4al2PFJixu1Nby59kyps7lMbR/wEtDvJm taf9CpHcF+0CxYW6tih6ImlDqrpD5hewHhl3k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=lV5Zf18qy5PAuox3g2p6AEOoBnSOHmhuARcFJ3d7fzmvBmr/XM2/srcbURy5GE3SJN FKzf4Hl3J9IaHcfiR9slnbmI+rpfu2jF22Eg/dorGfntv6L9F+mBV4V7xDMviBoQcOUm nE7N+IU8Exf68mzNdJ5eS3sMrUKyoCTAppJ9I= MIME-Version: 1.0 Received: by 10.100.142.19 with SMTP id p19mr2330490and.13.1246630710703; Fri, 03 Jul 2009 07:18:30 -0700 (PDT) In-Reply-To: <4A4E096E.3060006@pidster.com> References: <54044a7e0907030625j7df32a87tbb0725a31aefadf8@mail.gmail.com> <4A4E096E.3060006@pidster.com> Date: Fri, 3 Jul 2009 19:48:30 +0530 Message-ID: <54044a7e0907030718u19ece7c1ued1ca5e403d6cedb@mail.gmail.com> Subject: Re: Http Session Null issue From: Achal Patel To: Tomcat Users List , p@pidster.com Content-Type: multipart/alternative; boundary=0016e644d6eead7bb5046dcdd46b X-Virus-Checked: Checked by ClamAV on apache.org --0016e644d6eead7bb5046dcdd46b Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > -- Regards, Achal Patel. --0016e644d6eead7bb5046dcdd46b--