Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E1656A43 for ; Fri, 8 Jul 2011 12:01:07 +0000 (UTC) Received: (qmail 11351 invoked by uid 500); 8 Jul 2011 12:01:03 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 11273 invoked by uid 500); 8 Jul 2011 12:01:02 -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 11261 invoked by uid 99); 8 Jul 2011 12:01:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 12:01:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.25.134.81] (HELO mailout03.t-online.de) (194.25.134.81) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Jul 2011 12:00:52 +0000 Received: from fwd08.aul.t-online.de (fwd08.aul.t-online.de ) by mailout03.t-online.de with smtp id 1Qf9jU-0002iE-11; Fri, 08 Jul 2011 14:00:32 +0200 Received: from Preissa (SfW69TZUQhKY-iO-Z-L94IufDaiifLvdMGJRmrg7yl4bIuLbqpVSnT7dkLrKrHXZRV@[217.95.124.12]) by fwd08.t-online.de with esmtp id 1Qf9jO-0zLpXE0; Fri, 8 Jul 2011 14:00:26 +0200 From: "eurotrans-Verlag" To: "'Tomcat Users List'" References: <004b01cc3c3d$43795b00$ca6c1100$@preisser@t-online.de> <4E16053C.4000000@christopherschultz.net> <000301cc3ce0$6d9c4340$48d4c9c0$@preisser@t-online.de> <4E167EC9.9070007@christopherschultz.net> In-Reply-To: <4E167EC9.9070007@christopherschultz.net> Subject: RE: NPE at StandardWrapperValve.invoke() in Tomcat 7.0.16 Date: Fri, 8 Jul 2011 14:00:19 +0200 Message-ID: <002501cc3d66$9bfc3f20$d3f4bd60$@preisser@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Acw9InGK3KZzmXqQQCmj4fHgDWobdAAQkllw Content-Language: de X-ID: SfW69TZUQhKY-iO-Z-L94IufDaiifLvdMGJRmrg7yl4bIuLbqpVSnT7dkLrKrHXZRV X-TOI-MSGID: 576c8512-aea9-4faa-bc65-53ff079ff847 X-Virus-Checked: Checked by ClamAV on apache.org Hi Christopher, >=20 > My experience with the Sun/Oracle compiler is that lines 288 and 289 > will never be indicated in a stack trace: the line number of the start > of the statement is considered the line number for the entire > statement. Well, I made a small test program with this code: String str =3D null; System.out.println( "blah" + str.toLowerCase() ); (note that the str.toLowerCase() which will throw a NPE is two lines = below the System.out.println() call). After compiling and running it with the Oracle Java 1.6.0_26, the line = number printed was the line with the "str.toLowerCase()", not the = "System.out.println". So I assume the same is true for the compiled = Tomcat, thus I supposed that only container or the logger could be = null). >=20 > Problem solved? >=20 Well, I don't know what the original problem was, so I don't know if it = is solved. ;) My concern at the moment is not the original exception that occurred, = but the NPE that suppressed that exception, because if it happens again, = I will not able to see what was the original exception. As Pid said, it could have something to do with the old context which = was still waiting for a request to finish, and as I stated in the other = message, I could reproduce a NPE, but in StandardContextValve.invoke() = (there "context" was null). But NPEs thrown are never good, are they? Regards, Konstantin Prei=C3=9Fer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org