2010/10/6 laredotornado <laredotorn...@gmail.com>:
>
> 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)

The line numbers in your stack trace do not match the Tomcat 6.0.26 sources,

http://svn.apache.org/viewvc/tomcat/tc6.0.x/tags/TOMCAT_6_0_26/java/org/apache/catalina/connector/Request.java?view=markup

What is going on?

Best regards,
Konstantin Kolinko

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

Reply via email to