ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ken Rider" <Ken.Ri...@intelliden.com>
Subject FilterSet NullPointerException with 1.6.1
Date Mon, 03 May 2004 19:26:14 GMT
I have a target that creates a filterset then references that filterset
on a file copy. With Ant 1.5.1 and 1.5.4 the copy works as expected but
with Ant 1.6.1 I get a NullPointerException (see below). Has anyone else
seen this and, if so, been able to resolve the problem?

Ken

     [copy] Copying 1 file to C:\Documents and Settings\ken.rider

BUILD FAILED
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:389)
        at
org.apache.tools.ant.types.FilterSet.getFilterHash(FilterSet.java:191)
        at
org.apache.tools.ant.types.FilterSet.iReplaceTokens(FilterSet.java:344)
        at
org.apache.tools.ant.types.FilterSet.replaceTokens(FilterSet.java:327)
        at
org.apache.tools.ant.types.FilterSetCollection.replaceTokens(FilterSetCo
llection.java:66)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:563)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:315)
        at
org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:608)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:412)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.Main.start(Main.java:147)
        at org.apache.tools.ant.Main.main(Main.java:230)

Total time: 9 seconds
java.lang.NullPointerException
        at java.util.Hashtable.put(Hashtable.java:389)
        at
org.apache.tools.ant.types.FilterSet.getFilterHash(FilterSet.java:191)
        at
org.apache.tools.ant.types.FilterSet.iReplaceTokens(FilterSet.java:344)
        at
org.apache.tools.ant.types.FilterSet.replaceTokens(FilterSet.java:327)
        at
org.apache.tools.ant.types.FilterSetCollection.replaceTokens(FilterSetCo
llection.java:66)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:563)
        at
org.apache.tools.ant.util.FileUtils.copyFile(FileUtils.java:315)
        at
org.apache.tools.ant.taskdefs.Copy.doFileOperations(Copy.java:608)
        at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:412)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:107)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
        at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:301)
        at org.apache.tools.ant.Target.performTasks(Target.java:328)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
        at
org.apache.tools.ant.Project.executeTargets(Project.java:1063)
        at org.apache.tools.ant.Main.runBuild(Main.java:632)
        at org.apache.tools.ant.Main.startAnt(Main.java:183)
        at org.apache.tools.ant.Main.start(Main.java:147)
        at org.apache.tools.ant.Main.main(Main.java:230)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message