ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nyc Ivy <nyc_ivy_u...@yahoo.com>
Subject NullPointerException when running ivy report on Linux
Date Mon, 29 Sep 2008 23:50:57 GMT
Hi,

Can anyone assist with the error below?
It only occurs on Linux. Windows is fine.

My ant task has is as follows:

<target name="_ivy-report" depends="init-ivy">
  <ivy:report todir="${build.dir}/reports/ivy"/>
</target>

TIA
_ivy-report:
    [mkdir] Created dir: /home/qabuild/dev/build/reports/ivy
Overriding previous definition of property "ivy.version"
 
BUILD FAILED
/home/qabuild/dev/external/std-build/_QISAIivyAntTasks.xml:163: java.lang.NullPointerException
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:115)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        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.ivy.util.FileUtil.copy(FileUtil.java:190)
        at org.apache.ivy.util.FileUtil.copy(FileUtil.java:147)
        at org.apache.ivy.ant.IvyReport.getReportStylePath(IvyReport.java:275)
        at org.apache.ivy.ant.IvyReport.genreport(IvyReport.java:248)
        at org.apache.ivy.ant.IvyReport.doExecute(IvyReport.java:211)
        at org.apache.ivy..ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        ... 11 more
--- Nested Exception ---
java.lang.NullPointerException
        at org.apache.ivy.util.FileUtil.copy(FileUtil.java:190)
        at org.apache.ivy.util.FileUtil.copy(FileUtil.java:147)
        at org.apache.ivy.ant.IvyReport.getReportStylePath(IvyReport.java:275)
        at org.apache.ivy.ant.IvyReport.genreport(IvyReport.java:248)
        at org.apache.ivy.ant.IvyReport.doExecute(IvyReport.java:211)
        at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:277)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        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)


      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message