• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • maven-plugin
    • None
    • Jenkins 2.66
      Maven 3.5.0
      Maven-plugin 2.16
      Java Jdk 1.8.0 121

      I had initially reported an issue with Maven 3.3.9, that was fixed with a merge request, this time we upgraded to Maven 3.5.0 and we are presented the same type of issue

      I have seen Oleg reply pointing me to this patch but I don't think it is part of Maven-plugin 2.16 https://github.com/jenkinsci/maven-plugin/blob/master/src/main/java/hudson/maven/MavenBuild.java#L840-L847

      I can confirm else that setting up 2 version of Maven in Jenkins and switching from 3.5.0 to 3.3.9 fixes the issue.
      Established TCP socket on 38574
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Executing Maven: -N -B -s /home/jenkins/config/settings_maven_integration.xml -f /home/jenkins/workspace/SDR_TRUNK_TEST_INTEGRATION/outillage/tests-integration/tests-services/pom.xml clean deploy -Pjenkins,integration,integration-deploiements-services,tests-soapui,tests-soapui-services
      java.lang.NullPointerException
      at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
      at hudson.remoting.UserRequest.perform(UserRequest.java:153)
      at hudson.remoting.UserRequest.perform(UserRequest.java:50)
      at hudson.remoting.Request$2.run(Request.java:336)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Started by user ***
      Finished: ABORTED
      Set build name.

          [JENKINS-45060] NullPointerException in Maven33Main

          arnaud dovi added a comment - - edited

          I confirm fixed in the Maven plugin 2.17

          arnaud dovi added a comment - - edited I confirm fixed in the Maven plugin 2.17

          David Lakatos added a comment -

          I use Maven Plugin 2.17 hence the same problem occurred to me. I updated all plugins waiting for update (not the Maven Plugin), restarted Jenkins and now it's working again.

          David Lakatos added a comment - I use Maven Plugin 2.17 hence the same problem occurred to me. I updated all plugins waiting for update (not the Maven Plugin), restarted Jenkins and now it's working again.

          Ishaan Gupta added a comment - - edited

          Getting the following Error

          Established TCP socket on 35333
          <===[JENKINS REMOTING CAPACITY]===>channel started
          Executing Maven:  -N -B -s /var/lib/jenkins/workspace/settings.xml -f /var/lib/jenkins/workspace/ats/ats_model/pom.xml clean install -U -Dmaven.test.skip=true -P release
          java.lang.NullPointerException
          	at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:497)
          	at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
          	at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:207)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:53)
          	at hudson.remoting.Request$2.run(Request.java:358)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          	at java.lang.Thread.run(Thread.java:745)
          Started by upstream project "ATS Model Trunk" build number 18
          originally caused by:
           Started by user **
          Finished: ABORTED
          FATAL: java.lang.reflect.InvocationTargetException
          java.lang.NullPointerException
          	at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
          Caused: java.lang.Exception
          	at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:179)
          Caused: java.lang.reflect.InvocationTargetException
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          	at java.lang.reflect.Method.invoke(Method.java:497)
          	at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
          Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to Channel to Maven [/apps/sw/jdk1.8.0_60/bin/java, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12-alpha-1.jar:/apps/sw/apache-maven-3.5.2/boot/plexus-classworlds-2.5.2.jar:/apps/sw/apache-maven-3.5.2/conf/logging, jenkins.maven3.agent.Maven35Main, /apps/sw/apache-maven-3.5.2, /var/cache/jenkins/war/WEB-INF/lib/remoting-3.14.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12-alpha-1.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar, 35333]
          		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693)
          		at hudson.remoting.UserResponse.retrieve(UserRequest.java:310)
          		at hudson.remoting.Channel.call(Channel.java:908)
          		at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161)
          		at hudson.maven.MavenBuild$MavenBuildExecution.doRun(MavenBuild.java:912)
          		at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
          		at hudson.model.Run.execute(Run.java:1724)
          		at hudson.maven.MavenBuild.run(MavenBuild.java:275)
          		at hudson.model.ResourceController.execute(ResourceController.java:97)
          		at hudson.model.Executor.run(Executor.java:429)
          Caused: java.io.IOException
          	at hudson.maven.Maven3Builder.call(Maven3Builder.java:179)
          	at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:207)
          	at hudson.remoting.UserRequest.perform(UserRequest.java:53)
          	at hudson.remoting.Request$2.run(Request.java:358)
          	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          	at java.lang.Thread.run(Thread.java:745)
          Finished: FAILURE

          Created JIRA - JENKINS-49910

          Ishaan Gupta added a comment - - edited Getting the following Error Established TCP socket on 35333 <===[JENKINS REMOTING CAPACITY]===>channel started Executing Maven: -N -B -s /var/lib/jenkins/workspace/settings.xml -f /var/lib/jenkins/workspace/ats/ats_model/pom.xml clean install -U -Dmaven.test.skip=true -P release java.lang.NullPointerException at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:207) at hudson.remoting.UserRequest.perform(UserRequest.java:53) at hudson.remoting.Request$2.run(Request.java:358) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Started by upstream project "ATS Model Trunk" build number 18 originally caused by: Started by user ** Finished: ABORTED FATAL: java.lang.reflect.InvocationTargetException java.lang.NullPointerException at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) Caused: java.lang.Exception at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:179) Caused: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to Channel to Maven [/apps/sw/jdk1.8.0_60/bin/java, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-agent-1.12-alpha-1.jar:/apps/sw/apache-maven-3.5.2/boot/plexus-classworlds-2.5.2.jar:/apps/sw/apache-maven-3.5.2/conf/logging, jenkins.maven3.agent.Maven35Main, /apps/sw/apache-maven-3.5.2, /var/cache/jenkins/war/WEB-INF/lib/remoting-3.14.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven35-interceptor-1.12-alpha-1.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.12-alpha-1.jar, 35333] at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1693) at hudson.remoting.UserResponse.retrieve(UserRequest.java:310) at hudson.remoting.Channel.call(Channel.java:908) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) at hudson.maven.MavenBuild$MavenBuildExecution.doRun(MavenBuild.java:912) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1724) at hudson.maven.MavenBuild.run(MavenBuild.java:275) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429) Caused: java.io.IOException at hudson.maven.Maven3Builder.call(Maven3Builder.java:179) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:207) at hudson.remoting.UserRequest.perform(UserRequest.java:53) at hudson.remoting.Request$2.run(Request.java:358) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Finished: FAILURE Created JIRA - JENKINS-49910

          Tim Bartley added a comment -

          Seeing this with Maven plugin 3.1.2, Jenkins 2.128, Maven 3.5.2.

           

          ava.lang.NullPointerException
          at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:498)
          at hudson.maven.Maven3Builder.call(Maven3Builder.java:139)
          at hudson.maven.Maven3Builder.call(Maven3Builder.java:70)
          at hudson.remoting.UserRequest.perform(UserRequest.java:212)
          at hudson.remoting.UserRequest.perform(UserRequest.java:54)
          at hudson.remoting.Request$2.run(Request.java:369)
          at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)

          Tim Bartley added a comment - Seeing this with Maven plugin 3.1.2, Jenkins 2.128, Maven 3.5.2.   ava.lang.NullPointerException at jenkins.maven3.agent.Maven33Main.launch(Maven33Main.java:176) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.maven.Maven3Builder.call(Maven3Builder.java:139) at hudson.maven.Maven3Builder.call(Maven3Builder.java:70) at hudson.remoting.UserRequest.perform(UserRequest.java:212) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

          Oleg Nenashev added a comment -

          https://github.com/jenkinsci/maven-interceptors/blob/master/maven33-agent/src/main/java/jenkins/maven3/agent/Maven33Main.java#L176 . Launcher is not passed somehow, most likely the launcher initialization failed

           

           

          Oleg Nenashev added a comment - https://github.com/jenkinsci/maven-interceptors/blob/master/maven33-agent/src/main/java/jenkins/maven3/agent/Maven33Main.java#L176 . Launcher is not passed somehow, most likely the launcher initialization failed    

          Same situation here; Jenkins 2.150.2, Maven Plugin 2.2 Maven 3.6.0:

          Trying to use a special configuration for a single module which is part of a multi-module project - it does not build. The build of a multi-module itself works, the single module build does not. Running maven in a command line building the module works.

           

          Jessica-Aileen Alten added a comment - Same situation here; Jenkins 2.150.2, Maven Plugin 2.2 Maven 3.6.0: Trying to use a special configuration for a single module which is part of a multi-module project - it does not build. The build of a multi-module itself works, the single module build does not. Running maven in a command line building the module works.  

            Unassigned Unassigned
            adovi_accenture arnaud dovi
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: