ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-786) NPE in Ant ivy:settings call when multiple Ant targets are called
Date Thu, 27 Mar 2008 13:03:24 GMT

    [ https://issues.apache.org/jira/browse/IVY-786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582637#action_12582637
] 

Xavier Hanin commented on IVY-786:
----------------------------------

After some investigation, it seems it's a pure Ant bug. Try this build file:
{noformat}
<?xml version="1.0"?>
<project name="AntNPE" default="init">
  <target name="init">
    <echo id="test">test</echo>
  </target>

  <target name="clean" depends="init"/>
</project>
{noformat}
run "ant init clean" and you'll get the same NPE. Could you report this bug in Ant bugzilla?

> NPE in Ant ivy:settings call when multiple Ant targets are called
> -----------------------------------------------------------------
>
>                 Key: IVY-786
>                 URL: https://issues.apache.org/jira/browse/IVY-786
>             Project: Ivy
>          Issue Type: Bug
>          Components: Ant
>    Affects Versions: 2.0.0-beta-2
>         Environment: Ant 1.7.0, IVY 2.0-Beta2, IVY 2.0 Dev Source as of March 27, 2008
-- all failed.
>            Reporter: Robert Buck
>            Priority: Critical
>         Attachments: build.xml, ivysettings.xml
>
>
> Put these files into the ivy directory and call "ant clean dist", and you will always
get an NPE. With no ivy:settings call, all clear. Changing the ivy:settings id or override
values does not help either.
> BUILD FAILED
> D:\dev\rbuck\sandboxes\smq-msgbus-dev\releng\vendor\ivy\build.xml:9:java.lang.NullPointerException
>         at org.apache.tools.ant.Task.perform(Task.java:357)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
> Caused by: java.lang.NullPointerException
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:381)
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
>         at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
>         at org.apache.tools.ant.Task.perform(Task.java:347)
>         ... 10 more
> --- Nested Exception ---
> java.lang.NullPointerException
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:381)
>         at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfigurable.java:349)
>         at org.apache.tools.ant.Task.maybeConfigure(Task.java:202)
>         at org.apache.tools.ant.Task.perform(Task.java:347)
>         at org.apache.tools.ant.Target.execute(Target.java:357)
>         at org.apache.tools.ant.Target.performTasks(Target.java:385)
>         at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>         at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>         at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>         at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>         at org.apache.tools.ant.Main.runBuild(Main.java:698)
>         at org.apache.tools.ant.Main.startAnt(Main.java:199)
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>  
> Total time: 0 seconds

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message