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.
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.
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
Fix is committed and pending the 1.1 release.
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).
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:
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
Thanks for the update, Joe. I just did a small verification on 1.1 beta and looks like a new issue arised. Could this be any of the missing jre updates or missing updated pre-requisites at my end ?
Error : http://imgur.com/RCx6dMz
Thanks in advance!!
Last edit: VCSekhar 2016-06-22
Hi Joe and all,
Was able to figured out the cause with the unsupported class version error I reported in my previous message related to 1.1 beta release. A little googling and debugging helped it resolve.
Cause:
1.1 beta no more works with JRE 1.4
Fix that I tried which worked out:
used latest available JRE 1.8 (http://www.oracle.com/technetwork/java/javase/downloads/server-jre8-downloads-2133154.html)
Thanks for the code, Joe,
VC