|
|
|
davidhorat
|
Hello guys, I am a newbie for StatSVN, but I did it pretty straight forward as said in the wiki:
svn co svn+ssh://xxx@xxx/reps/ui/ cd ui svn log -v --xml > ../ui.log cd .. [xxx@xxx stats]# java -jar statsvn.jar ui.log ui/ Aug 5, 2008 6:04:21 PM net.sf.statsvn.util.JavaUtilTaskLogger info INFO: StatSVN - SVN statistics generation Parsing SVN log 'ui.log' exclude pattern 'null' Repositories: org.xml.sax.SAXParseException: Document root element is missing. Exception in thread "main" java.lang.NullPointerException at org.apache.xalan.serialize.SerializerToXML.writeAttrString(Unknown Source) at org.apache.xalan.serialize.SerializerToXML.processAttribute(Unknown Source) at org.apache.xalan.serialize.SerializerToXML.startElement(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Unknown Source) at org.apache.xml.utils.TreeWalker.startNode(Unknown Source) at org.apache.xml.utils.TreeWalker.traverse(Unknown Source) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknown Source) at net.sf.statsvn.util.XMLUtil.writeXmlFile(XMLUtil.java:140) at net.sf.statsvn.input.SvnLogfileParser.handleLineCounts(SvnLogfileParser.java:115) at net.sf.statsvn.input.SvnLogfileParser.parse(SvnLogfileParser.java:344) at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:279) at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:241) at net.sf.statsvn.Main.generate(Main.java:115) at net.sf.statsvn.Main.main(Main.java:81) My "ui.log" file starts with this: <?xml version="1.0"?> <log> <logentry revision="829"> <msg></msg> </logentry> <logentry revision="828"> <author>pguerrer</author> <date>2008-08-05T13:20:54.187507Z</date> <paths> <path action="A">/trunk/oraclerpm/Misc/TODO.txt</path> </paths> ... My SVN client version is: Subversion command-line client, version 1.4.6. My Java version is: Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_16-b05) Any clues? Thank you a lot in advance! |
|
Jean-Philippe Daigle
|
---------- Forwarded message ---------- Well, in this particular case, the error isn't happening while trying to read your "ui.log" file, but rather a repository cache file in the statsvn cache directory. By default this is "~/.statsvn/" in your home directory, can you see if there's a file called repositories.xml in there somewhere, and what it contains? If it exists, can you check that it's well-formed? JP ------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@... https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
|
jkealey
|
Some javascript/style in this post has been disabled (why?)
David, I believe you are using a non-standard XML parser (xalan) which often
runs into bugs with StatSVN (the bug is in the parser, not StatSVN). I suggest you look for information on changing your parser back
to the default one that comes with Java, or simply running on another machine. You’re not the first person to experience such an issue, and I
would love to document the workaround if you can write it up. Jason From: statsvn-users-bounces@...
[mailto:statsvn-users-bounces@...] On Behalf Of Jean-Philippe
Daigle
------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@... https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
|
davidhorat
|
About "./.statsvn/repositories.xml", it is:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <repositories> <repository file="cache_53ecefc3-a64d-0410-9bdf-b8581fa3287e.xml" project="" uuid="53ecefc3-a64d-0410-9bdf-b8581fa3287e"/> </repositories> ... so it seems correct. For the XML Parser, I just installed the last version of Java (1.6u7), because 1.4.x doesnt bring a default XML parser. Now it seems to work, but when I get to the end it says "killed" and doesnt keep on: /usr/java/jdk1.6.0_07/bin/java -jar ../statsvn.jar logfile.log . ... svn diff 43/570 on r349 (6309 ms.) pool-1-thread-4 trunk/uimon_dist/remote_copy_n_remove.pl, on r349, +8 -0 trunk/uimon_dist/copy_n_remove.pl, on r349, +1 -0 Killed What can it be, guys? Thanks! On Thu, Aug 7, 2008 at 3:11 AM, Jason Kealey <jkealey@...> wrote:
-- David Horat Openlab Student @ CERN http://davidhorat.com/ http://davidatcern.blogspot.com/ ------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@... https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
|
davidhorat
|
About "./.statsvn/repositories.xml", it is:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <repositories> <repository file="cache_53ecefc3-a64d-0410-9bdf-b8581fa3287e.xml" project="" uuid="53ecefc3-a64d-0410-9bdf-b8581fa3287e"/> </repositories> ... so it seems correct. For the XML Parser, I just installed the last version of Java (1.6u7), because 1.4.x doesnt bring a default XML parser. Now it seems to work, but when I get to the end it says "killed" and doesnt keep on: /usr/java/jdk1.6.0_07/bin/java -jar ../statsvn.jar logfile.log . ... svn diff 43/570 on r349 (6309 ms.) pool-1-thread-4 trunk/uimon_dist/remote_copy_n_remove.pl, on r349, +8 -0 trunk/uimon_dist/copy_n_remove.pl, on r349, +1 -0 Killed What can it be, guys? Thanks! On Thu, Aug 7, 2008 at 3:11 AM, Jason Kealey <jkealey@shade.ca> wrote: > David, > > > > I believe you are using a non-standard XML parser (xalan) which often runs > into bugs with StatSVN (the bug is in the parser, not StatSVN). > > > > I suggest you look for information on changing your parser back to the > default one that comes with Java, or simply running on another machine. > > > > You're not the first person to experience such an issue, and I would love > to document the workaround if you can write it up. > > > > Jason > > > > *From:* statsvn-users-bounces@lists.sourceforge.net [mailto: > statsvn-users-bounces@lists.sourceforge.net] *On Behalf Of *Jean-Philippe > Daigle > *Sent:* August-06-08 10:46 AM > *To:* statsvn-users@lists.sourceforge.net > *Subject:* Re: [Statsvn-users] Exception when generating stats > > > > ---------- Forwarded message ---------- > From: davidhorat <david.horat@gmail.com> > To: statsvn-users@lists.sourceforge.net > Date: Tue, 5 Aug 2008 09:31:22 -0700 (PDT) > Subject: [Statsvn-users] Exception when generating stats > > Hello guys, I am a newbie for StatSVN, but I did it pretty straight forward > as said in the wiki: > > svn co svn+ssh://xxx@xxx/reps/ui/ > cd ui > svn log -v --xml > ../ui.log > cd .. > > [xxx@xxx stats]# java -jar statsvn.jar ui.log ui/ > Aug 5, 2008 6:04:21 PM net.sf.statsvn.util.JavaUtilTaskLogger info > INFO: StatSVN - SVN statistics generation > > Parsing SVN log 'ui.log' exclude pattern 'null' > Repositories: org.xml.sax.SAXParseException: Document root element is > missing. > Exception in thread "main" java.lang.NullPointerException > at > org.apache.xalan.serialize.SerializerToXML.writeAttrString(Unknown > Source) > at > org.apache.xalan.serialize.SerializerToXML.processAttribute(Unknown > Source) > at org.apache.xalan.serialize.SerializerToXML.startElement(Unknown > Source) > at > org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Unknown > Source) > at org.apache.xml.utils.TreeWalker.startNode(Unknown Source) > at org.apache.xml.utils.TreeWalker.traverse(Unknown Source) > at > org.apache.xalan.transformer.TransformerIdentityImpl.transform(Unknown > Source) > at net.sf.statsvn.util.XMLUtil.writeXmlFile(XMLUtil.java:140) > at > > net.sf.statsvn.input.SvnLogfileParser.handleLineCounts(SvnLogfileParser.java:115) > at > net.sf.statsvn.input.SvnLogfileParser.parse(SvnLogfileParser.java:344) > at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:279) > at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:241) > at net.sf.statsvn.Main.generate(Main.java:115) > at net.sf.statsvn.Main.main(Main.java:81) > > My "ui.log" file starts with this: > <?xml version="1.0"?> > <log> > <logentry > revision="829"> > <msg></msg> > </logentry> > <logentry > revision="828"> > <author>pguerrer</author> > <date>2008-08-05T13:20:54.187507Z</date> > <paths> > <path > action="A">/trunk/oraclerpm/Misc/TODO.txt</path> > </paths> > ... > > > My SVN client version is: Subversion command-line client, version 1.4.6. > My Java version is: Java(TM) 2 Runtime Environment, Standard Edition (build > 1.4.2_16-b05) > > > Any clues? > > Thank you a lot in advance! > -- > View this message in context: > http://n2.nabble.com/Exception-when-generating-stats-tp673980p673980.html > Sent from the StatSVN Users mailing list archive at Nabble.com. > > > Well, in this particular case, the error isn't happening while trying to > read your "ui.log" file, but rather a repository cache file in the statsvn > cache directory. By default this is "~/.statsvn/" in your home directory, > can you see if there's a file called repositories.xml in there somewhere, > and what it contains? If it exists, can you check that it's well-formed? > > JP > -- David Horat Openlab Student @ CERN http://davidhorat.com/ http://davidatcern.blogspot.com/ ------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
|
jkealey
|
In reply to this post by davidhorat
Some javascript/style in this post has been disabled (why?)
Hey David, Do you have anything fancy on the server that might detect a
denial of service attack and block you if you were doing too many requests in a
short period of time to Subversion? You might want to try throttling it (using the appropriate StatSVN
command line parameters). Thanks, Jason From: David Horat [mailto:david.horat@...] About "./.statsvn/repositories.xml", it is: On Thu, Aug 7, 2008 at 3:11 AM, Jason Kealey <jkealey@...> wrote: David, I believe you are using a
non-standard XML parser (xalan) which often runs into bugs with StatSVN (the
bug is in the parser, not StatSVN). I suggest you look for
information on changing your parser back to the default one that comes with
Java, or simply running on another machine. You're not the first person to
experience such an issue, and I would love to document the workaround if you
can write it up. Jason From: statsvn-users-bounces@...
[mailto:statsvn-users-bounces@...] On Behalf
Of Jean-Philippe Daigle Subject: Re: [Statsvn-users] Exception when
generating stats
------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@... https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
|
davidhorat
|
I didnt knew it, but yes we do. LoL.
Thanks for all guys! On Thu, Aug 7, 2008 at 3:06 PM, Jason Kealey <jkealey@...> wrote:
-- David Horat Openlab Student @ CERN http://davidhorat.com/ http://davidatcern.blogspot.com/ ------------------------------------------------------------------------- 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=/ _______________________________________________ Statsvn-users mailing list Statsvn-users@... https://lists.sourceforge.net/lists/listinfo/statsvn-users |
||||||||||||||||||
| Free Forum Powered by Nabble | Forum Help |