You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Matt Benson <gu...@yahoo.com> on 2007/02/01 16:29:56 UTC

Re: Dependset NullPointerException

--- Oliver Robinson <ol...@teamwpc.co.uk> wrote:

> Thanks Matt, that manual build fixes the problem. 
> What is the general process/timescale that this
> might end up in a stable build?  I currently have
> ant in production and am a bit wary of using a dev
> build for this...
> Oliver

Oliver:  I would expect to see Ant 1.7.1 in the next
month or two.  I realize this may not be the answer
you're looking for.  :|

-Matt


> 
> Matt Benson wrote:
> > Please see Martijn's build linked at
> >
>
http://issues.apache.org/bugzilla/show_bug.cgi?id=41284
> > 
> > -Matt
> > 
> > --- Oliver Robinson <ol...@teamwpc.co.uk> wrote:
> > 
> >> I tried the latest nightly build:
> >> apache-ant-20070123 which threw the same error. 
> >> Anything else that might help diagnose to the
> >> problem?
> >>
> >> Thanks,
> >>
> >> Oliver
> >>
> >> Matt Benson wrote:
> >>> Please check this against a (very) recent build
> >> from
> >>> Ant HEAD.  I believe Martijn Kruithof recently
> >> removed
> >>> the NPE from dependset.
> >>>
> >>> Thanks,
> >>> Matt
> >>>
> >>> --- Oliver Robinson <ol...@teamwpc.co.uk> wrote:
> >>>
> >>>> I'm having a spot of bother with a dependset -
> it
> >> is
> >>>> throwing a NPE.  I'm thought it used work on
> ant
> >>>> 1.6.5, but having just re-tried it, it seems to
> >> fail
> >>>> in the same way.  I'm not having much luck
> >> boiling
> >>>> down an exact test case, although it seems to
> be
> >>>> something to do with either number of files or
> >> path
> >>>> lengths - reducing the path length of dir5 did
> >> not
> >>>> to produce the error.
> >>>>
> >>>> Platform: windows
> >>>> JRE: 1.5.0_06
> >>>> Ant: 1.7.0
> >>>>
> >>>> The ant script is similar to the one below,
> with
> >> the
> >>>> directories being fairly long.  There are a
> fair
> >>>> number of subdirectories and files, but not
> vast
> >> -
> >>>> it works fine with other much greater
> >> directories.
> >>>> <project name="test" default="test">
> >>>> 	<target name="test">
> >>>> 		<dependset>
> >>>> 			<srcfileset dir="dir1"/>
> >>>> 			<srcfileset dir="dir2"/>
> >>>> 			<srcfileset dir="dir3"/>
> >>>> 			<targetfileset dir="dir5"/>
> >>>> 		</dependset>	
> >>>> 	</target>
> >>>> </project>
> >>>>
> >>>> Stack trace:
> >>>>
> >>>> C:\temp\dependstest\build.xml:4:
> >>>> 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.tools.ant.types.resources.Sort$SortedBag$MutableInt.access$100(Sort.java:44)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.types.resources.Sort$SortedBag$MyIterator.next(Sort.java:60)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.types.resources.FailFast.next(FailFast.java:115)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.taskdefs.DependSet.uptodate(DependSet.java:233)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.taskdefs.DependSet.execute(DependSet.java:202)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >>>>         at
> >>>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>>> Method)
> >>>>         at
> >>>>
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>>         at
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>>         at
> >>>>
> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
> >>>>         ... 11 more
> >>>> --- Nested Exception ---
> >>>> java.lang.NullPointerException
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.types.resources.Sort$SortedBag$MutableInt.access$100(Sort.java:44)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.types.resources.Sort$SortedBag$MyIterator.next(Sort.java:60)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.types.resources.FailFast.next(FailFast.java:115)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.taskdefs.DependSet.uptodate(DependSet.java:233)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.taskdefs.DependSet.execute(DependSet.java:202)
> >>>>         at
> >>>>
> >
>
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
> >>>>         at
> >>>>
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>>> Method)
> >>>>         at
> >>>>
> >
>
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>>>         at
> >>>>
> >
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>>>         at
> >>>>
> java.lang.reflect.Method.invoke(Method.java:585)
> >>>>         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)
> >>>> Any help much appreciated.
> >>>>
> >>>> Oliver
> >>>>
> >>>>
> >
>
---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail:
> >>>> user-unsubscribe@ant.apache.org
> >>>> For additional commands, e-mail:
> >>>> user-help@ant.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>  
> >>>
> >
>
____________________________________________________________________________________
> >>> Be a PS3 game guru.
> >>> Get your game face on with the latest PS3 news
> and
> >> previews at Yahoo! Games.
> >>
> http://videogames.yahoo.com/platform?platform=120121
> >> -- 
> >>
> >> Oliver Robinson
> >> Software Development
> >> World Programming
> >> +44 1794 367957
> >> ol@teamwpc.co.uk
> >>
> > 
> > 
> > 
> > 
> >  
> >
>
____________________________________________________________________________________
> > Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from
> Yahoo! Answers users.
> >
>
http://answers.yahoo.com/dir/?link=list&sid=396546091
> > 
> 
> -- 
> 
> Oliver Robinson
> Software Development
> World Programming
> +44 1794 367957
> ol@teamwpc.co.uk
> 



 
____________________________________________________________________________________
We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

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