#2 Exception when creating stats

1.1
pending
Joe Egan
5
2014-09-15
2010-12-15
direx
No

Running svnstat for a project fails with the following exception:

debug@vc242 /tmp/svn $ java -classpath ./SvnStat-all.jar de.agentlab.svnstat.SvnStat -jar ./SvnStat-all.jar -r repo.log -d stats
org.jCharts.properties.PropertyException: The Axis Increment can not be a negative value or zero.
at org.jCharts.properties.DataAxisProperties.setUserDefinedScale(Unknown Source)
at de.agentlab.svnstat.Graph.lineChart(Graph.java:122)
at de.agentlab.svnstat.Stat.fileCount(Stat.java:433)
at de.agentlab.svnstat.SvnStat.run(SvnStat.java:93)
at de.agentlab.svnstat.SvnStat.main(SvnStat.java:257)

This only happens for one project - the other projects work just fine.

Discussion

  • Joe Egan
    Joe Egan
    2014-06-18

    I encountered this error too - when there were no commits to analyze (in a given date range). I was able to reproduce issue, have a fix for it, and will contact @lind to ask whether I can join the project to contribute the fix.

     
  • Joe Egan
    Joe Egan
    2014-06-20

    I plan a fix for this issue in the 1.1 release. Thanks to @lind for letting me join the project to help.

     
    Last edit: Joe Egan 2014-06-20
  • Joe Egan
    Joe Egan
    2014-09-01

    • status: open --> pending
     
  • Joe Egan
    Joe Egan
    2014-09-01

    Fix is committed and pending the 1.1 release.

     
  • Joe Egan
    Joe Egan
    2014-09-15

    Note that besides the error in question producing the output described (i.e. org.jCharts.properties.PropertyException: The Axis Increment can not be a negative value or zero.), it also causes no File_Count.jpg being generated for the analysis (resulting in a broken image in the HTML report).

     
  • Joe Egan
    Joe Egan
    2014-09-15

    It turns out that the fix noted on 2014-09-01 left an edge case where the issue could still arise - when the difference between the min and max file counts is less than 4 - for example:

    • The repo being analyzed begins the time period being analyzed with 273 files.
    • The repo being analyzed ends the time period being analyzed with 276 files.
    • The repo being analyzed never has less than 273 files or more than 276 files during the time period being analzyed.
    • The difference between the min (273) and max (276) files in the repo during the time period being analyzed is therefore 3 (i.e. less than 4).

    I have committed a fix for this edge case in SVN revision 13 that is pending the 1.1. release.

     
    Last edit: Joe Egan 2014-09-15