From dev-return-82747-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Wed May 28 17:19:59 2008 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 30328 invoked from network); 28 May 2008 17:19:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 May 2008 17:19:59 -0000 Received: (qmail 32022 invoked by uid 500); 28 May 2008 17:20:00 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 31965 invoked by uid 500); 28 May 2008 17:20:00 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 31954 invoked by uid 99); 28 May 2008 17:20:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 10:20:00 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 May 2008 17:19:12 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1K1PJB-0003l0-8I for dev@ant.apache.org; Wed, 28 May 2008 10:19:29 -0700 Message-ID: <17517725.post@talk.nabble.com> Date: Wed, 28 May 2008 10:19:29 -0700 (PDT) From: tdakanalisw To: dev@ant.apache.org Subject: NullPointerException in PropertyHelper.setProperty MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tdakanalis@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I don't know if I am in the right forum. I have the following problem. I have create a Web Service which transforms a file from html to xml. When I call that WS I get the following error: java.lang.NullPointerException at java.util.Hashtable.put(Unknown Source) at org.apache.tools.ant.PropertyHelper.setProperty(PropertyHelper.java:330) at org.apache.tools.ant.Project.setPropertyInternal(Project.java:568) at org.apache.tools.ant.Project.setSystemProperties(Project.java:913) at org.apache.tools.ant.Project.initProperties(Project.java:307) at org.apache.tools.ant.Project.init(Project.java:295) That error occurs when the the following piece of code is executed: ProjectHelper helper = ProjectHelper.getProjectHelper(); p.addReference("ant.projectHelper", helper); p.fireBuildStarted(); --->here is the error p.init(); helper.parse(p, buildFile); p.executeTarget(p.getDefaultTarget()); p.fireBuildFinished(null); Could you help me to solve that problem?? Thanks in advance! -- View this message in context: http://www.nabble.com/NullPointerException-in-PropertyHelper.setProperty-tp17517725p17517725.html Sent from the Ant - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org