• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None

      when building a single module the following exception is thrown
      when building the complete project (from the root) no exception is thrown.

      ...
      [INFO] Cobertura Report generation was successful.
      [INFO] Generating "Project License" report.
      [INFO] Generating "Source Xref" report.
      log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
      log4j:WARN Please initialize the log4j system properly.
      [PMD] Successfully parsed file /var/hudson/workspace/Security/core/target/pmd.xml of module Security core implementation with 403 warnings.
      [CHECKSTYLE] Successfully parsed file /var/hudson/workspace/Security/core/target/checkstyle-result.xml of module Security core implementation with 1525 warnings.
      [HUDSON] Archiving /var/hudson/workspace/Security/core/pom.xml to /var/lib/hudson/jobs/Security/modules/it.bz.prov.egov.factory.security$core/builds/2010-09-24_10-28-48/archive/it.bz.prov.egov.factory.security/core/4.0.4-SNAPSHOT/pom.xml
      [HUDSON] Archiving /var/hudson/workspace/Security/core/target/core-4.0.4-SNAPSHOT.jar to /var/lib/hudson/jobs/Security/modules/it.bz.prov.egov.factory.security$core/builds/2010-09-24_10-28-48/archive/it.bz.prov.egov.factory.security/core/4.0.4-20100924.082930-2/core-4.0.4-SNAPSHOT.jar
      [HUDSON] Archiving /var/hudson/workspace/Security/core/target/core-4.0.4-SNAPSHOT-sources.jar to /var/lib/hudson/jobs/Security/modules/it.bz.prov.egov.factory.security$core/builds/2010-09-24_10-28-48/archive/it.bz.prov.egov.factory.security/core/4.0.4-20100924.082930-2/core-4.0.4-SNAPSHOT-sources.jar
      [HUDSON] Archiving /var/hudson/workspace/Security/core/target/core-4.0.4-SNAPSHOT-tests.jar to /var/lib/hudson/jobs/Security/modules/it.bz.prov.egov.factory.security$core/builds/2010-09-24_10-28-48/archive/it.bz.prov.egov.factory.security/core/4.0.4-20100924.082930-2/core-4.0.4-SNAPSHOT-tests.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109)
      at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106)
      at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:341)
      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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)

          [JENKINS-7577] NullPointerException in maven site archiver

          I've also experienced this in Hudson 1.377

          viggonavarsete added a comment - I've also experienced this in Hudson 1.377

          Jakub Białek added a comment -

          This issue is still in Jenkins 1.413

          Jakub Białek added a comment - This issue is still in Jenkins 1.413

          kutzi added a comment -

          Do you have the current stack trace - because the line numbers don't match anymore?

          Also, it would be good if you have a minimal test project to reproduce the problem.

          kutzi added a comment - Do you have the current stack trace - because the line numbers don't match anymore? Also, it would be good if you have a minimal test project to reproduce the problem.

          Jakub Białek added a comment -

          Stack trace:

          [INFO] Trace
          java.lang.NullPointerException
          	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109)
          	at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106)
          	at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396)
          	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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274)
          	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255)
          	at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
          	at hudson.remoting.Request$2.run(Request.java:270)
          	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
          	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
          	at java.lang.Thread.run(Thread.java:662)
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 4 minutes 42 seconds
          [INFO] Finished at: Thu Jun 02 09:39:34 CEST 2011
          [INFO] Final Memory: 130M/1142M
          [INFO] ------------------------------------------------------------------------
          Waiting for Jenkins to finish collecting data
          FATAL: null
          java.lang.NullPointerException
          	at hudson.plugins.analysis.core.HealthAwareReporter.end(HealthAwareReporter.java:281)
          	at hudson.maven.MavenBuild$RunnerImpl.post2(MavenBuild.java:706)
          	at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585)
          	at hudson.model.Run.run(Run.java:1398)
          	at hudson.maven.MavenBuild.run(MavenBuild.java:242)
          	at hudson.model.ResourceController.execute(ResourceController.java:88)
          	at hudson.model.Executor.run(Executor.java:145)
          

          Jakub Białek added a comment - Stack trace: [INFO] Trace java.lang.NullPointerException at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:109) at hudson.maven.reporters.MavenSiteArchiver$1.call(MavenSiteArchiver.java:106) at hudson.maven.MavenBuild$ProxyImpl.execute(MavenBuild.java:396) 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 hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:274) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:255) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:215) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:270) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang. Thread .run( Thread .java:662) [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4 minutes 42 seconds [INFO] Finished at: Thu Jun 02 09:39:34 CEST 2011 [INFO] Final Memory: 130M/1142M [INFO] ------------------------------------------------------------------------ Waiting for Jenkins to finish collecting data FATAL: null java.lang.NullPointerException at hudson.plugins.analysis.core.HealthAwareReporter.end(HealthAwareReporter.java:281) at hudson.maven.MavenBuild$RunnerImpl.post2(MavenBuild.java:706) at hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:585) at hudson.model.Run.run(Run.java:1398) at hudson.maven.MavenBuild.run(MavenBuild.java:242) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145)

          dogfood added a comment -

          Integrated in jenkins_main_trunk #865
          [FIXED JENKINS-7577] NPE in site generation when building a single Maven module

          Christoph Kutzinski : 5f53febe9ba27de3f97ecde5552f905250183584
          Files :

          • maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java
          • changelog.html
          • test/src/test/java/hudson/maven/MavenProjectTest.java

          dogfood added a comment - Integrated in jenkins_main_trunk #865 [FIXED JENKINS-7577] NPE in site generation when building a single Maven module Christoph Kutzinski : 5f53febe9ba27de3f97ecde5552f905250183584 Files : maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java changelog.html test/src/test/java/hudson/maven/MavenProjectTest.java

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java
          test/src/test/java/hudson/maven/MavenProjectTest.java
          http://jenkins-ci.org/commit/jenkins/5f53febe9ba27de3f97ecde5552f905250183584
          Log:
          [FIXED JENKINS-7577] NPE in site generation when building a single Maven module

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java test/src/test/java/hudson/maven/MavenProjectTest.java http://jenkins-ci.org/commit/jenkins/5f53febe9ba27de3f97ecde5552f905250183584 Log: [FIXED JENKINS-7577] NPE in site generation when building a single Maven module

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java
          test/src/test/java/hudson/maven/MavenProjectTest.java
          http://jenkins-ci.org/commit/jenkins/5f53febe9ba27de3f97ecde5552f905250183584
          Log:
          [FIXED JENKINS-7577] NPE in site generation when building a single Maven module

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: changelog.html maven-plugin/src/main/java/hudson/maven/reporters/MavenSiteArchiver.java test/src/test/java/hudson/maven/MavenProjectTest.java http://jenkins-ci.org/commit/jenkins/5f53febe9ba27de3f97ecde5552f905250183584 Log: [FIXED JENKINS-7577] NPE in site generation when building a single Maven module

          Code changed in jenkins
          User: Christoph Kutzinski
          Path:
          src/main/java/hudson/maven/reporters/MavenSiteArchiver.java
          http://jenkins-ci.org/commit/maven-plugin/554830a296a8d7c2eeadfe3719c21ca8e945d4a8
          Log:
          [FIXED JENKINS-7577] NPE in site generation when building a single Maven module
          Originally-Committed-As: 5f53febe9ba27de3f97ecde5552f905250183584

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/reporters/MavenSiteArchiver.java http://jenkins-ci.org/commit/maven-plugin/554830a296a8d7c2eeadfe3719c21ca8e945d4a8 Log: [FIXED JENKINS-7577] NPE in site generation when building a single Maven module Originally-Committed-As: 5f53febe9ba27de3f97ecde5552f905250183584

            kutzi kutzi
            lucadistefano lucadistefano
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: