Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 3335 invoked from network); 16 Oct 2006 16:00:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Oct 2006 16:00:52 -0000 Received: (qmail 75887 invoked by uid 500); 16 Oct 2006 16:00:47 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75857 invoked by uid 500); 16 Oct 2006 16:00:47 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75838 invoked by uid 99); 16 Oct 2006 16:00:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Oct 2006 09:00:46 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 16 Oct 2006 09:00:46 -0700 Received: (qmail 25201 invoked by uid 0); 16 Oct 2006 16:00:22 -0000 Received: from 66.28.87.10 by www002.gmx.net with HTTP; Mon, 16 Oct 2006 18:00:23 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Mon, 16 Oct 2006 18:00:22 +0200 From: "Antoine Levy-Lambert" In-Reply-To: <001b01c6f131$20a0f9f0$ba32e782@sinfpc56> Message-ID: <20061016160022.212810@gmx.net> MIME-Version: 1.0 References: <4532D283.5080601@gmx.de> <4533175B.1090707@pramati.com> <45337A4A.60600@apache.org> <453384B8.4060607@pramati.com> <001b01c6f131$20a0f9f0$ba32e782@sinfpc56> Subject: Re: How to resolve a NullPointerException To: "Ant Users List" X-Authenticated: #22961642 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, how do you run this programatically ? one common source of null pointer exceptions in Ant API use is to forget to set a project reference on task objects or datatypes. The null pointer exception happens then as soon as the task or the datatype tries to log something. if you have a NPE when using command line Ant, run ant -verbose (-verbose is a command line argument) this will give you a stack trace. Regards, Antoine -------- Original-Nachricht -------- Datum: Mon, 16 Oct 2006 17:41:07 +0300 Von: "tharanga wijethilake" An: "Ant Users List" Betreff: How to resolve a NullPointerException > Hi all, > I am tring to run this Ant file using a java program. > When I run this using "Ant run" option provided in eclipse it runs with > out any trouble. > > > > > classname="com.ibm.ive.eccomm.bde.ui.tooling.ant.SubmitJarBundle"> > > > > > > > > > > > > > > > > > > > > webapp="/smf"/> > > > > > > > > > but when I try to run prgrammtically it gives a null pointer. Please Could > someone tell me how am i supose to find from where the exception throws. > submit_a_bundle: > > BUILD FAILED > > C:\Documents and Settings\tharanga\My > Documents\IBM\wssitedev51\workspace\AntRunner\build.xml:12: java.lang.NullPointerException > > Total time: 2 seconds > > > It is line 12 but is it the "bundlepath" or is it because of the related > class file for smfbd task is missing. Thank you very much. > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org