You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Kelem <s_...@pacbell.net> on 2004/01/28 19:57:39 UTC
"Unknown source" in stack trace
I'm trying to debug someone else's Ant Task code and having the problem of getting "Unknown Source"
in the stack trace.
I've compiled (in ant) with debug="true", debuglevel="lines,vars,source",
and even tried including the source tree in the jar file.
By the way, the code I'm trying to debug is an external ant task, with
the jar file in ant/lib.
Thanks,
Steve Kelem
java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at de.pleumann.antenna.WtkMakePrc.executeWtk(Unknown Source)
at de.pleumann.antenna.WtkMakePrc.execute(Unknown Source)
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.apache.tools.ant.Main.runBuild(Main.java:669)
at org.apache.tools.ant.Main.startAnt(Main.java:220)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: "Unknown source" in stack trace
Posted by Antoine Lévy-Lambert <an...@antbuild.com>.
Steve Kelem wrote:
> I'm trying to debug someone else's Ant Task code and having the
> problem of getting "Unknown Source"
> in the stack trace.
> I've compiled (in ant) with debug="true", debuglevel="lines,vars,source",
> and even tried including the source tree in the jar file.
> By the way, the code I'm trying to debug is an external ant task, with
> the jar file in ant/lib.
>
> Thanks,
> Steve Kelem
>
> java.lang.NullPointerException
> at java.io.File.<init>(File.java:180)
> at de.pleumann.antenna.WtkMakePrc.executeWtk(Unknown Source)
> at de.pleumann.antenna.WtkMakePrc.execute(Unknown Source)
> 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.apache.tools.ant.Main.runBuild(Main.java:669)
> at org.apache.tools.ant.Main.startAnt(Main.java:220)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
>
>
>
>
>
>
This means that the classes of de.pleumann.antenna were compiled
without line number debugging information.
You cannot do anything about it.
Antoine
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: "Unknown source" in stack trace
Posted by Steve Kelem <s_...@pacbell.net>.
Thanks for the suggestion, but it didn't work.
The stack trace for that ant task still shows:
java.lang.NullPointerException
at java.io.File.<init>(File.java:180)
at de.pleumann.antenna.WtkMakePrc.executeWtk(Unknown Source)
at de.pleumann.antenna.WtkMakePrc.execute(Unknown Source)
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.apache.tools.ant.Main.runBuild(Main.java:669)
at org.apache.tools.ant.Main.startAnt(Main.java:220)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:215)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
The task code was compiled with <property
name="build.debuglevel" value="lines,vars,source"/>
Steve
Matt Benson wrote:
>--- Steve Kelem <s_...@pacbell.net> wrote:
>
>
>>I'm trying to debug someone else's Ant Task code and
>>having the problem of getting "Unknown Source"
>>in the stack trace.
>>I've compiled (in ant) with debug="true",
>>debuglevel="lines,vars,source",
>>
>>
>
>Sorry, Steve... I meant to respond to this the other
>day. If you want to try specifying
> -Djava.compiler=NONE as you run Ant itself, I believe
>it's that simple:
>
>ant -Djava.compiler=NONE [other Ant args]
>
>-Matt
>
>__________________________________
>Do you Yahoo!?
>Yahoo! SiteBuilder - Free web site building tool. Try it!
>http://webhosting.yahoo.com/ps/sb/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: "Unknown source" in stack trace
Posted by Matt Benson <gu...@yahoo.com>.
--- Steve Kelem <s_...@pacbell.net> wrote:
> I'm trying to debug someone else's Ant Task code and
> having the problem of getting "Unknown Source"
> in the stack trace.
> I've compiled (in ant) with debug="true",
> debuglevel="lines,vars,source",
Sorry, Steve... I meant to respond to this the other
day. If you want to try specifying
-Djava.compiler=NONE as you run Ant itself, I believe
it's that simple:
ant -Djava.compiler=NONE [other Ant args]
-Matt
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org