Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 14322 invoked from network); 6 Oct 2010 21:36:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Oct 2010 21:36:00 -0000 Received: (qmail 66962 invoked by uid 500); 6 Oct 2010 21:35:56 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66792 invoked by uid 500); 6 Oct 2010 21:35:56 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 66782 invoked by uid 99); 6 Oct 2010 21:35:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 21:35:56 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.212.45 as permitted sender) Received: from [209.85.212.45] (HELO mail-vw0-f45.google.com) (209.85.212.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Oct 2010 21:35:49 +0000 Received: by vws19 with SMTP id 19so36000vws.18 for ; Wed, 06 Oct 2010 14:35:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=hMHbhse+fBpLSPXzazkYJWmdfvtxKiV2Oc7aS55aGxA=; b=sTX/v7OnZd6TYbqq/OnlcCXGTmTtqe9FRMiJjFgX694q+W35LaHpN4ImwfeZhqkELk /njufPlKFtfbkULdj/nAAWRyLLp8QfeCsALDWTQbdNGROKWxLbf77h2ZVTr8KalupfHa j/6toKyJXmlTxegPnt/fkmxtnhmgXiGYfoMPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=qUnNQKOqBeiuj6wd8vrgRTVtGTkoXGKXVKwFdIxw/CBBH2zM43YKqLlfqZGYTBQu/h 560tYqqWl70Xe46ukZcsIo1Oe8uM0puVylmy2R0yVli69nVWatj8lgCs9L3AaOBx8vCt zWD9ZgHTxI2zJfuLIntga1RK8R1ZOFm4KK44U= MIME-Version: 1.0 Received: by 10.220.199.70 with SMTP id er6mr940043vcb.95.1286400928690; Wed, 06 Oct 2010 14:35:28 -0700 (PDT) Received: by 10.220.186.7 with HTTP; Wed, 6 Oct 2010 14:35:28 -0700 (PDT) In-Reply-To: <29898530.post@talk.nabble.com> References: <29898530.post@talk.nabble.com> Date: Thu, 7 Oct 2010 01:35:28 +0400 Message-ID: Subject: Re: NullPointerException when Tomcat calls org.apache.catalina.connector.Request.parseParameters From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable 2010/10/6 laredotornado : > > Hi, > > I'm using Tomcat 6.0.26 with Java 1.6. =A0I'm getting a strange > NullPointerException from a Tomcat class. =A0My code is =85 > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0if (request !=3D null && request.getParame= ter(FORM_SUBMIT_SITE_NAME + > "FormSubmit") !=3D null) { > > and the stack trace is below. =A0I have verified I'm not passing a null t= o > "request.getParameter." =A0Another thread I found suggests this is an enc= oding > issue, but all the characters I'm using are UTF-8. =A0Any ideas how to > troubleshoot this further? > > Thanks, - Dave > > > java.lang.NullPointerException > =A0 =A0 =A0 =A0at > org.apache.catalina.connector.Request.parseParameters(Request.java:2426) > =A0 =A0 =A0 =A0at > 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/apa= che/catalina/connector/Request.java?view=3Dmarkup 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