java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry;

Stack Overflow | Pascal Verdage | 9 months 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

    Groovy MissingMethodException with signature when accessing getter and NoSuchMethodError on inheritance

    Stack Overflow | 9 months ago | Pascal Verdage
    java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry;
  2. 0

    Most of our jobs fail with release 1.417. We downgraded to 1.414 immediately and all the jobs are working again. The console output is: {noformat} ... Tests run: 43, Failures: 0, Errors: 0, Skipped: 0 [JENKINS] Recording test results 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: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:128) at hudson.maven.Maven3Builder.call(Maven3Builder.java:75) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; at hudson.util.XStream2.wrapMapper(XStream2.java:126) at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:479) at com.thoughtworks.xstream.XStream.<init>(XStream.java:440) at com.thoughtworks.xstream.XStream.<init>(XStream.java:385) at com.thoughtworks.xstream.XStream.<init>(XStream.java:323) at hudson.util.XStream2.<init>(XStream2.java:66) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3412) at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:77) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:110) at hudson.tasks.junit.TestResult.parse(TestResult.java:200) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:144) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoSucceeded(Maven3Builder.java:599) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:562) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:239) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) ... 18 more channel stopped ERROR: Failed to parse POMs hudson.util.IOException2: java.lang.reflect.InvocationTargetException at hudson.maven.Maven3Builder.call(Maven3Builder.java:198) at hudson.maven.Maven3Builder.call(Maven3Builder.java:75) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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.Exception: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:161) at hudson.maven.Maven3Builder.call(Maven3Builder.java:128) ... 10 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:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) ... 11 more Caused by: java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; at hudson.util.XStream2.wrapMapper(XStream2.java:126) at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:479) at com.thoughtworks.xstream.XStream.<init>(XStream.java:440) at com.thoughtworks.xstream.XStream.<init>(XStream.java:385) at com.thoughtworks.xstream.XStream.<init>(XStream.java:323) at hudson.util.XStream2.<init>(XStream2.java:66) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3412) at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:77) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:110) at hudson.tasks.junit.TestResult.parse(TestResult.java:200) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:144) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoSucceeded(Maven3Builder.java:599) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:562) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:239) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) ... 18 more Skipping sonar analysis due to bad build status FAILURE An attempt to send an e-mail to empty list of recipients, ignored. Finished: FAILURE ... {noformat}

    Jenkins JIRA | 6 years ago | Ivar Kanters
    java.lang.reflect.InvocationTargetException
  3. 0

    java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()

    Stack Overflow | 1 year ago | TekiusFanatikus
    java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry;
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    The following stack trace occurs in jenkins 1.417 and 1.418 when using the "Jenkins (Hudson) Artifactory Plug-in" v.2.0.1 with "Deploy maven artifacts" enabled. Works fine with jenkins 1.415. [JENKINS] Recording test results 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: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:125) at hudson.maven.Maven3Builder.call(Maven3Builder.java:72) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; at hudson.util.XStream2.wrapMapper(XStream2.java:126) at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:479) at com.thoughtworks.xstream.XStream.<init>(XStream.java:440) at com.thoughtworks.xstream.XStream.<init>(XStream.java:385) at com.thoughtworks.xstream.XStream.<init>(XStream.java:323) at hudson.util.XStream2.<init>(XStream2.java:66) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3412) at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:77) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:110) at hudson.tasks.junit.TestResult.parse(TestResult.java:200) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:144) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoSucceeded(Maven3Builder.java:596) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:559) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:239) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) ... 18 more channel stopped ERROR: Failed to parse POMs hudson.util.IOException2: java.lang.reflect.InvocationTargetException at hudson.maven.Maven3Builder.call(Maven3Builder.java:195) at hudson.maven.Maven3Builder.call(Maven3Builder.java:72) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:283) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) 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.Exception: java.lang.reflect.InvocationTargetException at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:161) at hudson.maven.Maven3Builder.call(Maven3Builder.java:125) ... 10 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:329) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239) at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158) ... 11 more Caused by: java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; at hudson.util.XStream2.wrapMapper(XStream2.java:126) at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:479) at com.thoughtworks.xstream.XStream.<init>(XStream.java:440) at com.thoughtworks.xstream.XStream.<init>(XStream.java:385) at com.thoughtworks.xstream.XStream.<init>(XStream.java:323) at hudson.util.XStream2.<init>(XStream2.java:66) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3412) at hudson.util.io.ParserConfigurator.applyConfiguration(ParserConfigurator.java:77) at hudson.tasks.junit.SuiteResult.parse(SuiteResult.java:110) at hudson.tasks.junit.TestResult.parse(TestResult.java:200) at hudson.tasks.junit.TestResult.parse(TestResult.java:155) at hudson.maven.reporters.SurefireArchiver.postExecute(SurefireArchiver.java:144) at hudson.maven.Maven3Builder$MavenExecutionListener.reccordMojoSucceeded(Maven3Builder.java:596) at hudson.maven.Maven3Builder$MavenExecutionListener.mojoSucceeded(Maven3Builder.java:559) at org.jfrog.build.extractor.maven.BuildInfoRecorder.mojoSucceeded(BuildInfoRecorder.java:239) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:87) at org.apache.maven.lifecycle.internal.DefaultExecutionEventCatapult.fire(DefaultExecutionEventCatapult.java:42) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:228) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79) ... 18 more Finished: FAILURE

    JFrog JIRA | 6 years ago | Quentin Burley
    hudson.util.IOException2: java.lang.reflect.InvocationTargetException
  6. 0

    when add <dependency> <groupId>org.apache.jmeter</groupId> <artifactId>ApacheJMeter_core</artifactId> <version>2.10</version> </dependency> mvn package fail with release 1.563. report this issue: T E S T S ------------------------------------------------------- Running InjectedTest Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.515 sec <<< FAILURE! - in InjectedTest initializationError(InjectedTest) Time elapsed: 0.017 sec <<< ERROR! java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; at hudson.util.XStream2.wrapMapper(XStream2.java:185) at com.thoughtworks.xstream.XStream.buildMapper(XStream.java:479) at com.thoughtworks.xstream.XStream.<init>(XStream.java:440) at com.thoughtworks.xstream.XStream.<init>(XStream.java:385) at com.thoughtworks.xstream.XStream.<init>(XStream.java:323) at hudson.util.XStream2.<init>(XStream2.java:88) at jenkins.model.Jenkins.<clinit>(Jenkins.java:3962) at hudson.PluginManager.<clinit>(PluginManager.java:1091) at org.jvnet.hudson.test.HudsonTestCase.<init>(HudsonTestCase.java:270) at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite$1.<init>(JellyTestSuiteBuilder.java:129) at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.<init>(JellyTestSuiteBuilder.java:129) at org.jvnet.hudson.test.JellyTestSuiteBuilder$JellyTestSuite.<init>(JellyTestSuiteBuilder.java:128) at org.jvnet.hudson.test.JellyTestSuiteBuilder.build(JellyTestSuiteBuilder.java:56) at org.jvnet.hudson.test.PluginAutomaticTestBuilder.build(PluginAutomaticTestBuilder.java:55) at InjectedTest.suite(InjectedTest.java:15) i'll use jmeter jar . but dependency jmeter then throw this issue ... pls help me ...thx !!!!!

    JFrog JIRA | 3 years ago | nabokil
    java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry;

      at hudson.util.XStream2.wrapMapper()
    2. Hudson
      XStream2.wrapMapper
      1. hudson.util.XStream2.wrapMapper(XStream2.java:188)
      1 frame
    3. XStream Core
      XStream.<init>
      1. com.thoughtworks.xstream.XStream.buildMapper(XStream.java:610)
      2. com.thoughtworks.xstream.XStream.<init>(XStream.java:568)
      3. com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
      4. com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
      5. com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
      6. com.thoughtworks.xstream.XStream.<init>(XStream.java:350)
      6 frames
    4. Hudson
      XStream2.<init>
      1. hudson.util.XStream2.<init>(XStream2.java:89)
      1 frame
    5. Unknown
      TestXStream2.run
      1. TestXStream2.run(TestXStream2.groovy:33)
      1 frame