Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 53121 invoked from network); 2 Mar 2011 15:50:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Mar 2011 15:50:13 -0000 Received: (qmail 4712 invoked by uid 500); 2 Mar 2011 15:50:13 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 4103 invoked by uid 500); 2 Mar 2011 15:50:11 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 4094 invoked by uid 99); 2 Mar 2011 15:50:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Mar 2011 15:50:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.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, 02 Mar 2011 15:50:01 +0000 Received: by vws19 with SMTP id 19so53786vws.18 for ; Wed, 02 Mar 2011 07:49:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=b+JkzlkX9OL6ytK99bAV5Rq9qeFHOgry+k+YSC5MfGU=; b=gPDp/drWM+kSkxEIaQkfLOjF/L1HSbyRKGu3cyZca6PJnLR8EnegKewnWF8FE+1MP4 eB4K/SZcGLGNGqspkGQHIU/44XmKVtEovlyj9AoUJo+zgwsu5qV5aHETrVosiOSknMis SVotWTVqD/t1ilL5TsLh28xfGPpsyU9MmyZmc= 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=Dxap2yTcy3C0Y8fgR0RCw1p/VD6+p84tnNa1sPLQcm8dzwhH1yEpsSSl/ljBGuQRwi 0kanJViAxmJZ60Z4MC665X6u1vD4PnjNDDH3q5N8CtsU7TE8VMHQytrEkYT6mvbmhtW0 AYEdl2sNEOhG8cwLfhNjWVUtVOuyNnB42iClA= MIME-Version: 1.0 Received: by 10.52.68.229 with SMTP id z5mr8064772vdt.271.1299080943133; Wed, 02 Mar 2011 07:49:03 -0800 (PST) Received: by 10.52.166.38 with HTTP; Wed, 2 Mar 2011 07:49:03 -0800 (PST) In-Reply-To: <20110302132337.8EFDB23889B2@eris.apache.org> References: <20110302132337.8EFDB23889B2@eris.apache.org> Date: Wed, 2 Mar 2011 18:49:03 +0300 Message-ID: Subject: Re: svn commit: r1076212 - in /tomcat/trunk: java/org/apache/naming/resources/DirContextURLConnection.java webapps/docs/changelog.xml From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org 2011/3/2 : > Author: markt > Date: Wed Mar =A02 13:23:37 2011 > New Revision: 1076212 > > URL: http://svn.apache.org/viewvc?rev=3D1076212&view=3Drev > Log: > Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=3D27988 > Improve reporting of missing files > > Modified: > =A0 =A0tomcat/trunk/java/org/apache/naming/resources/DirContextURLConnect= ion.java > =A0 =A0tomcat/trunk/webapps/docs/changelog.xml > > > - =A0 =A0 =A0 =A0throw new FileNotFoundException(); > + =A0 =A0 =A0 =A0throw new FileNotFoundException( > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0getURL() =3D=3D null ? "null" : getURL()= .toString()); There is simpler code that does the same as the above line: String.valueOf(getURL()) > @@ -378,7 +379,8 @@ public class DirContextURLConnection > =A0 =A0 =A0 =A0 =A0 =A0 connect(); > > =A0 =A0 =A0 =A0 if (resource =3D=3D null) { > - =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException(); > + =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException( > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0getURL() =3D=3D null ? "null" : = getURL().toString()); > =A0 =A0 =A0 =A0 } > > =A0 =A0 =A0 =A0 // Reopen resource > @@ -418,7 +420,8 @@ public class DirContextURLConnection > =A0 =A0 =A0 =A0 } > > =A0 =A0 =A0 =A0 if ((resource =3D=3D null) && (collection =3D=3D null)) { > - =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException(); > + =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException( > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0getURL() =3D=3D null ? "null" : = getURL().toString()); > =A0 =A0 =A0 =A0 } > > =A0 =A0 =A0 =A0 Vector result =3D new Vector(); > @@ -446,7 +449,8 @@ public class DirContextURLConnection > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 } > =A0 =A0 =A0 =A0 =A0 =A0 } catch (NamingException e) { > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 // Unexpected exception > - =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException(); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0throw new FileNotFoundException( > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0getURL() =3D=3D null ? "= null" : getURL().toString()); > =A0 =A0 =A0 =A0 =A0 =A0 } > =A0 =A0 =A0 =A0 } > Best regards, --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org