tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22040] New: - NullPointerException when invoking getSession in Filter
Date Fri, 01 Aug 2003 01:28:16 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22040>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22040

NullPointerException when invoking getSession in Filter

           Summary: NullPointerException when invoking getSession in Filter
           Product: Tomcat 4
           Version: 4.1.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Servlet & JSP API
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: satish_misc@yahoo.com


I am getting a NullPointerException when invoking:
           request.getSession(false)
in a Filter

I get the exception only when getting session AFTER doFilter(), but not when
called before doFilter. Here is the exception:

18:04:36,906 ERROR [STDERR]     at
org.apache.coyote.tomcat4.CoyoteRequestFacade.getSession(CoyoteRequestFacade.java:365)
18:04:36,906 ERROR [STDERR]     at
com.xxx.cp.filter.xxxFilter.postCheckSession(xxxFilter.java:237)
18:04:36,906 ERROR [STDERR]     at
com.xxx.cp.filter.xxxFilter.doFilter(xxxFilter.java:161)
18:04:36,907 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
18:04:36,907 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
18:04:36,907 ERROR [STDERR]     at
com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(SignOnFilter.java:151)
18:04:36,921 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
18:04:36,921 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
18:04:36,922 ERROR [STDERR]     at
com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(EncodingFilter.java:77)
18:04:36,922 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
18:04:36,922 ERROR [STDERR]     at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
18:04:36,923 ERROR [STDERR]     at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
18:04:36,923 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
18:04:36,923 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
18:04:36,924 ERROR [STDERR]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
18:04:36,924 ERROR [STDERR]     at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
18:04:36,924 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
18:04:36,924 ERROR [STDERR]     at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
18:04:36,925 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
18:04:36,925 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
18:04:36,925 ERROR [STDERR]     at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
18:04:36,926 ERROR [STDERR]     at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
18:04:36,926 ERROR [STDERR]     at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
18:04:36,926 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
18:04:36,927 ERROR [STDERR]     at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
18:04:36,927 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
18:04:36,927 ERROR [STDERR]     at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
18:04:36,928 ERROR [STDERR]     at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
18:04:36,928 ERROR [STDERR]     at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:509)

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


Mime
View raw message