From: Jason K. <jk...@sh...> - 2008-10-28 22:50:24
|
Workarounds: Idea 1) Can you try running using another AWT toolkit instead of GTK? http://java.sun.com/j2se/1.5.0/docs/guide/awt/1.5/xawt.html Idea 2) Can you try running on another OS / computer? What can you do with XML: I loaded the XML into a web application with a Flash front-end here: http://www.lavablast.com/statsvn/authors.aspx More info here: http://blog.lavablast.com/?tag=/statsvn In general, we provided the functionality, but from what I've seen, no one has done anything interesting with it yet. Ideally, one would create a dynamic web app instead of the static files we generate. Good luck, --- Jason Kealey - jk...@la... LavaBlast Franchise Software - http://www.lavablast.com Simplifying day-to-day franchise operations -----Original Message----- From: Dave Plonka [mailto:pl...@cs...] Sent: October-28-08 4:54 PM To: sta...@li... Subject: [Statcvs-users] ArrayIndexOutOfBoundsException with statcvs-0.4.0? StatCvs users, When I run statcvs-0.4.0 on one particular repository's log file, I get an ArrayIndexOutOfBoundsException under JFreeChart. (Details below.) It works for other repository log files (that happen to be smaller) and I can successfully generate XML output for this repository's log file, but not HTML for this log. Does anyone have a suggested workaround for this? If not, what can I do with the XML output? I.e. With what tool was it meant to be used? Is there documentation about it? In an attempt to fix the problem, I substituted the current jfreechart-1.0.11.jar for jfreechart-1.0.3.jar and updated the ant build accordingly, but then I get an undefined method instead (details below)... apparently StatCvs uses an API that no longer exists(?) in JFreeChart. Thanks for any help! Dave ---------------------------------------------------------------------- Here's the traceback that I get when running then unmodified statcvs-0.4.0/statcvs.jar on one specific repository's log file: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(libgcj.so.7rh) at gnu.java.awt.peer.gtk.BufferedImageGraphics.updateBufferedImage(libgcj.so.7r h) at gnu.java.awt.peer.gtk.BufferedImageGraphics.fill(libgcj.so.7rh) at org.jfree.chart.block.BlockBorder.draw(BlockBorder.java:177) at org.jfree.chart.title.LegendTitle.draw(LegendTitle.java:509) at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1137) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1025) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193) at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:174) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:329) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:300) at gnu.java.awt.peer.gtk.BufferedImageGraphics.updateBufferedImage(libgcj.so.7r h) at gnu.java.awt.peer.gtk.BufferedImageGraphics.fill(libgcj.so.7rh) at org.jfree.chart.block.BlockBorder.draw(BlockBorder.java:177) at org.jfree.chart.title.LegendTitle.draw(LegendTitle.java:509) at org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1137) at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1025) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1213) at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1193) at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:174) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:329) at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:300) at net.sf.statcvs.charts.ChartImage.write(ChartImage.java:58) at net.sf.statcvs.output.ReportConfig.createChartImage(ReportConfig.java:140) at net.sf.statcvs.charts.LOCChartMaker.<init>(LOCChartMaker.java:97) at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCCha rtMaker.java:211) at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.ja va:40) at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88) at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211) at net.sf.statcvs.Main.main(Main.java:76) ---------------------------------------------------------------------- Error when trying jfreechart-1.0.11.jar (instead of 1.0.3): Exception in thread "main" java.lang.NoSuchMethodError: method org.jfree.data.time.TimeSeries.<init> with signature (Ljava.lang.String;Ljava.lang.Class;)V was not found. at net.sf.statcvs.reports.LOCSeriesBuilder.<init>(LOCSeriesBuilder.java:40) at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.createAllDeve lopersLOCSeries(LOCChartMaker.java:182) at net.sf.statcvs.charts.LOCChartMaker$AllDevelopersLOCChartMaker.<init>(LOCCha rtMaker.java:211) at net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.ja va:40) at net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:88) at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:211) at net.sf.statcvs.Main.main(Main.java:76) -- pl...@cs... http://net.doit.wisc.edu/~plonka/ Madison, WI ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Statcvs-users mailing list Sta...@li... https://lists.sourceforge.net/lists/listinfo/statcvs-users |