You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2009/07/10 07:48:10 UTC

DO NOT REPLY [Bug 47505] New: Http Session Null issue

https://issues.apache.org/bugzilla/show_bug.cgi?id=47505

           Summary: Http Session Null issue
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: gkiran1980@gmail.com


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)

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505


Konstantin Kolinko <kn...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #3 from Konstantin Kolinko <kn...@gmail.com>  2009-07-10 00:18:07 PST ---
Already asked AND answered on users@
http://markmail.org/message/pv3qdg2xjhtqok3p

You absolutely cannot access an (Http)ServletRequest object instance once the
request processing has been completed. That is not allowed.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505





--- Comment #2 from gkiran1980@gmail.com  2009-07-09 23:05:39 PST ---
Hi,

The problem is response object is serving to the browser before creating
context/session object.
I made a change in JSPServletWrapper.java file at line#374 to solve this
problem for temporarily.I know This is not permanent solution,since this a show
stopper for me I made fix like that.

Modified JSPServletWrapper.java file I am attaching to this issue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505





--- Comment #5 from gkiran1980@gmail.com  2009-07-10 02:23:02 PST ---
Then why it is working fine in weblogic.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505





--- Comment #6 from Mark Thomas <ma...@apache.org>  2009-07-10 02:51:53 PST ---
You got lucky.

If you do something outside of the specs and it happens to work with one
container, there is no guarantee it will work with any other container.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505





--- Comment #1 from gkiran1980@gmail.com  2009-07-09 23:04:00 PST ---
Created an attachment (id=23954)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=23954)
JSPServletWrapper.java file

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


DO NOT REPLY [Bug 47505] Http Session Null issue

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=47505





--- Comment #4 from gkiran1980@gmail.com  2009-07-10 02:22:21 PST ---
Then why it is working fine weblogic.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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