Share

StatCVS - Stat Your Repository

Tracker: Bugs

5 Exception in thread "main" java.lang.ArithmeticException - ID: 1721660
Last Update: Comment added ( benoitx )

I'm running StatCVS 0.3. I am currently using the following command for
multiple CVS repositories and projects with no problem. I just added a new
repository and project for a client and I get the following error.

I've included the command line I'm using:

====

$ sudo java -jar /usr/local/statvc/statcvs.jar \
-output-dir /usr/local/apache2/htdocs/client/statvc \
-viewvc http://client.domain.com/cvs/viewvc.cgi \
-bugzilla http://client.domain.com/bugs \
/usr/local/apache2/htdocs/client/statvc/logfile.log \
/usr/local/apache2/htdocs/client/statvc/data

StatCVS - CVS statistics generation

Exception in thread "main" java.lang.ArithmeticException: / by zero
at
net.sf.statcvs.pages.DeveloperPageMaker.getNumberAndPercentage(DeveloperPag
eMaker.java:121)
at
net.sf.statcvs.pages.DeveloperPageMaker.toFile(DeveloperPageMaker.java:72)
at
net.sf.statcvs.pages.AllDevelopersPageMaker.toFile(AllDevelopersPageMaker.j
ava:76)
at
net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:77)
at net.sf.statcvs.Main.generateDefaultHTMLSuite(Main.java:225)
at net.sf.statcvs.Main.main(Main.java:75)

====

Here is the directory listing for the CVS files in the project:

$ ls -la /usr/local/apache2/htdocs/client/statvc/data

total 0
drwxr-xr-x 3 root www 102 May 18 21:47 ./
drwxr-xr-x 17 root www 578 May 18 21:00 ../
drwxr-xr-x 4 root www 136 May 18 21:47 TestServer/

./TestServer:
total 0
drwxr-xr-x 4 root www 136 May 18 21:47 ./
drwxr-xr-x 3 root www 102 May 18 21:47 ../
drwxr-xr-x 5 root www 170 May 18 21:47 CVS/
drwxr-xr-x 7 root www 238 May 18 21:47 DevDocs/

./TestServer/CVS:
total 24
drwxr-xr-x 5 root www 170 May 18 21:47 ./
drwxr-xr-x 4 root www 136 May 18 21:47 ../
-rw-r--r-- 1 root www 14 May 18 21:47 Entries
-rw-r--r-- 1 root www 11 May 18 21:47 Repository
-rw-r--r-- 1 root www 23 May 18 21:47 Root

./TestServer/DevDocs:
total 10608
drwxr-xr-x 7 root www 238 May 18 21:47 ./
drwxr-xr-x 4 root www 136 May 18 21:47 ../
drwxr-xr-x 5 root www 170 May 18 21:47 CVS/
-rwxr-xr-x 1 root www 3106816 Mar 28 09:17 Test Architecture
v1.0.vsd*
-rwxr-xr-x 1 root www 1145856 Mar 9 06:38 Test_Server_SRS_dv0_1.doc*
-rwxr-xr-x 1 root www 1174528 Apr 20 08:25 Test_Server_SRS_dv0_2.doc*
drwxr-xr-x 12 root www 408 May 18 21:47 design/

./TestServer/DevDocs/CVS:
total 24
drwxr-xr-x 5 root www 170 May 18 21:47 ./
drwxr-xr-x 7 root www 238 May 18 21:47 ../
-rw-r--r-- 1 root www 197 May 18 21:47 Entries
-rw-r--r-- 1 root www 19 May 18 21:47 Repository
-rw-r--r-- 1 root www 23 May 18 21:47 Root

./TestServer/DevDocs/design:
total 17000
drwxr-xr-x 12 root www 408 May 18 21:47 ./
drwxr-xr-x 7 root www 238 May 18 21:47 ../
drwxr-xr-x 5 root www 170 May 18 21:47 CVS/
-rwxr-xr-x 1 root www 778752 Apr 26 03:49 Test_Server_ 0_9_ OA_
0_1.doc*
-rw-r--r-- 1 root www 854016 May 17 02:54 Test_Server_ 0_9_
db_dv0_1_TstXML_Database_Description.doc
-rwxr-xr-x 1 root www 1298944 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_ERP_Connector.doc*
-rwxr-xr-x 1 root www 915968 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_File_System_Connector.doc*
-rwxr-xr-x 1 root www 878080 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_Test_Backup_DB_Connector.doc*
-rwxr-xr-x 1 root www 800768 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_TstXML_Connector.doc*
-rwxr-xr-x 1 root www 1671168 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_TstXML_Server.doc*
-rwxr-xr-x 1 root www 945152 Apr 26 03:49
Test_Server_0_9_DES_dv0_1_Test_Server.doc*
-rwxr-xr-x 1 root www 541696 Apr 26 03:49
Test_Server_0_9_OA_dv0_1_Connectors.doc*

./TestServer/DevDocs/design/CVS:
total 24
drwxr-xr-x 5 root www 170 May 18 21:47 ./
drwxr-xr-x 12 root www 408 May 18 21:47 ../
-rw-r--r-- 1 root www 730 May 18 21:47 Entries
-rw-r--r-- 1 root www 26 May 18 21:47 Repository
-rw-r--r-- 1 root www 23 May 18 21:47 Root

====

Here is the logifle.log contents:

RCS file: /usr/local/cvs/client/TestServer/DevDocs/Test Architecture
v1.0.vsd,v
Working file: TestServer/DevDocs/Test Architecture v1.0.vsd
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/03/28 16:17:53; author: useraaa; state: Exp;
Adding TST machinte architecture doc
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/Test_Server_SRS_dv0_1.doc,v
Working file: TestServer/DevDocs/Test_Server_SRS_dv0_1.doc
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.3
date: 2007/03/09 14:38:44; author: usera; state: Exp; lines: +659 -544
no message
----------------------------
revision 1.2
date: 2007/03/01 08:42:26; author: userb; state: Exp; lines: +377 -401
Updated FR000 - Data priority
----------------------------
revision 1.1
date: 2007/02/23 12:54:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/Test_Server_SRS_dv0_2.doc,v
Working file: TestServer/DevDocs/Test_Server_SRS_dv0_2.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/20 15:25:26; author: userb; state: Exp;
no message
===========================================================================
==

RCS file: /usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_ 0_9_
OA_ 0_1.doc,v
Working file: TestServer/DevDocs/design/Test_Server_ 0_9_ OA_ 0_1.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file: /usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_ 0_9_
db_dv0_1_TstXML_Database_Description.doc,v
Working file: TestServer/DevDocs/design/Test_Server_ 0_9_
db_dv0_1_TstXML_Database_Description.doc
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 2; selected revisions: 2
description:
----------------------------
revision 1.2
date: 2007/05/17 09:54:16; author: userb; state: Exp; lines: +278 -279
removed the "final first draft" change
----------------------------
revision 1.1
date: 2007/05/17 09:52:59; author: userb; state: Exp;
added database description document
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_E
RP_Connector.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_ERP_Connector.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_F
ile_System_Connector.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_File_System_Connector.d
oc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_T
est_Backup_DB_Connector.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_Test_Backup_DB_Connecto
r.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_T
stXML_Connector.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_TstXML_Connector.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_T
stXML_Server.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_TstXML_Server.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_T
est_Server.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_DES_dv0_1_Test_Server.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==

RCS file:
/usr/local/cvs/client/TestServer/DevDocs/design/Test_Server_0_9_OA_dv0_1_Co
nnectors.doc,v
Working file:
TestServer/DevDocs/design/Test_Server_0_9_OA_dv0_1_Connectors.doc
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: b
total revisions: 1; selected revisions: 1
description:
----------------------------
revision 1.1
date: 2007/04/26 10:49:08; author: userb; state: Exp;
no message
===========================================================================
==


Nobody/Anonymous ( nobody ) - 2007-05-19 05:15

5

Closed

Fixed

Nobody/Anonymous

None

None

Public


Comments ( 5 )

Date: 2009-08-22 10:28
Sender: benoitxProject Admin

Fixed in 0.7.0 beta I believe

See http://statcvs.sf.net/beta/statcvs.jar

re-open if not the case


Date: 2009-08-19 22:24
Sender: benoitxProject Admin

could you try with 0.7.0 beta and add the stacktrace here? thanks


Date: 2009-05-15 20:42
Sender: dmulter

This continues to happen with the latest 0.5.0 release.


Date: 2007-05-19 21:49
Sender: dmulter


After looking at another bug report, I saw a different exception was
generated due to import without any checkins. I tested this by adding a
single checkin and the report was generated fine. This is a real problem
since this particular CVS repository is just an rsync of a master copy that
reports are run against. There will never be a checkin after import. Please
address this as a priority. Thanks!


Date: 2007-05-19 21:37
Sender: dmulter


Oops, bug reported by dmulter


Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
status_id Open 2009-08-22 10:28 benoitx
resolution_id None 2009-08-22 10:28 benoitx
allow_comments 1 2009-08-22 10:28 benoitx
close_date - 2009-08-22 10:28 benoitx