tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From laredotornado <laredotorn...@gmail.com>
Subject Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters
Date Thu, 07 Oct 2010 18:53:33 GMT

You are correct.  This stack trace came from a server with 6.0.13 installed. 
We also observed this in our environment with 6.0.24.  Right now, it is not
an option to upgrade.  Is there a work-around?  Below is the connector info
from our server.xml file and the request from the Net panel of Firebug.

Thanks, - Dave


Here is our connector info:
    <Connector port="8081" protocol="HTTP/1.1" 
               maxThreads="150" connectionTimeout="20000" 
               redirectPort="8443" />

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8001" protocol="AJP/1.3"
                maxThreads="1500"
                minSpareThreads="250"
                maxSpareThreads="750"
                connectionTimeout="60000"
                emptySessionPath="true" />



Params:
next	save

Response Headers:
Date	Thu, 07 Oct 2010 18:30:35 GMT
Server	Apache/2.2.4 (Unix) mod_jk/1.2.25
Location	http://laughlin-qa.criticalmass.com:8100//meetings/rfp/save.jsp
Vary	User-Agent,Accept-Encoding
Content-Encoding	gzip
Keep-Alive	timeout=10
Connection	Keep-Alive
Transfer-Encoding	chunked
Content-Type	text/html;charset=UTF-8

request headers:
Request Headersview source
Host	laughlin-qa.criticalmass.com:8100
User-Agent	Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US;
rv:1.9.2.2) Gecko/20100316 Firefox/3.6.2
Accept	text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language	en-us,en;q=0.5
Accept-Encoding	gzip,deflate
Accept-Charset	ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive	115
Connection	keep-alive
Referer	http://laughlin-qa.criticalmass.com:8100/meetings/rfp/step2.jsp
Cookie	__utma=63169330.1613937882.1286296658.1286471507.1286476849.5;
__utmz=63169330.1286296658.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none);
__qca=P0-88964422-1286297860748; s_sq=%5B%5BB%5D%5D; s_cc=true;
__utmc=63169330; JSESSIONID=EB602AD147B7DE6FA96E37C51AF3D26C.qa1;
dfa_cookie=rrvisitrrvisitlasvegasqa%2Crrvisitlaughlinqa;
__utmb=63169330.6.10.1286476849

POst parameters:
RFP_PARAM_group_name	asdfads
RFP_PARAM_meeting_name	sdfsfdfds
RFP_PARAM_steps_included_...	
laughlinFormSubmit	true
step	2
task	input

source:
Content-Type: application/x-www-form-urlencoded Content-Length: 143
task=input&step=2&RFP_PARAM_group_name=asdfads&RFP_PARAM_meeting_name=sdfsfdfds&RFP_PARAM_steps_included_in_attachment=&laughlinFormSubmit=true





Konstantin Kolinko wrote:
> 
> 2010/10/6 laredotornado <laredotornado@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/NullPointerException-when-Tomcat-calls-org.apache.catalina.connector.Request.parseParameters-tp29898530p29909313.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