Return-Path: Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: (qmail 62189 invoked from network); 30 Apr 2010 22:41:11 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Apr 2010 22:41:11 -0000 Received: (qmail 26343 invoked by uid 500); 30 Apr 2010 22:41:10 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 26295 invoked by uid 500); 30 Apr 2010 22:41:10 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 26287 invoked by uid 99); 30 Apr 2010 22:41:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 22:41:10 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of neilbliss@gmail.com designates 209.85.211.199 as permitted sender) Received: from [209.85.211.199] (HELO mail-yw0-f199.google.com) (209.85.211.199) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Apr 2010 22:41:05 +0000 Received: by ywh37 with SMTP id 37so391259ywh.2 for ; Fri, 30 Apr 2010 15:40:44 -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; bh=ziLhIIC8j73cWpQJdSmXEzh8p76AxkkRtleeKD4TG3o=; b=HCAfIqDJOhbf4O3045/e82EcXHgelNvkXIt7GMD15JdZIKxVusWkxrMv2MS+h6tqjh VXpg3syQHtyvCw7jksJ7FqQTJsiuQrykeDDnIew6bubNTZ0SkjublRDwB687yNk9Ad75 lYMHTEybb0f9jjG/nHiEEYuuwx5V20BY57SjQ= 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; b=gSHX2f0D5Zo28pumZ1067ip4z1WGPHq3SoxHtsH82O5SSklcdaWKpdFaJf31RA9eWL OMT7iXODQfQyx/PEB3a4gDScsaUUPEiQnLSfeqaSuiIq7C2kwC8j33YylnERE0AvbCKl FALURSYpUEY6e2F1kMGMYh5tvmwfbaEmB6o+s= MIME-Version: 1.0 Received: by 10.220.61.139 with SMTP id t11mr516638vch.203.1272667243984; Fri, 30 Apr 2010 15:40:43 -0700 (PDT) Received: by 10.220.92.209 with HTTP; Fri, 30 Apr 2010 15:40:43 -0700 (PDT) In-Reply-To: References: Date: Fri, 30 Apr 2010 15:40:43 -0700 Message-ID: Subject: Re: HADOOP-6704 - getResource() usage ok? From: Neil Bliss To: common-dev@hadoop.apache.org Content-Type: multipart/alternative; boundary=e0cb4e887967feb75204857beedd --e0cb4e887967feb75204857beedd Content-Type: text/plain; charset=ISO-8859-1 Found the problem, I had an overly helpful local CLASSPATH set. On Fri, Apr 30, 2010 at 1:22 PM, Neil Bliss wrote: > Thanks Eli, I'll have a look how the other instances are used, and see if I > can spot the problem. > > - Neil > > > On Fri, Apr 30, 2010 at 1:17 PM, Eli Collins wrote: > >> Hey Neil, >> >> There are other uses of getResource in Hadoop so should be fine. >> Should you be using getClassLoader#getResource() instead of >> Class#getResource()? >> >> Thanks, >> Eli >> >> On Fri, Apr 30, 2010 at 12:46 PM, Neil Bliss wrote: >> > Hey folks, >> > >> > In the unit tests for my HADOOP-6704 patch, I'm using getResource() to >> get >> > the URL of a sample xml file. On my local system this works fine, but >> when >> > I submitted the patch to Hudson, it appears to not find the resource >> file. >> > Is this sort of thing not allowed in the Hudson environment, or am I >> just >> > doing something wrong? >> > >> > I've already fixed up the checkstyle errors that I missed the first time >> > around. Gomen nasai. >> > >> > thanks, >> > >> > Neil >> > >> > > --e0cb4e887967feb75204857beedd--