java.lang.reflect.InvocationTargetException

Jenkins JIRA | Jakub Štiller | 5 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    After upgrade to the 1.461, we got following error on some builds (not all). The error happened just after the maven complete the main build. Just before archiving artifact. We have to revert back to 1.458. Do you have any hints? We will provide you with any information you may need. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9:30.190s [INFO] Finished at: Wed Apr 25 17:37:02 CEST 2012 [INFO] Final Memory: 456M/790M [INFO] ------------------------------------------------------------------------ Projects to build: [... list all sub modules in project ...] java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of hudson/remoting/RemoteClassLoader) previously initiated loading for a different type with name "com/thoughtworks/xstream/XStream" at hudson.maven.reporters.MavenArtifact.<clinit>(MavenArtifact.java:75) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:101) at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:262) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)

    Jenkins JIRA | 5 years ago | Jakub Štiller
    java.lang.reflect.InvocationTargetException
  2. 0

    After upgrade to the 1.461, we got following error on some builds (not all). The error happened just after the maven complete the main build. Just before archiving artifact. We have to revert back to 1.458. Do you have any hints? We will provide you with any information you may need. [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 9:30.190s [INFO] Finished at: Wed Apr 25 17:37:02 CEST 2012 [INFO] Final Memory: 456M/790M [INFO] ------------------------------------------------------------------------ Projects to build: [... list all sub modules in project ...] java.lang.reflect.InvocationTargetException 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.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) at hudson.maven.Maven3Builder.call(Maven3Builder.java:98) at hudson.maven.Maven3Builder.call(Maven3Builder.java:64) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:287) 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) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of hudson/remoting/RemoteClassLoader) previously initiated loading for a different type with name "com/thoughtworks/xstream/XStream" at hudson.maven.reporters.MavenArtifact.<clinit>(MavenArtifact.java:75) at hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:101) at hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:262) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)

    Jenkins JIRA | 5 years ago | Jakub Štiller
    java.lang.reflect.InvocationTargetException

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: loader (instance of hudson/remoting/RemoteClassLoader) previously initiated loading for a different type with name "com/thoughtworks/xstream/XStream"

      at hudson.maven.reporters.MavenArtifact.<clinit>()
    2. Legacy Maven 2 job type Plugin
      MavenArtifactArchiver.postBuild
      1. hudson.maven.reporters.MavenArtifact.<clinit>(MavenArtifact.java:75)
      2. hudson.maven.reporters.MavenArtifactArchiver.postBuild(MavenArtifactArchiver.java:101)
      2 frames
    3. Hudson Maven Embedder
      Maven3Builder$MavenExecutionListener.sessionEnded
      1. hudson.maven.Maven3Builder$MavenExecutionListener.sessionEnded(Maven3Builder.java:262)
      1 frame
    4. Maven Core
      LifecycleStarter.execute
      1. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:64)
      2. org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42)
      3. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:170)
      3 frames