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 37581] New: - NPE at java.util.Calendar.setTime(Calendar.java:902)
Date Mon, 21 Nov 2005 20:47:38 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=37581>.
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=37581

           Summary: NPE at java.util.Calendar.setTime(Calendar.java:902)
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: francis.andre@easynet.fr


HI Ant Team

Here is an NPE trace caused by the <cvschangelog> task and I have no real idea 
what could be the origin of this NPE.


BUILD FAILED
C:\DEV\WSSE\WSSE.ant:108: 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.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.NullPointerException
        at java.util.Calendar.setTime(Calendar.java:902)
        at java.text.SimpleDateFormat.format(SimpleDateFormat.java:782)
        at java.text.SimpleDateFormat.format(SimpleDateFormat.java:775)
        at java.text.DateFormat.format(DateFormat.java:314)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogWriter.printEntry(Chang
eLogWriter.java:89)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogWriter.printChangeLog(C
hangeLogWriter.java:68)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.writeChangeLog(Cha
ngeLogTask.java:383)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.execute(ChangeLogT
ask.java:267)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
        at org.apache.tools.ant.Task.perform(Task.java:364)
        ... 10 more
--- Nested Exception ---
java.lang.NullPointerException
        at java.util.Calendar.setTime(Calendar.java:902)
        at java.text.SimpleDateFormat.format(SimpleDateFormat.java:782)
        at java.text.SimpleDateFormat.format(SimpleDateFormat.java:775)
        at java.text.DateFormat.format(DateFormat.java:314)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogWriter.printEntry(Chang
eLogWriter.java:89)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogWriter.printChangeLog(C
hangeLogWriter.java:68)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.writeChangeLog(Cha
ngeLogTask.java:383)
        at org.apache.tools.ant.taskdefs.cvslib.ChangeLogTask.execute(ChangeLogT
ask.java:267)
        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.executeSortedTargets(Project.java:1216)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
        at org.apache.tools.ant.Main.runBuild(Main.java:668)
        at org.apache.tools.ant.Main.startAnt(Main.java:187)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Total time: 33 seconds
C:\DEV\WSSE>


Here is the build.xml snippet:

	<target name="changelog">
		<cvschangelog dir="src" destfile="changelog.xml"/>
        <style in="changelog.xml" 
               out="changelog.html" 
               style="${ant.home}/etc/changelog.xsl">
          <param name="title" expression="WSSE ChangeLog"/>
          <param name="module" expression="WSSE"/>
          <!-- param name="cvsweb" 
expression="http://cvs.apache.org/viewcvs/"/ -->
        </style>
	</target>


C:\DEV\WSSE>ant -version
Apache Ant version 1.6.5 compiled on June 2 2005

C:\DEV\WSSE>java -version
java version "1.4.2_08"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_08-b03)
Java HotSpot(TM) Client VM (build 1.4.2_08-b03, mixed mode)


Regards

FA

-- 
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