Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C9BCC4565 for ; Tue, 17 May 2011 10:41:42 +0000 (UTC) Received: (qmail 36649 invoked by uid 500); 17 May 2011 10:41:40 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 36397 invoked by uid 500); 17 May 2011 10:41:40 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 36389 invoked by uid 99); 17 May 2011 10:41:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 10:41:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 10:41:33 +0000 Received: by pzk10 with SMTP id 10so237028pzk.35 for ; Tue, 17 May 2011 03:41:13 -0700 (PDT) Received: by 10.143.21.32 with SMTP id y32mr314709wfi.263.1305628873168; Tue, 17 May 2011 03:41:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.177.14 with HTTP; Tue, 17 May 2011 03:40:53 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Tue, 17 May 2011 16:10:53 +0530 Message-ID: Subject: Re: Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException To: common-user@hadoop.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hey L=E1=BA=A1c Trung, I do not see a configuration instance used in your code; but you're using the Configured class. Do you instantiate CopyFiles using Hadoop's ReflectionUtils utility class? Unless that's done, the getConf() would be returning a null causing the issue probably. On Sat, May 14, 2011 at 8:07 PM, L=E1=BA=A1c Trung = wrote: > Hello everybody ! > > > > This exception was thrown when I tried to copy a file from local file to > HDFS. --=20 Harsh J