Quantcast

StatSVN nullpointerexception parsing the svn log

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

StatSVN nullpointerexception parsing the svn log

vcsekhar
This post has NOT been accepted by the mailing list yet.
This post was updated on .
First of all my apologies: I posted this in User Forum too and later saw this dev-forum and realized this should be the right place I am supposed to post. Please accept my apologies for the spam.

Hi,
   Am using java V 1.4.1 and invoked StatSVN using the syntax.

java -jar statsvn.jar -debug -output-dir %StatSVNRptLoc% -cache-dir LibCache %SVNlogfile% %librepo%

I got the below output and repositories.xml that automatically got created is empty. The SVNlogfile was well-formed and my new-install-Internet Explorer V 8 also loaded is successfully and completely with out reporting any error.

------------------------------------------------------------------------------------------------
........................
.....
FINE statsvn.util.JavaUtilTaskLogger log(): logging default/SearchLeftPanel.css
FINE statsvn.util.JavaUtilTaskLogger log(): logging app/HomePageData.aspx.js
FINE statsvn.util.JavaUtilTaskLogger log(): logging default/MenuItems.js
FINE statsvn.util.JavaUtilTaskLogger log(): parsing svn log finished in 4922 ms.
FINE statsvn.util.JavaUtilTaskLogger log(): verifying implicit actions ...
FINE statsvn.util.JavaUtilTaskLogger log(): verifying implicit actions finished
in 31 ms.
Repositories: org.xml.sax.SAXParseException: Document root element is missing.
Exception in thread "main" java.lang.NullPointerException
        at org.apache.xalan.serialize.SerializerToXML.writeAttrString(Serializer
ToXML.java:2229)
        at org.apache.xalan.serialize.SerializerToXML.processAttribute(Serialize
rToXML.java:1084)
        at org.apache.xalan.serialize.SerializerToXML.startElement(SerializerToX
ML.java:944)
        at org.apache.xalan.transformer.TransformerIdentityImpl.startElement(Tra
nsformerIdentityImpl.java:1017)
        at org.apache.xml.utils.TreeWalker.startNode(TreeWalker.java:346)
        at org.apache.xml.utils.TreeWalker.traverse(TreeWalker.java:167)
        at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:325)
        at net.sf.statsvn.util.XMLUtil.writeXmlFile(XMLUtil.java:140)
        at net.sf.statsvn.input.SvnLogfileParser.handleLineCounts(SvnLogfilePars
er.java:115)
        at net.sf.statsvn.input.SvnLogfileParser.parse(SvnLogfileParser.java:344
)
        at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:284)
        at net.sf.statsvn.Main.generate(Main.java:116)
        at net.sf.statsvn.Main.main(Main.java:80)
------------------------------------------------------------------------------------------------

I tried checking out the code for StatSVN, but was left clueless on debugging it correctly on my files.

Appreciate if someone can share some light on resolving this issue.

Thanks

VC Sekhar Parepalli
Loading...