[HAP-211] "Deploy maven artifacts" working in jenkins 1.415, broken in jenkins 1.417 and 1.418. java.lang.NoSuchMethodError: hudson.util.XStream2.getConverterRegistry()Lcom/thoughtworks/xstream/converters/ConverterRegistry; Created: 28/Jun/11  Updated: 14/Aug/11  Resolved: 03/Jul/11

Status: Resolved
Project: Jenkins Artifactory Plug-in
Component/s: Maven3
Affects Version/s: 2.0.1
Fix Version/s: 2.0.2

Type: Bug Priority: Blocker
Reporter: Quentin Burley Assignee: Yossi Shaul
Resolution: Fixed Votes: 0
Labels: None
Environment:

broken in jenkins 1.417, 1.418. working in jenkins 1.415.


Issue Links:
Duplicate
is duplicated by HAP-213 Build failed due to a Java reflection... Resolved

 Description   

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



 Comments   
Comment by Eli Givoni [ 30/Jun/11 ]

Hi Quentin,
You are right, there seems to be a collision in the XStream custom library Jenkins is now bundling and the one the plugin uses.
We are working on a fix.

Thanks for reporting,

Eli

Comment by Eli Givoni [ 03/Jul/11 ]

Hi Quentin,
XStresm in now provided, 2.0.2 is released and should be available on Jenkins plugin public repository in couple of hours.

Comment by Quentin Burley [ 04/Jul/11 ]

Hi, thanks for the fix. I notice that the 2.0.2 release is still not available on Jenkins plugin public repository.

Regards,

Quentin

Comment by Eli Givoni [ 04/Jul/11 ]

Hi Quentin,
Yes we know, we posted a query to Jenkins this morning. Meanwhile you can download it directly from here:
http://maven.jenkins-ci.org:8081/content/repositories/releases/org/jenkins-ci/plugins/artifactory/2.0.2/artifactory-2.0.2.hpi

Thanks,
Eli

Comment by Eli Givoni [ 07/Jul/11 ]

Hi Quentin,
Plugin is now public

Generated at Fri May 24 11:16:58 UTC 2019 using JIRA 7.6.3#76005-sha1:8a4e38d34af948780dbf52044e7aafb13a7cae58.