ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xavier Hanin" <xavier.ha...@gmail.com>
Subject Re: NullPointerException when running ivy report on Linux
Date Tue, 30 Sep 2008 06:49:08 GMT
On Tue, Sep 30, 2008 at 2:06 AM, nyc_ivy_user <nyc_ivy_user@yahoo.com>wrote:

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

Which version of Ivy are you using?

Xavier


>
>
> 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/ivyOverriding 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)
>
>
> --
> View this message in context:
> http://www.nabble.com/NullPointerException-when-running-ivy-report-on-Linux-tp19734067p19734067.html
> Sent from the ivy-user mailing list archive at Nabble.com.
>
>


-- 
Xavier Hanin - Independent Java Consultant
BordeauxJUG co leader - http://www.bordeauxjug.org/
Blogger - http://xhab.blogspot.com/
Apache Ivy Creator - http://ant.apache.org/ivy/

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