we are having the same problem with statcvs. haven't been able to track it
down as to the cause, but there is a check in statcvs at sf that is not in
the statcvs-xml library.
In net.sf.statcvs.output.xml.chart.Timeline.java there is :
if(hasInitialValue)
and in
net.sf.statcvs.reportmodel.TimeLine.java there is:
if(hasInitialValue && dataPoints.size() > 0).
adding the extra condition gets rid of the NPE but throws an exception that
can be tracked backed to a bug in the 1.4.2 jvm sun.dc.pr.PRException.
Not sure how to fix this or what is exaclty causing the problem.
Any thoughts?
thanks
matt
-----Original Message-----
From: Silvio Haldi [mailto:[EMAIL PROTECTED]
Sent: Monday, February 09, 2004 4:50 AM
To: [EMAIL PROTECTED]
Subject: Problems with Statcvs Plugin
Hi
In our project we receive the following error when processing the
statcvs:report goal:
[java] Creating suite using net.sf.statcvs.output.XDocRenderer
[java] Using transformer org.apache.xalan.transformer.TransformerImpl
[java] java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:324)
[java] at net.sf.statcvs.Main.generateSuite(Main.java:291)
[java] at net.sf.statcvs.Main.run(Main.java:176)
[java] at net.sf.statcvs.Main.main(Main.java:78)
[java] Caused by: java.lang.NullPointerException
[java] at
net.sf.statcvs.output.xml.chart.TimeLine.getDataPoints(TimeLine.java:108)
[java] at
net.sf.statcvs.output.xml.chart.TimeLineChart.addTimeLine(TimeLineChart.java
:87)
[java] at
net.sf.statcvs.output.xml.chart.LocChart.<init>(LocChart.java:118)
[java] at
net.sf.statcvs.output.xml.CvsCharts.getLocPerAuthorChart(CvsCharts.java:108)
[java] at
net.sf.statcvs.output.xml.document.AuthorsDocument$LinesOfCodeReport.<init>(
AuthorsDocument.java:75)
[java] at
net.sf.statcvs.output.xml.document.AuthorsDocument.<init>(AuthorsDocument.ja
va:54)
[java] at
net.sf.statcvs.output.xml.DocumentSuite.generate(DocumentSuite.java:56)
[java] at
net.sf.statcvs.output.XDocRenderer.generate(XDocRenderer.java:51)
[java] ... 7 more
[java] null
[java] [ERROR] Java Result: 1
I assume that there is a character sequence contained in the produced
statcvs.log
that the parser can't read ...
Does somebody have any clue what the problem could be?
Many thanks!
S.Haldi
ps: I've also posted a comment @ http://jira.codehaus.org (see
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPSTATCVS-8)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]