ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benno Loeffer" <benno.loeff...@gmx.de>
Subject RE: cvschangelog crashes with NullPointerException
Date Thu, 02 Sep 2004 15:40:29 GMT
Hello Antoine,
I had a similar idea: the output of cvs server cannot be parsed by
Calendar (or some other time-parsing mechanism in the cvschangelog
module and returns null or 0... 
On the other hand: my locales are English/German, so there should not be
any problem...

Greetings 
Benno

> Hello Benno,
> this does look like a bug in ant, because this happens in
> the java code.
> Other possibility : an environment problem, like the
> JDK on your PC not
> knowing what the default locale for calendar is ?
> Cheers,
> Antoine
> > Hi,
> > I try to make cvschangelog running and face a strange
> problem that
> > nobody else seems to have: cvschangelog crashes with
> a
> > NullPointerException.
> > My task looks like:
> > <target name="cvs.changelog">
> >         <cvschangelog
> >                dir="somedir"
> >                destfile="changelog.xml"/>
> > </target>
> >
> > The error that I get (with ant 1.5.3 and 1.6.1) looks
> like (full trace
> > attached at end of file):
> > java.lang.NullPointerException
> >         at java.util.Calendar.setTime(Calendar.java:902)
> >
> > Using  plain cvs works:
> > cvs log -N -d "11 Aug 2004<31 Aug 2004" somedir
> > outputs a correct result (for a full trace, see end of
> file):
> > cvs log: Logging somedir
> > ...
> > ...
> > So the cvs configuration seems to be ok.
> > I tried to add the daysinpast="7" option to only report
> for one week in
> > the past but it still crashes with a slightly different
> problem: a
> > NullPointerException in java.util.Date.
> > If I specify a daysinpast="1" so that no entries are
> generated at all
> > (because there was no change yesterday...),
> cvschangelog task runs and
> > generates an empty report successfully.
> > Could this be caused by an incompatible cvs.exe -
> optional.jar
> > combination? Or may the cvs-server version (1.12.7)
> be incompatible with
> > ant 1.5.3 optional.jar? I also tried combinations with
> ant 1.6.1
> > optional.jar ... but did result in the same error.
> > The cvs.exe that is in my path belongs to wincvs1.3
> and reports version
> > 2.0.41a.
> > I'm working on winxp sp2.
> >
> > Any ideas what the problem could be? I hardly can't
> believe that it is a
> > bug in ant, but I just don't find any solution.
> >
> > Best Regards
> > Benno
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-
> unsubscribe@ant.apache.org
> For additional commands, e-mail: user-
> help@ant.apache.org


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


Mime
View raw message