|
From: SourceForge.net <no...@so...> - 2007-01-20 03:34:52
|
Bugs item #1637082, was opened at 2007-01-16 15:01 Message generated for change (Comment added) made by jkealey You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=833326&aid=1637082&group_id=164845 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Output Layer Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Cam (camsoper) Assigned to: Nobody/Anonymous (nobody) Summary: Blows up parsing log file Initial Comment: Followed instructions to the letter, but got the following command line output: Jan 16, 2007 1:58:16 PM net.sf.statsvn.util.JavaUtilTaskLogger info INFO: StatSVN - SVN statistics generation Parsing SVN log 'd:\svnstatcode\source\svn.log' org.xml.sax.SAXParseException: Premature end of file. Scheduled 0 svn diff calls on 0 threads. Generating report for /trunk/Online%20Banking/Voyager/source into Using default CSS file (statcvs.css) Exception in thread "main" java.lang.NullPointerException at java.util.Calendar.setTime(Unknown Source) at net.sf.statsvn.output.RepoMapPageMaker.<init>(RepoMapPageMaker.java:72) at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:292) 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) Using Windows XP SP2, JRE 1.5.0_04, SVN 1.4.0. I have validated my XML log file in XMLSpy to ensure proper XML formedness and text encoding. ---------------------------------------------------------------------- >Comment By: Jason Kealey (jkealey) Date: 2007-01-19 22:34 Message: Logged In: YES user_id=1498924 Originator: NO Can you do two things for us? 1) Download http://www.statsvn.org/beta/statsvn.jar. It contains an update on the error messages; we should be able to see where the org.xml.sax.SAXParseException comes from (parsing log file, info file or our repository cache). Rerun, using -debug. Send back output. 2) Temporarily remove the SVN_ASP_DOT_NET_HACK environment variable. Re-check out your project and redo the log file. You can try on a subfolder to make it quick to checkout, if your repo is big. Rerun StatSVN. My guess is that that the SVN_ASP_DOT_NET_HACK environment variable is somehow not passed through when we invoke our processes. However, that's very odd because the PATH one is, and we're not doing anything special to handle that. We're not simply reading the .svn/ directory as we're always invoking the svn process (unless there is some hidden remnant of StatSVN prior to 0.0.9 lying around). If it works when you disable the variable, we've identified our problem and I'll look into replicating it on another machine and getting everything to work. ---------------------------------------------------------------------- Comment By: Cam (camsoper) Date: 2007-01-16 18:20 Message: Logged In: YES user_id=1417924 Originator: YES I did a diff of SourceForge's copy of the file against the original file, and SourceForge is adding some characters at the end of file. Command line should be fine. From d:\svnstat\ prompt, typing: java -jar statsvn.jar d:\svnstatcode\source\svn.log d:\svnstatcode\source (yes, I realize I wasn't overly creative on my directory names...) Using JRE 1.5.0_04 - what revision are you guys using? Regarding the ASP.NET, I had that thought too - we use TortoiseSVN's convention of _svn, but I created a brand new directory to checkout to using the SVN command line, so there shouldn't be a conflict. The command line version DOES apparently make use of the same environment variable as Tortoise, though, because my svn directories are prepended with an underscore (_svn). Requested svn info attached. File Added: svninfo.zip ---------------------------------------------------------------------- Comment By: Jason Kealey (jkealey) Date: 2007-01-16 17:53 Message: Logged In: YES user_id=1498924 Originator: NO I see you're doing asp.net web apps. Do you perhaps have a version of TortoiseSVN that uses _svn instead of .svn for folder names, and a version of the svn command line utilities that use the regular .svn? ---------------------------------------------------------------------- Comment By: Jason Kealey (jkealey) Date: 2007-01-16 17:45 Message: Logged In: YES user_id=1498924 Originator: NO What command line are you using to run statsvn? Are you sure you're pointing a correctly checked out copy? Can you also type "svn info --xml -R > svninfo.log" in your checked out folder's root and send it over. The logfile seems to have crap at the end, but I am guessing this is due to the sf attachment service. Thanks! ---------------------------------------------------------------------- Comment By: Cam (camsoper) Date: 2007-01-16 17:39 Message: Logged In: YES user_id=1417924 Originator: YES Attaching log. As requested, here's the output of "-dump -debug -verbose"... Jan 16, 2007 4:37:27 PM net.sf.statsvn.util.JavaUtilTaskLogger info INFO: StatSVN - SVN statistics generation Parsing SVN log 'd:\svnstatcode\source\svn.log' org.xml.sax.SAXParseException: Premature end of file. Scheduled 0 svn diff calls on 0 threads. Generating report for /trunk/Online%20Banking/Voyager/source into Using default CSS file (statcvs.css) #### DUMP PER REVISION #### Total for this rev: 0 #### DUMP PER FILE #### #### DUMP PER TAG #### ---------------------------------- Current Repo Line Code :0 -----Via Files-------------------- Number of Files via Files :0 Sum Current LOC via File :0 Diff with Repo LOC 0 OK # of File Revision via File:0 -----Via Revisions---------------- # of Files via Revisions :0 Diff with via Files:0 OK # of File Revision via Revi:0 Diff with via Files:0 OK Sum Delta via Revisions :0 Diff with Repo LOC 0 OK Tot LOC via Last Rev file :0 Diff with Repo LOC 0 OK ---------------------------------- runtime: 2.734 seconds memory usage: 0.0 kb File Added: svn.log ---------------------------------------------------------------------- Comment By: Benoit Xhenseval (benoitx) Date: 2007-01-16 17:32 Message: Logged In: YES user_id=358115 Originator: NO Hi Cam, Thanks for taking the time to fill in a bug report. I do not think that the issue is related to the RepoMapPageMaker as it is one of the first reports generated and it fails on this line: cal.setTime(config.getRepository().getLastDate()); which implies that the repository is null, not a good sign for any report. Your exception "org.xml.sax.SAXParseException: Premature end of file." is the worrying bit. For some reason, it does not seem to like your svn.log Would you mind posting it here? or sending it to me? Did you generate it using the recommended way as described on the homepage? i.e. it was not modified by XMLSpy in any way? Finally, could you try to run it with "-dump" on the command line and post the log here too? Thanks Benoit ---------------------------------------------------------------------- Comment By: Jason Kealey (jkealey) Date: 2007-01-16 17:29 Message: Logged In: YES user_id=1498924 Originator: NO Can you send us the logfile? I'm guessing the error has something to do with a null date on one of your revisions, that's probably what would make the last exception occur. It might not be null in your logfile, as the first SAXParseException might have terminated the process that was responsible to load the dates. However, the error possibly occurred while scanning your logfile or a few other xml files we get when contacting the server. To learn more, you'd have to run with more verbose output (try -debug / -verbose / -dump) and see if you find anything interesting. Thanks, Jason ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=833326&aid=1637082&group_id=164845 |