Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15865

Jenkins build fails with fatal error for Maven 2 build of project with maven-failsafe-plugin

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Linux 2.6.38-16-generic #67-Ubuntu SMP Thu Sep 6 17:58:38 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
      Ubuntu 11.04
      Maven 2.2.1
      Jenkins 1.491
    • Similar Issues:

      Description

      Jenkins build fails with "[ERROR] FATAL ERROR" if you build a Maven 2 project that uses maven-failsafe-plugin.

      Steps to reproduce:
      1. Create a new job in Jenkins
      2. Specify Maven2/3 job
      3. Choose Git in source code management
      4. Specify https://github.com/ahjones/broken-failsafe-maven as the repo
      5. Choose Maven 2.2.1 as the Maven version.
      6. Save the build
      7. Click build.

      Expected behaviour:
      The build completes

      Actual behaviour:
      The build doesn't complete. The relevant portion of the console output is:

      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.NullPointerException
      at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
      at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
      at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
      at hudson.maven.agent.ComponentConfiguratorFilter.configureComponent(ComponentConfiguratorFilter.java:49)
      at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:146)
      at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
      at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
      at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
      at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      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:185)
      at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
      at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
      at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
      at hudson.remoting.UserRequest.perform(UserRequest.java:118)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:326)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:722)

      I'll attach a copy of the source.

      This was introduced fairly recently: I update Jenkins often.

        Attachments

          Issue Links

            Activity

            Hide
            t33k4_xc3 Thomas Kallenberg added a comment -

            We have exactly the same problem. Our every build fails with the same stacktrace at the end of the build:

            [INFO] ------------------------------------------------------------------------
            [ERROR] FATAL ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] null
            [INFO] ------------------------------------------------------------------------
            [INFO] Trace
            java.lang.NullPointerException
            at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
            at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
            at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
            at hudson.maven.agent.ComponentConfiguratorFilter.configureComponent(ComponentConfiguratorFilter.java:49)
            at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:146)
            at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
            at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
            at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
            at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
            at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
            at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
            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 hudson.maven.agent.Main.launch(Main.java:185)
            at hudson.maven.MavenBuilder.call(MavenBuilder.java:151)
            at hudson.maven.Maven2Builder.call(Maven2Builder.java:77)
            at hudson.maven.Maven2Builder.call(Maven2Builder.java:53)
            at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            at hudson.remoting.Request$2.run(Request.java:326)
            at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
            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)

            Show
            t33k4_xc3 Thomas Kallenberg added a comment - We have exactly the same problem. Our every build fails with the same stacktrace at the end of the build: [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137) at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56) at hudson.maven.agent.ComponentConfiguratorFilter.configureComponent(ComponentConfiguratorFilter.java:49) at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:146) at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) 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 hudson.maven.agent.Main.launch(Main.java:185) at hudson.maven.MavenBuilder.call(MavenBuilder.java:151) at hudson.maven.Maven2Builder.call(Maven2Builder.java:77) at hudson.maven.Maven2Builder.call(Maven2Builder.java:53) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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)
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Vincent Latombe
            Path:
            changelog.html
            maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
            http://jenkins-ci.org/commit/jenkins/7fb1ad44d5aa26f2b0c6717c589b6d2be698224d
            Log:
            JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build
            of project with maven-failsafe-plugin

            Do not inject testFailureIgnore to
            maven-failsafe-plugin:integration-test because it doesn't exist and
            causes an NPE with Maven2.
            Only insert it for maven-failsafe-plugin:verify.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: changelog.html maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/jenkins/7fb1ad44d5aa26f2b0c6717c589b6d2be698224d Log: JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build of project with maven-failsafe-plugin Do not inject testFailureIgnore to maven-failsafe-plugin:integration-test because it doesn't exist and causes an NPE with Maven2. Only insert it for maven-failsafe-plugin:verify.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            changelog.html
            maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
            http://jenkins-ci.org/commit/jenkins/921d85f24973ace266686d47449fed1bc74130aa
            Log:
            Merge pull request #624 from Vlatombe/JENKINS-15865

            JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build
            Thanks

            Compare: https://github.com/jenkinsci/jenkins/compare/8167710202f7...921d85f24973

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: changelog.html maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/jenkins/921d85f24973ace266686d47449fed1bc74130aa Log: Merge pull request #624 from Vlatombe/ JENKINS-15865 JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build Thanks Compare: https://github.com/jenkinsci/jenkins/compare/8167710202f7...921d85f24973
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2088
            JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build (Revision 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d)

            Result = SUCCESS
            Vincent Latombe : 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d
            Files :

            • maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java
            • changelog.html
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2088 JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build (Revision 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d) Result = SUCCESS Vincent Latombe : 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d Files : maven-plugin/src/main/java/hudson/maven/reporters/SurefireArchiver.java changelog.html
            Hide
            yvesdm Yves DM added a comment -

            Status update of this issue required : According to the changelog http://jenkins-ci.org/changelog, it should be fixed in 1.492

            Show
            yvesdm Yves DM added a comment - Status update of this issue required : According to the changelog http://jenkins-ci.org/changelog , it should be fixed in 1.492
            Hide
            gcummings Geoff Cummings added a comment -

            Getting this error again after upgrading to 1.503

            Wondering if it may be related to this change:
            https://github.com/jenkinsci/jenkins/commit/954a368c5612b7d7e7619277aca420c7c4930517

            Show
            gcummings Geoff Cummings added a comment - Getting this error again after upgrading to 1.503 Wondering if it may be related to this change: https://github.com/jenkinsci/jenkins/commit/954a368c5612b7d7e7619277aca420c7c4930517
            Hide
            kutzi kutzi added a comment -

            Geoff: you're getting the exact same error message? If not, what do you see?

            Show
            kutzi kutzi added a comment - Geoff: you're getting the exact same error message? If not, what do you see?
            Hide
            gcummings Geoff Cummings added a comment -

            Hi Kutzi,

            Not been able to see if it is caused by your change, but it looked slightly related to what is mentioned in the following commit message:
            https://github.com/jenkinsci/jenkins/commit/7fb1ad44d5aa26f2b0c6717c589b6d2be698224d

            Dont know enough about how this all works yet!!

            [INFO] ------------------------------------------------------------------------
            [ERROR] FATAL ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] null
            [INFO] ------------------------------------------------------------------------
            [INFO] Trace
            java.lang.NullPointerException
            	at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247)
            	at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
            	at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
            	at hudson.maven.agent.ComponentConfiguratorFilter.configureComponent(ComponentConfiguratorFilter.java:49)
            	at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:146)
            	at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
            	at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
            	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
            	at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
            	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
            	at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65)
            	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
            	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
            	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
            	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 hudson.maven.agent.Main.launch(Main.java:185)
            	at hudson.maven.MavenBuilder.call(MavenBuilder.java:154)
            	at hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
            	at hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
            	at hudson.remoting.UserRequest.perform(UserRequest.java:118)
            	at hudson.remoting.UserRequest.perform(UserRequest.java:48)
            	at hudson.remoting.Request$2.run(Request.java:326)
            	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
            	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)
            

            I think it looks identical, apart from some line numbers slightly different in some lines at the bottom of the stack track

            at hudson.maven.MavenBuilder.call(MavenBuilder.java:154)
            at hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
            at hudson.maven.Maven2Builder.call(Maven2Builder.java:55)

            Show
            gcummings Geoff Cummings added a comment - Hi Kutzi, Not been able to see if it is caused by your change, but it looked slightly related to what is mentioned in the following commit message: https://github.com/jenkinsci/jenkins/commit/7fb1ad44d5aa26f2b0c6717c589b6d2be698224d Dont know enough about how this all works yet!! [INFO] ------------------------------------------------------------------------ [ERROR] FATAL ERROR [INFO] ------------------------------------------------------------------------ [INFO] null [INFO] ------------------------------------------------------------------------ [INFO] Trace java.lang.NullPointerException at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:247) at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137) at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56) at hudson.maven.agent.ComponentConfiguratorFilter.configureComponent(ComponentConfiguratorFilter.java:49) at hudson.maven.agent.PluginManagerInterceptor$MojoIntercepter.configureComponent(PluginManagerInterceptor.java:146) at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357) at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468) at hudson.maven.agent.PluginManagerInterceptor.executeMojo(PluginManagerInterceptor.java:182) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180) at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute(LifecycleExecutorInterceptor.java:65) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138) at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) 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 hudson.maven.agent.Main.launch(Main.java:185) at hudson.maven.MavenBuilder.call(MavenBuilder.java:154) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) 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) I think it looks identical, apart from some line numbers slightly different in some lines at the bottom of the stack track at hudson.maven.MavenBuilder.call(MavenBuilder.java:154) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
            Hide
            gcummings Geoff Cummings added a comment -

            I have retested using the steps mentioned above using https://github.com/ahjones/broken-failsafe-maven
            I received the same error.

            Show
            gcummings Geoff Cummings added a comment - I have retested using the steps mentioned above using https://github.com/ahjones/broken-failsafe-maven I received the same error.
            Hide
            kutzi kutzi added a comment - - edited

            Geoff: cannot reproduce it with the current HEAD version, so I guess this was fixed with JENKINS-16928, too. Included in Jenkins 1.504

            Show
            kutzi kutzi added a comment - - edited Geoff: cannot reproduce it with the current HEAD version, so I guess this was fixed with JENKINS-16928 , too. Included in Jenkins 1.504
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            test/src/test/java/hudson/maven/MavenBuildTest.java
            test/src/test/resources/hudson/maven/JENKINS-15865.zip
            http://jenkins-ci.org/commit/jenkins/5aef97cebcda2124074d29fde6f62b48cb77e135
            Log:
            Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865


            You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
            To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
            For more options, visit https://groups.google.com/groups/opt_out.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: test/src/test/java/hudson/maven/MavenBuildTest.java test/src/test/resources/hudson/maven/ JENKINS-15865 .zip http://jenkins-ci.org/commit/jenkins/5aef97cebcda2124074d29fde6f62b48cb77e135 Log: Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865 – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #2326
            Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865 (Revision 5aef97cebcda2124074d29fde6f62b48cb77e135)

            Result = SUCCESS
            Christoph Kutzinski : 5aef97cebcda2124074d29fde6f62b48cb77e135
            Files :

            • test/src/test/resources/hudson/maven/JENKINS-15865.zip
            • test/src/test/java/hudson/maven/MavenBuildTest.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #2326 Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865 (Revision 5aef97cebcda2124074d29fde6f62b48cb77e135) Result = SUCCESS Christoph Kutzinski : 5aef97cebcda2124074d29fde6f62b48cb77e135 Files : test/src/test/resources/hudson/maven/ JENKINS-15865 .zip test/src/test/java/hudson/maven/MavenBuildTest.java
            Hide
            gcummings Geoff Cummings added a comment -

            Thanks for looking into it Kutzi.
            It is fixed in 1.504

            Show
            gcummings Geoff Cummings added a comment - Thanks for looking into it Kutzi. It is fixed in 1.504
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Vincent Latombe
            Path:
            src/main/java/hudson/maven/reporters/SurefireArchiver.java
            http://jenkins-ci.org/commit/maven-plugin/0a1f30181ef06745abfbc2ab5b90c4001f86aa10
            Log:
            JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build
            of project with maven-failsafe-plugin

            Do not inject testFailureIgnore to
            maven-failsafe-plugin:integration-test because it doesn't exist and
            causes an NPE with Maven2.
            Only insert it for maven-failsafe-plugin:verify.
            Originally-Committed-As: 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/maven/reporters/SurefireArchiver.java http://jenkins-ci.org/commit/maven-plugin/0a1f30181ef06745abfbc2ab5b90c4001f86aa10 Log: JENKINS-15865 Jenkins build fails with fatal error for Maven 2 build of project with maven-failsafe-plugin Do not inject testFailureIgnore to maven-failsafe-plugin:integration-test because it doesn't exist and causes an NPE with Maven2. Only insert it for maven-failsafe-plugin:verify. Originally-Committed-As: 7fb1ad44d5aa26f2b0c6717c589b6d2be698224d
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Christoph Kutzinski
            Path:
            test/src/test/java/hudson/maven/MavenBuildTest.java
            test/src/test/resources/hudson/maven/JENKINS-15865.zip
            http://jenkins-ci.org/commit/maven-plugin/bd4a5ae9beb93865f825b6801fdfbf94dcddc364
            Log:
            Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: test/src/test/java/hudson/maven/MavenBuildTest.java test/src/test/resources/hudson/maven/ JENKINS-15865 .zip http://jenkins-ci.org/commit/maven-plugin/bd4a5ae9beb93865f825b6801fdfbf94dcddc364 Log: Added regression test for broken Maven 2 builds with maven-failsafe-plugin JENKINS-15865

              People

              Assignee:
              kutzi kutzi
              Reporter:
              a4j Andrew Jones
              Votes:
              2 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: