From: Irvine, C. R [EQ] <Chuck.R.Irvine@Embarq.com> - 2007-07-13 13:05:53
|
Well, now it seems the problem no longer exists. I deleted my old workspace and created a new one (for unrelated reasons) and now I'm not having the problem anymore. So, it was probably some sort of user error. Sorry for the distraction. And thanks for the great tool. Now that it is working though, something I don't understand is happening. When I run statsvn on the new workspace, the report shows 0 lines of code. There are two things about the repository worth noting. First, the entire content of the repository was via an "svn import", and there have been no commits since then. Secondly, after the repo was created, it was moved from one parent directory to another. We have multiple projects in the same repo organized by department directories and this project was moved from one department to another. When I brought up the statsvn report I didn't expect to see evidence of any code commited of course, but I did expect to see how many lines-of-code it had in it. Was this anomaly caused by the directory move? Thanks, Chuck > -----Original Message----- > From: Benoit Xhenseval [mailto:bx...@ob...]=20 > Sent: Friday, July 13, 2007 4:20 AM > To: Irvine, Chuck R [EQ]; sta...@li... > Subject: RE: [Statsvn-developers] Getting=20 > NullPointerException when running statsvn >=20 >=20 > Hi >=20 > Your issue is not really with an NPE on the RepoMapPageMaker=20 > but the fact that it did not generate a valid Repository=20 > object. Are you sure that you have pointed to a correct=20 > svn.log, and run from a checked out directory? >=20 > Could you run StatSVN with -dump? >=20 > If not too big you can post the svn.log file. >=20 > I may add a validation of the Repository prior to attempting=20 > to generate any page, this would avoid misleading errors. >=20 > Let us know >=20 > Benoit. >=20 > -----Original Message----- > From: sta...@li... > [mailto:sta...@li...] On=20 > Behalf Of Irvine, Chuck R [EQ] > Sent: 12 July 2007 21:26 > To: sta...@li... > Subject: [Statsvn-developers] Getting NullPointerException=20 > when running statsvn >=20 > I'm a user of statSvn. I hope it's ok to post here. I didn't=20 > see a users mailing list.=20 >=20 > When I run statsvn I'm getting the NPE given below. It does=20 > work correctly on another svn workspace. Can anyone offer any=20 > hits of any kind?=20 >=20 > Thanks, > Chuck >=20 > C:\Apps\statsvn-0.3.1>java -jar statsvn.jar=20 > c:\home\eclipse33workspace\datafeed-core\svn.log > c:\home\eclipse33workspace\datafeed-core > Jul 12, 2007 3:02:07 PM net.sf.statsvn.util.JavaUtilTaskLogger info > INFO: StatSVN - SVN statistics generation >=20 > Parsing SVN log 'c:\home\eclipse33workspace\datafeed-core\svn.log' > exclude pattern 'null' > Scheduled 0 svn diff calls on 0 threads. > Generating report for /1PP/TNT/datafeed-core/trunk into > Using default CSS file (statcvs.css) > Exception in thread "main" java.lang.NullPointerException > at > net.sf.statcvs.model.Repository.getDirectories(Repository.java:161) > at=20 > net.sf.statsvn.output.RepoMapPageMaker.buildXmlForJTreeMap(Rep > oMapPageMa > ker.java:112) > at > net.sf.statsvn.output.RepoMapPageMaker.toFile(RepoMapPageMaker > .java:91) > at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:294) > 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) >=20 > C:\Apps\statsvn-0.3.1> >=20 >=20 > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and=20 > take control of your XML. No limits. Just data. Click to get=20 > it now. http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Statsvn-developers mailing list=20 > Sta...@li... > https://lists.sourceforge.net/lists/listinfo/statsvn-developers >=20 > No virus found in this incoming message. > Checked by AVG Free Edition.=20 > Version: 7.5.476 / Virus Database: 269.10.4/898 - Release=20 > Date: 12/07/2007 16:08 > =20 >=20 > No virus found in this outgoing message. > Checked by AVG Free Edition.=20 > Version: 7.5.476 / Virus Database: 269.10.4/898 - Release=20 > Date: 12/07/2007 16:08 > =20 >=20 >=20 >=20 |