Quantcast

StatSVN nullpointerexception parsing the svn log

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

StatSVN nullpointerexception parsing the svn log

vcsekhar
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: StatSVN nullpointerexception parsing the svn log

jkealey@lavablast.com

Thanks,
---
Jason Kealey, Ing. - [hidden email]
FranchiseBlast, franchise software - http://www.franchiseblast.com
Simplifying day-to-day franchise operations


On Sat, Feb 11, 2012 at 4:14 PM, vcsekhar <[hidden email]> wrote:
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

--
View this message in context: http://statsvn.1260.n2.nabble.com/StatSVN-nullpointerexception-parsing-the-svn-log-tp7276733p7276733.html
Sent from the StatSVN Users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Statsvn-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/statsvn-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: StatSVN nullpointerexception parsing the svn log

vcsekhar
In reply to this post by vcsekhar
Sorry Kealy, to have you repeat the same stuff.
My mistake - Even though I gone through that thread earlier, I missed (somehow) the Java 1.6 part. I got it all working now with Java 1.6.

Will update the other thread too just so people like me don't accidentally repeat to post this.

Thanks much for quick response,

VC
Loading...