tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
Subject NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters
Date Wed, 06 Oct 2010 16:39:36 GMT

Hi,

I'm using Tomcat 6.0.26 with Java 1.6.  I'm getting a strange
NullPointerException from a Tomcat class.  My code is …

		if (request != null && request.getParameter(FORM_SUBMIT_SITE_NAME +
"FormSubmit") != null) {

and the stack trace is below.  I have verified I'm not passing a null to
"request.getParameter."  Another thread I found suggests this is an encoding
issue, but all the characters I'm using are UTF-8.  Any ideas how to
troubleshoot this further?  

Thanks, - Dave


java.lang.NullPointerException
        at
org.apache.catalina.connector.Request.parseParameters(Request.java:2426)
        at
org.apache.catalina.connector.Request.getParameter(Request.java:1040)
        at
org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:355)       
at
javax.servlet.ServletRequestWrapper.getParameter(ServletRequestWrapper.java:158)
        at
com.myco.database.entities.JspAppInterface.isFormSubmitted(JspAppInterface.java:289)
        at
org.apache.jsp.meetings.rfp.save_jsp._jspService(save_jsp.java:171)       
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
        at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)       
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)       
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
com.myco.filter.RecordPageFilter.doFilter(RecordPageFilter.java:35)       
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
        at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
      
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      
at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
        at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:110)
        at
org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
        at
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
        at
org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:95)
        at
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)


-- 
View this message in context: http://old.nabble.com/NullPointerException-when-Tomcat-calls-org.apache.catalina.connector.Request.parseParameters-tp29898530p29898530.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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


Mime
View raw message