Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 62324 invoked from network); 9 Nov 2004 10:18:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Nov 2004 10:18:29 -0000 Received: (qmail 19257 invoked by uid 500); 9 Nov 2004 10:18:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 19113 invoked by uid 500); 9 Nov 2004 10:18:17 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 19098 invoked by uid 99); 9 Nov 2004 10:18:17 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.94.219.177] (HELO corvil.com) (213.94.219.177) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 09 Nov 2004 02:18:16 -0800 Received: from [172.18.1.171] (angel.local.corvil.com [172.18.1.171]) by corvil.com (8.12.9/8.12.5) with ESMTP id iA9AIAwS046856 for ; Tue, 9 Nov 2004 10:18:11 GMT (envelope-from peterreilly@apache.org) Message-ID: <41909963.6030902@apache.org> Date: Tue, 09 Nov 2004 10:18:11 +0000 From: Peter Reilly User-Agent: Mozilla Thunderbird 0.9 (X11/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Custom Tasks/Types in 1.6.2 References: <200411081917.CEU18937@ms5.netsolmail.com> In-Reply-To: <200411081917.CEU18937@ms5.netsolmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N It looks like the namespace has not been set for the unknownelement. Can you provide a zip or tar file containing a build.xml, and java code for the task to show the problem. Peter Ben Edwards wrote: >Specifically, I provide the following taskdef: > > name="filelister" > classname="antTest.FileListerTask" >/> > >And then use it: > > > > > >And I get a NullPointerException when using Ant 1.6.2, but >things work fine when using 1.6.0. I'm running the program >from Eclipse 3.0. The antTest.FileListerTask is in the >project's classpath. > >Stack trace follows... > > at org.apache.tools.ant.Task.perform(Task.java:373) > at org.apache.tools.ant.Target.execute >(Target.java:341) > at org.apache.tools.ant.Target.performTasks >(Target.java:369) > at org.apache.tools.ant.Project.executeTarget >(Project.java:1214) >... >Caused by: java.lang.NullPointerException > at >org.apache.tools.ant.IntrospectionHelper.supportsNestedElemen >t(IntrospectionHelper.java:767) > at org.apache.tools.ant.UnknownElement.handleChild >(UnknownElement.java:539) > at org.apache.tools.ant.UnknownElement.handleChildren >(UnknownElement.java:326) > at org.apache.tools.ant.UnknownElement.configure >(UnknownElement.java:182) > at org.apache.tools.ant.UnknownElement.maybeConfigure >(UnknownElement.java:158) > at org.apache.tools.ant.Task.perform(Task.java:363) > ... 5 more > >Thanks... > > > >---- Original message ---- > > >>Date: Mon, 8 Nov 2004 14:10:34 -0500 >>From: Ben Edwards >>Subject: Custom Tasks/Types in 1.6.2 >>To: user@ant.apache.org >> >> >>I'm trying to run Ant from within Java. I've used code >>similar to that in org.apache.tools.ant.Main and things >>worked fine in 1.6.0, but then break in 1.6.2. >> >>I think it has something to do with class-loading/namespace >>stuff, but I can't find any good documentation or anyone >>who's encountered a similar problem. >> >>Can anyone point me to good documentation on class-loading >>and namespace changes in 1.6.2? >> >>------------------------------------------------------------ >> >> >--------- > > >>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >>For additional commands, e-mail: user-help@ant.apache.org >> >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org