Menu

#2 Exception when creating stats

1.1
pending
Joe Egan
5
2016-07-18
2010-12-15
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
  • VCSekhar

    VCSekhar - 2016-06-22

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

    VCSekhar - 2016-07-18

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.