hudson.util.IOException2: java.lang.reflect.InvocationTargetException

Jenkins JIRA | Ashley Mercer | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Jenkins: 1.544 (installed as RPM) maven-integration-plugin: 2.1 We are using the maven installations downloaded automatically from Apache. Steps to reproduce: - configure a simple maven build (the size of the project doesn't seem to matter, we see this with both single module, and multi-module reactor) - set Build > Maven Version to a maven 3 installation - set Build > Goals and options to "--version" We see the following output (the version information is correctly printed, but jenkins then errors): {code} maven31-agent.jar already up to date maven31-interceptor.jar already up to date maven3-interceptor-commons.jar already up to date [ashley-test-maven] $ java -Xmx1g -XX:MaxPermSize=256m -cp /var/lib/jenkins_slave/maven31-agent.jar:/var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1/boot/plexus-classworlds-2.5.1.jar:/var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1/conf/logging jenkins.maven3.agent.Maven31Main /var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1 /var/lib/jenkins_slave/slave.jar /var/lib/jenkins_slave/maven31-interceptor.jar /var/lib/jenkins_slave/maven3-interceptor-commons.jar 35328 <===[JENKINS REMOTING CAPACITY]===>channel started log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Executing Maven: -B -f /var/lib/jenkins_slave/workspace/ashley-test-maven/pom.xml --version Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 16:22:22+0100) Maven home: /var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1 Java version: 1.6.0_25, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.25.x86_64/jre Default locale: en_GB, platform encoding: ISO-8859-1 OS name: "linux", version: "2.6.18-308.8.2.el5", arch: "amd64", family: "unix" java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) 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.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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) Caused by: org.apache.maven.cli.MavenExecutionRequestsBuilderException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:192) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:130) ... 22 more Caused by: org.apache.maven.cli.DefaultMavenExecutionRequestBuilder$ExitException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli(DefaultMavenExecutionRequestBuilder.java:247) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:164) ... 24 more channel stopped ERROR: Failed to parse POMs hudson.util.IOException2: java.lang.reflect.InvocationTargetException at hudson.maven.Maven3Builder.call(Maven3Builder.java:178) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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) Caused by: java.lang.reflect.InvocationTargetException 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.maven.Maven3Builder.call(Maven3Builder.java:134) ... 10 more Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:184) ... 15 more Caused by: java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) ... 15 more Caused by: org.apache.maven.cli.MavenExecutionRequestsBuilderException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:192) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:130) ... 22 more Caused by: org.apache.maven.cli.DefaultMavenExecutionRequestBuilder$ExitException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli(DefaultMavenExecutionRequestBuilder.java:247) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:164) ... 24 more Finished: FAILURE {code} If instead Build > Maven Version is set to a Maven 2 installation, the version information is printed and the build exits successfully. From the command line, "mvn --version" works correctly with both the maven 2 and maven 3 installations.

    Jenkins JIRA | 3 years ago | Ashley Mercer
    hudson.util.IOException2: java.lang.reflect.InvocationTargetException
  2. 0

    Jenkins: 1.544 (installed as RPM) maven-integration-plugin: 2.1 We are using the maven installations downloaded automatically from Apache. Steps to reproduce: - configure a simple maven build (the size of the project doesn't seem to matter, we see this with both single module, and multi-module reactor) - set Build > Maven Version to a maven 3 installation - set Build > Goals and options to "--version" We see the following output (the version information is correctly printed, but jenkins then errors): {code} maven31-agent.jar already up to date maven31-interceptor.jar already up to date maven3-interceptor-commons.jar already up to date [ashley-test-maven] $ java -Xmx1g -XX:MaxPermSize=256m -cp /var/lib/jenkins_slave/maven31-agent.jar:/var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1/boot/plexus-classworlds-2.5.1.jar:/var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1/conf/logging jenkins.maven3.agent.Maven31Main /var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1 /var/lib/jenkins_slave/slave.jar /var/lib/jenkins_slave/maven31-interceptor.jar /var/lib/jenkins_slave/maven3-interceptor-commons.jar 35328 <===[JENKINS REMOTING CAPACITY]===>channel started log4j:WARN No appenders could be found for logger (org.apache.commons.beanutils.converters.BooleanConverter). log4j:WARN Please initialize the log4j system properly. Executing Maven: -B -f /var/lib/jenkins_slave/workspace/ashley-test-maven/pom.xml --version Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 16:22:22+0100) Maven home: /var/lib/jenkins_slave/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.1.1 Java version: 1.6.0_25, vendor: Sun Microsystems Inc. Java home: /usr/lib/jvm/java-1.6.0-sun-1.6.0.25.x86_64/jre Default locale: en_GB, platform encoding: ISO-8859-1 OS name: "linux", version: "2.6.18-308.8.2.el5", arch: "amd64", family: "unix" java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) 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.maven.Maven3Builder.call(Maven3Builder.java:134) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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) Caused by: org.apache.maven.cli.MavenExecutionRequestsBuilderException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:192) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:130) ... 22 more Caused by: org.apache.maven.cli.DefaultMavenExecutionRequestBuilder$ExitException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli(DefaultMavenExecutionRequestBuilder.java:247) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:164) ... 24 more channel stopped ERROR: Failed to parse POMs hudson.util.IOException2: java.lang.reflect.InvocationTargetException at hudson.maven.Maven3Builder.call(Maven3Builder.java:178) at hudson.maven.Maven3Builder.call(Maven3Builder.java:69) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:328) 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) Caused by: java.lang.reflect.InvocationTargetException 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.maven.Maven3Builder.call(Maven3Builder.java:134) ... 10 more Caused by: java.lang.Exception: java.lang.reflect.InvocationTargetException at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:184) ... 15 more Caused by: java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238) at jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181) ... 15 more Caused by: org.apache.maven.cli.MavenExecutionRequestsBuilderException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:192) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153) at org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:130) ... 22 more Caused by: org.apache.maven.cli.DefaultMavenExecutionRequestBuilder$ExitException at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli(DefaultMavenExecutionRequestBuilder.java:247) at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:164) ... 24 more Finished: FAILURE {code} If instead Build > Maven Version is set to a Maven 2 installation, the version information is printed and the build exits successfully. From the command line, "mvn --version" works correctly with both the maven 2 and maven 3 installations.

    Jenkins JIRA | 3 years ago | Ashley Mercer
    hudson.util.IOException2: java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. org.apache.maven.cli.DefaultMavenExecutionRequestBuilder$ExitException

      No message provided

      at org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli()
    2. M3 Interceptor
      Maven31Launcher.main
      1. org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.cli(DefaultMavenExecutionRequestBuilder.java:247)
      2. org.apache.maven.cli.DefaultMavenExecutionRequestBuilder.getMavenExecutionRequest(DefaultMavenExecutionRequestBuilder.java:164)
      3. org.jvnet.hudson.maven3.launcher.Maven31Launcher.getMavenExecutionRequest(Maven31Launcher.java:153)
      4. org.jvnet.hudson.maven3.launcher.Maven31Launcher.main(Maven31Launcher.java:130)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. Plexus
      Launcher.launch
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:330)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:238)
      2 frames
    5. jenkins.maven3.agent
      Maven31Main.launch
      1. jenkins.maven3.agent.Maven31Main.launch(Maven31Main.java:181)
      1 frame
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    7. Hudson Maven Embedder
      Maven3Builder.call
      1. hudson.maven.Maven3Builder.call(Maven3Builder.java:134)
      2. hudson.maven.Maven3Builder.call(Maven3Builder.java:69)
      2 frames
    8. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:328)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames