Menu

#72 Exception error, duplicates are not permitted

open
nobody
None
5
2007-12-11
2007-12-11
Rick Tanner
No

Using statsvn-0.3.1

I am encountering the following error:

Exception in thread "main" org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period Sun Nov 04 01:50:00 CST 2007 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.

Checking the SVN Log file indicates only one checking at that day & time.

Is this an internal error with the application?

Discussion

  • Rick Tanner

    Rick Tanner - 2007-12-11

    Logged In: YES
    user_id=418233
    Originator: YES

    Another note - statsvn does not generate any graphs or content after encountering this issue. Just the following 2 files:

    jtreemap-1.1.0.jar
    repomap-data.txt

    It then kicks me back to the shell prompt.

     
  • Jason Kealey

    Jason Kealey - 2007-12-12

    Logged In: YES
    user_id=1498924
    Originator: NO

    The error you list above doesn't seem to be related to the code in StatSVN. We inherit this functionality from StatCVS. Further investigation is required.

     
  • Benoit Xhenseval

    Logged In: YES
    user_id=358115
    Originator: NO

    It is typically a JFreeChart exception. It would be very useful if you could identify the chart that it is trying to create. Is there a more comprehensive exception with a stacktrace?
    Could you do a dump of your repository using StatSVN and check whether there is more than 1 entry for that timestamp?
    Thanks
    Benoit

     
  • Rick Tanner

    Rick Tanner - 2007-12-12

    Logged In: YES
    user_id=418233
    Originator: YES

    > It is typically a JFreeChart exception. It would be very useful if you
    > could identify the chart that it is trying to create.

    [Loaded org.jfree.data.time.Hour from file:/tmp/statsvn/statsvn-0.3.1/statsvn.jar]

    > Is there a more comprehensive exception with a stacktrace?

    Do you mean, this?

    Exception in thread "main" org.jfree.data.general.SeriesException: You are attempting to add an observation for the time period Sun Nov 04 01:50:00 CST 2007 but the series already contains an observation for that time period. Duplicates are not permitted. Try using the addOrUpdate() method.
    at org.jfree.data.time.TimeSeries.add(TimeSeries.java:529)
    at org.jfree.data.time.TimeSeries.add(TimeSeries.java:572)
    at org.jfree.data.time.TimeSeries.add(TimeSeries.java:558)
    at net.sf.statcvs.reports.LOCSeriesBuilder.addRevision(LOCSeriesBuilder.java:70)
    at net.sf.statsvn.output.ChurnPageMaker.getLOCTimeSeries(ChurnPageMaker.java:123)
    at net.sf.statsvn.output.ChurnPageMaker.buildChart(ChurnPageMaker.java:95)
    at net.sf.statsvn.output.ChurnPageMaker.toFile(ChurnPageMaker.java:67)
    at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:295)
    at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:227)
    at net.sf.statsvn.Main.generate(Main.java:112)
    at net.sf.statsvn.Main.main(Main.java:83)
    [Loaded java.util.IdentityHashMap$KeySet from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]
    [Loaded java.util.IdentityHashMap$IdentityHashMapIterator from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]
    [Loaded java.util.IdentityHashMap$KeyIterator from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]
    [Loaded java.io.DeleteOnExitHook from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]
    [Loaded java.util.LinkedHashMap$KeyIterator from /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/rt.jar]

    > Could you do a dump of your repository using StatSVN and check whether
    > there is more than 1 entry for that timestamp?

    There is only one entry AFAICS

    http://www.metalforge.net/ChangeLog.html#r7481 (1.1M)

     
  • Benoit Xhenseval

    Logged In: YES
    user_id=358115
    Originator: NO

    Interesting, the manifestation of your issue is in StatCVS. Before we go and modify it (may be a valid point to do addOrUpdate) we should chekc that StatSVN does interpret your repository correctly. Could you run statSVN -dump? see manual:
    http://svn.statsvn.org/statsvnwiki/index.php/User_Manual

    Zip and attach the result
    regards from London,
    B

     
  • Rick Tanner

    Rick Tanner - 2007-12-13

    statsvn -dump output

     
  • Rick Tanner

    Rick Tanner - 2007-12-13

    Logged In: YES
    user_id=418233
    Originator: YES

    > Could you run statSVN -dump?

    Yes, see attached file.
    File Added: dump_output.tgz

     

Log in to post a comment.