• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Platform: All, OS: All

      I have a big maven 2 multi-project that fails at the end.

      I'm using Hudson ver. 1.189 (running under Java 1.5 and Tomcat 6), and Maven v.
      2.0.8

      Here is the stack trace:

      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] reporters.get(org.ecc.helios:helios-server)==null.
      reporters=

      {org.ecc.helios:helios-packaging-root=[hudson.maven.reporters.MavenMailer@1aa9b4d, hudson.plugins.findbugs.FindBugsReporter@1b9ef8c, hudson.maven.reporters.MavenArtifactArchiver@1e037a, hudson.maven.reporters.MavenFingerprinter@bbe73b, hudson.maven.reporters.MavenJavadocArchiver@766186, hudson.maven.reporters.SurefireArchiver@1fcabd4, hudson.maven.reporters.BuildInfoRecorder@1752bea]}

      proxies=

      {org.ecc.helios:helios-packaging-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1963c81}

      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.AssertionError: reporters.get(org.ecc.helios:helios-server)==null.
      reporters=

      {org.ecc.helios:helios-packaging-root=[hudson.maven.reporters.MavenMailer@1aa9b4d, hudson.plugins.findbugs.FindBugsReporter@1b9ef8c, hudson.maven.reporters.MavenArtifactArchiver@1e037a, hudson.maven.reporters.MavenFingerprinter@bbe73b, hudson.maven.reporters.MavenJavadocArchiver@766186, hudson.maven.reporters.SurefireArchiver@1fcabd4, hudson.maven.reporters.BuildInfoRecorder@1752bea]}

      proxies=

      {org.ecc.helios:helios-packaging-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1963c81}

      at
      hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:488)
      at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:261)
      at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:225)
      at
      org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:45)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
      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:585)
      at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      at hudson.maven.agent.Main.launch(Main.java:97)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:129)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:458)
      at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:404)
      at hudson.remoting.UserRequest.perform(UserRequest.java:69)
      at hudson.remoting.UserRequest.perform(UserRequest.java:23)
      at hudson.remoting.Request$2.run(Request.java:200)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
      at java.util.concurrent.FutureTask.run(FutureTask.java:123)
      at
      java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
      at java.lang.Thread.run(Thread.java:595)

        1. hudson-assertionError-test.zip
          5 kB
        2. backlog.txt
          0.4 kB
        3. log.txt
          56 kB

          [JENKINS-1454] Maven2: AssertionError: reporters.get == null

          Elifarley created issue -

          Elifarley added a comment -

          Note: running mvn from the command line works fine.

          Elifarley added a comment - Note: running mvn from the command line works fine.

          Elifarley added a comment -

          Created an attachment (id=196)
          A Maven2 project that triggers the 'assertionError' bug

          Elifarley added a comment - Created an attachment (id=196) A Maven2 project that triggers the 'assertionError' bug

          Elifarley added a comment -

          I've just attached a Maven2 project that triggers the assertion error.

          This project shows an error that occurs if a module is included by a profile
          that was activated by a property.

          To see the error, create a new Maven2 job in Hudson configured like this:

          Root POM: hudson-assertionError-test/pom.xml
          Goals : install -X -Dinclude-optional

          (Or just copy the job configuration file from
          'hudson-assertionError-test.zip/hudson-assertionError-test/hudson-job-config/config.xml')

          When you tell Hudson to build it, this error will be printed:


          started
          Parsing POMs
          [hudson-assertionError-test] $ java -cp
          E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\maven-agent-1.199.jar;E:\apps\apache-maven-2.0.8\boot\classworlds-1.1.jar
          hudson.maven.agent.Main E:\apps\apache-maven-2.0.8
          E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\remoting-1.199.jar
          E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\maven-interceptor-1.199.jar
          ???channel started
          + Error stacktraces are turned on.
          Maven version: 2.0.8
          Java version: 1.5.0_07
          OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

          [...]

          [INFO] ------------------------------------------------------------------------
          [INFO] Building module 2 (OPTIONAL)
          [INFO] task-segment: [install]
          [INFO] ------------------------------------------------------------------------
          [DEBUG] Configuring mojo
          'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' -->
          [INFO] ------------------------------------------------------------------------
          [ERROR] FATAL ERROR
          [INFO] ------------------------------------------------------------------------
          [INFO]
          reporters.get(com.orgecc.test.hudson:hudson-assertionError-test-module-2)==null.
          reporters=

          {com.orgecc.test.hudson:hudson-assertionError-test-root=[hudson.maven.reporters.MavenArtifactArchiver@d1223d, hudson.maven.reporters.MavenFingerprinter@1ee8c1, hudson.maven.reporters.MavenJavadocArchiver@142db11, hudson.maven.reporters.SurefireArchiver@3c4c33, hudson.maven.reporters.BuildInfoRecorder@aecd51], com.orgecc.test.hudson:hudson-assertionError-test-module-1=[hudson.maven.reporters.MavenArtifactArchiver@fcfd10, hudson.maven.reporters.MavenFingerprinter@ae735, hudson.maven.reporters.MavenJavadocArchiver@29b99c, hudson.maven.reporters.SurefireArchiver@158bc22, hudson.maven.reporters.BuildInfoRecorder@3ac11b]}

          proxies=

          {com.orgecc.test.hudson:hudson-assertionError-test-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@a76306, com.orgecc.test.hudson:hudson-assertionError-test-module-1=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1563e06}

          [INFO] ------------------------------------------------------------------------
          [DEBUG] Trace
          java.lang.AssertionError:
          reporters.get(com.orgecc.test.hudson:hudson-assertionError-test-module-2)==null.
          reporters=

          {com.orgecc.test.hudson:hudson-assertionError-test-root=[hudson.maven.reporters.MavenArtifactArchiver@d1223d, hudson.maven.reporters.MavenFingerprinter@1ee8c1, hudson.maven.reporters.MavenJavadocArchiver@142db11, hudson.maven.reporters.SurefireArchiver@3c4c33, hudson.maven.reporters.BuildInfoRecorder@aecd51], com.orgecc.test.hudson:hudson-assertionError-test-module-1=[hudson.maven.reporters.MavenArtifactArchiver@fcfd10, hudson.maven.reporters.MavenFingerprinter@ae735, hudson.maven.reporters.MavenJavadocArchiver@29b99c, hudson.maven.reporters.SurefireArchiver@158bc22, hudson.maven.reporters.BuildInfoRecorder@3ac11b]}

          proxies=

          {com.orgecc.test.hudson:hudson-assertionError-test-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@a76306, com.orgecc.test.hudson:hudson-assertionError-test-module-1=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1563e06}

          at
          hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:506)
          at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:261)
          at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:225)
          at
          org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:45)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
          at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
          at hudson.maven.agent.Main.launch(Main.java:97)
          at hudson.maven.MavenBuilder.call(MavenBuilder.java:129)
          at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:476)
          at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:422)
          at hudson.remoting.UserRequest.perform(UserRequest.java:69)
          at hudson.remoting.UserRequest.perform(UserRequest.java:23)
          at hudson.remoting.Request$2.run(Request.java:200)
          at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
          at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
          at java.util.concurrent.FutureTask.run(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)
          [INFO] ------------------------------------------------------------------------

          Elifarley added a comment - I've just attached a Maven2 project that triggers the assertion error. This project shows an error that occurs if a module is included by a profile that was activated by a property. To see the error, create a new Maven2 job in Hudson configured like this: Root POM: hudson-assertionError-test/pom.xml Goals : install -X -Dinclude-optional (Or just copy the job configuration file from 'hudson-assertionError-test.zip/hudson-assertionError-test/hudson-job-config/config.xml') When you tell Hudson to build it, this error will be printed: – started Parsing POMs [hudson-assertionError-test] $ java -cp E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\maven-agent-1.199.jar;E:\apps\apache-maven-2.0.8\boot\classworlds-1.1.jar hudson.maven.agent.Main E:\apps\apache-maven-2.0.8 E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\remoting-1.199.jar E:\apps\apache-tomcat-6.0.16\webapps\hudson\WEB-INF\lib\maven-interceptor-1.199.jar ???channel started + Error stacktraces are turned on. Maven version: 2.0.8 Java version: 1.5.0_07 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" [...] [INFO] ------------------------------------------------------------------------ [INFO] Building module 2 (OPTIONAL) [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-resources-plugin:2.2:resources' --> [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] reporters.get(com.orgecc.test.hudson:hudson-assertionError-test-module-2)==null. reporters= {com.orgecc.test.hudson:hudson-assertionError-test-root=[hudson.maven.reporters.MavenArtifactArchiver@d1223d, hudson.maven.reporters.MavenFingerprinter@1ee8c1, hudson.maven.reporters.MavenJavadocArchiver@142db11, hudson.maven.reporters.SurefireArchiver@3c4c33, hudson.maven.reporters.BuildInfoRecorder@aecd51], com.orgecc.test.hudson:hudson-assertionError-test-module-1=[hudson.maven.reporters.MavenArtifactArchiver@fcfd10, hudson.maven.reporters.MavenFingerprinter@ae735, hudson.maven.reporters.MavenJavadocArchiver@29b99c, hudson.maven.reporters.SurefireArchiver@158bc22, hudson.maven.reporters.BuildInfoRecorder@3ac11b]} proxies= {com.orgecc.test.hudson:hudson-assertionError-test-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@a76306, com.orgecc.test.hudson:hudson-assertionError-test-module-1=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1563e06} [INFO] ------------------------------------------------------------------------ [DEBUG] Trace java.lang.AssertionError: reporters.get(com.orgecc.test.hudson:hudson-assertionError-test-module-2)==null. reporters= {com.orgecc.test.hudson:hudson-assertionError-test-root=[hudson.maven.reporters.MavenArtifactArchiver@d1223d, hudson.maven.reporters.MavenFingerprinter@1ee8c1, hudson.maven.reporters.MavenJavadocArchiver@142db11, hudson.maven.reporters.SurefireArchiver@3c4c33, hudson.maven.reporters.BuildInfoRecorder@aecd51], com.orgecc.test.hudson:hudson-assertionError-test-module-1=[hudson.maven.reporters.MavenArtifactArchiver@fcfd10, hudson.maven.reporters.MavenFingerprinter@ae735, hudson.maven.reporters.MavenJavadocArchiver@29b99c, hudson.maven.reporters.SurefireArchiver@158bc22, hudson.maven.reporters.BuildInfoRecorder@3ac11b]} proxies= {com.orgecc.test.hudson:hudson-assertionError-test-root=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@a76306, com.orgecc.test.hudson:hudson-assertionError-test-module-1=hudson.maven.MavenModuleSetBuild$Builder$FilterImpl@1563e06} at hudson.maven.MavenModuleSetBuild$Builder.postModule(MavenModuleSetBuild.java:506) at hudson.maven.MavenBuilder$Adapter.fireLeaveModule(MavenBuilder.java:261) at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:225) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:45) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at hudson.maven.agent.Main.launch(Main.java:97) at hudson.maven.MavenBuilder.call(MavenBuilder.java:129) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:476) at hudson.maven.MavenModuleSetBuild$Builder.call(MavenModuleSetBuild.java:422) at hudson.remoting.UserRequest.perform(UserRequest.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:23) at hudson.remoting.Request$2.run(Request.java:200) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) [INFO] ------------------------------------------------------------------------ –

          manuel_siggen added a comment -

          I can confirm the problem exactly as described above. As a workaround, I've
          added by hand the required modules (as opposed to include them using a profile)
          in the local svn checkout.

          manuel_siggen added a comment - I can confirm the problem exactly as described above. As a workaround, I've added by hand the required modules (as opposed to include them using a profile) in the local svn checkout.

          mdonohue added a comment -

          Update the summary to clarify that this problem is specific to Maven2 jobs

          mdonohue added a comment - Update the summary to clarify that this problem is specific to Maven2 jobs

          dhouthoo added a comment -

          This error occurs because the hudson parsing of the goals configuration option
          is not as complete as the maven CLI. For example: "-Pprofilename" does not work
          but "-P profilename" does work while on the CLI both work.

          dhouthoo added a comment - This error occurs because the hudson parsing of the goals configuration option is not as complete as the maven CLI. For example: "-Pprofilename" does not work but "-P profilename" does work while on the CLI both work.

          Elifarley added a comment -

          This issue is related to issue #906. Maybe #906 should be reopened.

          Elifarley added a comment - This issue is related to issue #906. Maybe #906 should be reopened.
          Elifarley made changes -
          Link New: This issue depends on JENKINS-906 [ JENKINS-906 ]

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/src/main/java/hudson/maven/MavenModuleSet.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=15165
          Log:
          JENKINS-1454 Improved the CLI option parsing to recognize "-Px,y,z" as profiles. This will be in 1.283.

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/src/main/java/hudson/maven/MavenModuleSet.java http://fisheye4.cenqua.com/changelog/hudson/?cs=15165 Log: JENKINS-1454 Improved the CLI option parsing to recognize "-Px,y,z" as profiles. This will be in 1.283.

            Unassigned Unassigned
            elifarley Elifarley
            Votes:
            9 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: