ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32583] New: - cvschangelog throes NullPointerException with some CVS server
Date Wed, 08 Dec 2004 11:07:02 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32583>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32583

           Summary: cvschangelog throes NullPointerException with some CVS
                    server
           Product: Ant
           Version: 1.6.2
          Platform: PC
        OS/Version: Windows 2000
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: zakharov@scph.mipt.ru


We encountered with the NullPointerException in using cvschangelog task.

The full exception stack trace is below. In debugging we found that the problem 
in parsing dates. The pattern is "yyyy/MM/dd HH:mm:ss" (see c_inputDate field 
in org.apache.tools.ant.taskdefs.cvslib.ChangeLogParser).

The CVS server we used logs dates in another format. Here is cites from command
cvs log -d ">=2004/11/08" :

<....>
revision 1.46
date: 2004-12-07 10:38:04 +0000;  author: user1;  state: Exp;  lines: +23 -21
comment1
----------------------------
revision 1.45
date: 2004-12-02 23:01:05 +0000;  author: user2;  state: Exp;  lines: +5 -2
commment2
----------------------------
<....>

I think the cvschangelog task should try to parse date with several formats.

Here is full exception stack trace:
D:\project\cvschangelog_ant.xml:3: java.lang.NullPointerException
        at org.apache.tools.ant.Task.perform(Task.java:373)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
Caused by: java.lang.NullPointerException
        at java.util.Date.after(Date.java:871)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.filterEntrySet(Cha
ngeLogTask.java:333)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.execute(ChangeLogT
ask.java:262)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 8 more
--- Nested Exception ---
java.lang.NullPointerException
        at java.util.Date.after(Date.java:871)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.filterEntrySet(Cha
ngeLogTask.java:333)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.execute(ChangeLogT
ask.java:262)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        at org.apache.tools.ant.Target.execute(Target.java:341)
        at org.apache.tools.ant.Target.performTasks(Target.java:369)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
        at org.apache.tools.ant.Main.runBuild(Main.java:673)
        at org.apache.tools.ant.Main.startAnt(Main.java:188)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message