Re: [Stat-scm-user] NullPointerException executing stat-scm plugin
Brought to you by:
benoitx,
dougculnane
From: Abel C. <abe...@gm...> - 2007-03-02 16:19:13
|
Hi, I've executed a 'svn update' followed by 'svn commit' (there was just a change in pom.xml to re-activate the plugin I had commented out), and after that a 'mvn site' and it's simply worked Thank you very much, excuse the interruption, Abel. On 3/2/07, Doug Culnane <do...@cu...> wrote: > > Are you using SVN or CVS? > > Can you do a "cvs st" or "svn st" and send the output. > > Sometimes you need to do a checkin to sync the files on the disk with the > log file. > > Let me know if this helps. > > Thanks, > > Doug > > > Hi, > > > > I'm getting a NullPointerException while executing stat-scm plugin. I > > attach my pom.xml and copy here the log of the execution of 'mvn -e > site': > > [INFO] StatSCM Generating Source Code Management Metrics. > > [INFO] Configuring StatXXX > > [INFO] SCM Connection Type :svn > > [INFO] Output Directory > > > :/home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/ > > [INFO] scm log > > > > /home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/scm.log > > [INFO] > > > /home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/scm.log > > EOF. > > [INFO] scm log ...; exitValue: 0 > > Mar 1, 2007 9:56:29 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Parsing SVN log > > > '/home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/scm.log' > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Scheduled 0 svn diff calls on 0 threads. > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Generating report for consolidador Logs into > > > /home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/ > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Using default CSS file (statcvs.css) > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of consolidadorLogs.ipr does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > > src/test/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogsCLITest.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/test/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogsTest.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/main/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogsCLI.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/main/java/es/cajamadrid/consolidadorLogs/util/UtilFicheros.java does > > not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of src/changes/changes.xml does not match expected > revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of consolidadorLogs.iws does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/main/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogs.java does > > not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/main/java/es/cajamadrid/consolidadorLogs/LibroExcel.java does not > > match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/test/java/es/cajamadrid/consolidadorLogs/LibroExcelTest.java does > > not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of consolidadorLogs.iml does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/test/java/es/cajamadrid/consolidadorLogs/DatoResumenEntradaTest.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > > src/main/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogsManager.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > > src/test/java/es/cajamadrid/consolidadorLogs/ConsolidadorLogsManagerTest.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of pom.xml does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statsvn.util.JavaUtilTaskLogger info > > INFO: Revision of > > src/main/java/es/cajamadrid/consolidadorLogs/DatoResumenEntrada.java > > does not match expected revision > > Mar 1, 2007 9:56:30 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Lines of Code and Churn Level' to locandchurn.png > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.output.DefaultCssHandler > > createOutputFiles > > INFO: Creating CSS file at > > > '/home/abel/proyectos/java/proyectos/consolidadorLogs/target/generated-site/xdoc/statscm/statcvs.css' > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Activity by Hour of Day' to activity_time.png > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Activity by Day of Week' to activity_day.png > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Commit Activity' to commitscatterauthors.png > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Author Activity' to activity.png > > Mar 1, 2007 9:56:31 PM net.sf.statcvs.charts.ChartImage write > > INFO: writing chart 'Lines of Code' to loc.png > > [INFO] > > ------------------------------------------------------------------------ > > [ERROR] FATAL ERROR > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] null > > [INFO] > > ------------------------------------------------------------------------ > > [INFO] Trace > > java.lang.NullPointerException > > at net.sf.statcvs.pages.Page.add(Page.java:160) > > at > > net.sf.statcvs.pages.FileSizesPageMaker.toFile(FileSizesPageMaker.java > :53) > > at > > net.sf.statcvs.pages.ReportSuiteMaker.toFile(ReportSuiteMaker.java:80) > > at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:303) > > at net.sf.statsvn.Main.generateDefaultHTMLSuite(Main.java:235) > > at net.sf.statscm.StatScmMojo.doSvnStats(StatScmMojo.java:158) > > at net.sf.statscm.StatScmMojo.executeReport(StatScmMojo.java > :128) > > at > > org.apache.maven.reporting.AbstractMavenReport.generate( > AbstractMavenReport.java:101) > > at > > org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument( > ReportDocumentRenderer.java:67) > > at > > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule( > DefaultSiteRenderer.java:239) > > at > > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render( > DefaultSiteRenderer.java:115) > > at > > org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124) > > at > > org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92) > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo( > DefaultPluginManager.java:420) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals( > DefaultLifecycleExecutor.java:539) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle > (DefaultLifecycleExecutor.java:480) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > DefaultLifecycleExecutor.java:459) > > at > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > (DefaultLifecycleExecutor.java:311) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > DefaultLifecycleExecutor.java:278) > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute( > DefaultLifecycleExecutor.java:143) > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java > :330) > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123) > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > > sun.reflect.NativeMethodAccessorImpl.invoke( > NativeMethodAccessorImpl.java:39) > > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke( > DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:597) > > at > > org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) > > at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) > > at > > org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) > > at org.codehaus.classworlds.Launcher.main(Launcher.java:375) > > > > This is what there is in '.target/generated-site/xdoc/statscm/' folder: > > > > >ls -al target/generated-site/xdoc/statscm/ > > total 193 > > drwxr-xr-x 2 abel abel 528 2007-03-01 21:31 . > > drwxr-xr-x 4 abel abel 128 2007-03-01 21:28 .. > > -rw-r--r-- 1 abel abel 8014 2007-03-01 22:00 activity_day.png > > -rw-r--r-- 1 abel abel 4182 2007-03-01 22:00 activity.png > > -rw-r--r-- 1 abel abel 7359 2007-03-01 22:00 activity_time.png > > -rw-r--r-- 1 abel abel 774 2007-03-01 22:00 bug.png > > -rw-r--r-- 1 abel abel 6449 2007-03-01 22:00 commitscatterauthors.png > > -rw-r--r-- 1 abel abel 359 2007-03-01 22:00 file-deleted.png > > -rw-r--r-- 1 abel abel 341 2007-03-01 22:00 file.png > > -rw-r--r-- 1 abel abel 376 2007-03-01 22:00 folder-deleted.png > > -rw-r--r-- 1 abel abel 379 2007-03-01 22:00 folder.png > > -rw-r--r-- 1 abel abel 84815 2007-03-01 22:00 jtreemap-1.1.0.jar > > -rw-r--r-- 1 abel abel 16847 2007-03-01 22:00 locandchurn.png > > -rw-r--r-- 1 abel abel 14670 2007-03-01 22:00 loc.png > > -rw-r--r-- 1 abel abel 7452 2007-03-01 22:00 repomap-data.txt > > -rw-r--r-- 1 abel abel 7923 2007-03-01 22:00 scm.log > > -rw-r--r-- 1 abel abel 2930 2007-03-01 22:00 statcvs.css > > > > and this is what there is in './target/site/statscm/' folder: > > >ls -al target/site/statscm/ > > total 1 > > drwxr-xr-x 2 abel abel 80 2007-03-01 21:28 . > > drwxr-xr-x 10 abel abel 1144 2007-03-01 21:28 .. > > -rw-r--r-- 1 abel abel 0 2007-03-01 22:00 statscm.html > > > > > > Thanks in advance, > > Abel. > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share > > your > > opinions on IT & business topics through brief surveys-and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________ > > Stat-scm-user mailing list > > Sta...@li... > > https://lists.sourceforge.net/lists/listinfo/stat-scm-user > > > > > |