ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Jackson" <thomas.jack...@qrowireless.net>
Subject Re: NullPointerException running Ant
Date Sat, 10 Jan 2004 15:21:13 GMT
Thanks Darin......it runs fine from the Command Line, I only get the
exception in Eclipse.  Do you happen to know if it has been entered into the
ant bug database?  I will check later today, but thought you might know
offhand.

Thanks for the information.
Thomas

----- Original Message ----- 
From: "Darin Swanson" <Darin_Swanson@us.ibm.com>
To: <user@ant.apache.org>
Sent: Friday, January 09, 2004 7:31 PM
Subject: Re: NullPointerException running Ant


> Yes but I have not had the time to look into it fully but this looks like
> it is an Ant bug.
> XDoclet has a similar problem:
>
http://opensource.atlassian.com/projects/xdoclet/secure/ViewIssue.jspa?id=11014
>
> Locator.class.getClassLoader() can return null (getClassLoader is spec'd
> that null can be returned for a bootstrap class loader) which will result
> in the NullPointerException you are experiencing.
>
> Darins
>
>
>
>
>
> "Thomas Jackson" <thomas.jackson@qrowireless.net>
> 01/09/04 04:12 PM
> Please respond to "Ant Users List"
>
>
>         To:     <user@ant.apache.org>
>         cc:
>         Subject:        NullPointerException running Ant
>
>
>
> Hi all,
>
> I am receiveing the following stack trace when I am running Ant in
> Eclipse.
> Has anyone seen this before?
>
> Any help is appreciated!
>
> Thanks
> Thomas Jackson
>
> java.lang.NullPointerException
>  at
> org.apache.tools.ant.launch.Locator.getResourceSource(Locator.java:108)
>  at
>
org.apache.tools.ant.util.LoaderUtils.getResourceSource(LoaderUtils.java:147
> )
>  at
>
org.apache.tools.ant.taskdefs.optional.ANTLR.addClasspathEntry(ANTLR.java:28
> 9)
>  at org.apache.tools.ant.taskdefs.optional.ANTLR.init(ANTLR.java:262)
>  at
>
org.apache.tools.ant.ComponentHelper.createComponent(ComponentHelper.java:22
> 4)
>  at
> org.apache.tools.ant.UnknownElement.makeObject(UnknownElement.java:419)
>  at
>
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:189)
>  at org.apache.tools.ant.Task.perform(Task.java:400)
>  at org.apache.tools.ant.Target.execute(Target.java:338)
>  at org.apache.tools.ant.Target.performTasks(Target.java:365)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:420)
>  at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>  at org.apache.tools.ant.Task.perform(Task.java:401)
>  at org.apache.tools.ant.Target.execute(Target.java:338)
>  at org.apache.tools.ant.Target.performTasks(Target.java:365)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:420)
>  at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>  at org.apache.tools.ant.Task.perform(Task.java:401)
>  at org.apache.tools.ant.Target.execute(Target.java:338)
>  at org.apache.tools.ant.Target.performTasks(Target.java:365)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>  at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:420)
>  at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:144)
>  at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:306)
>  at org.apache.tools.ant.Task.perform(Task.java:401)
>  at org.apache.tools.ant.Target.execute(Target.java:338)
>  at org.apache.tools.ant.Target.performTasks(Target.java:365)
>  at org.apache.tools.ant.Project.executeTarget(Project.java:1237)
>  at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
>  at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunn
> er.java:379)
>  at
>
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRun
> ner.java:166)
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message