file version compact bug against gerrit git client plugin and gerrit trigger plugin

113 views
Skip to first unread message

h...@brightedge.com

unread,
Sep 22, 2016, 4:58:02 PM9/22/16
to Jenkins Users
Hi,

After upgrading git client plugin from 1.19.6 to 2.0.0 and git plugin from 2.4.4 to 3.0.0, I got the following error

Caused by: java.lang.NoSuchMethodError: org.eclipse.jgit.revwalk.RevWalk.release()V 3.0.0 => 2.
        at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$1.invoke(GerritTriggerBuildChooser.java:185) 2.20
        at com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritTriggerBuildChooser$1.invoke(GerritTriggerBuildChooser.java:166)
        at org.jenkinsci.plugins.gitclient.AbstractGitAPIImpl.withRepository(AbstractGitAPIImpl.java:27)
        at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.withRepository(CliGitAPIImpl.java:64)
        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:606)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:887)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:862)
        at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:821)
        at hudson.remoting.UserRequest.perform(UserRequest.java:153)
        at hudson.remoting.UserRequest.perform(UserRequest.java:50)
        at hudson.remoting.Request$2.run(Request.java:332)
        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
        at ......remote call to a12(Native Method)
        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)
        at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
        at hudson.remoting.Channel.call(Channel.java:797)

Please advise. Thank you.

Mark Waite

unread,
Sep 22, 2016, 5:15:15 PM9/22/16
to Jenkins Users
You'll need to downgrade git client plugin back to the previous version.  The git client plugin upgrade from 1.x to 2.0 introduces a breaking change by switching from JGit 3 to JGit 4, and by changing from Java 6 compatible to Java 7 compatible and by switching from requiring a minimum of Jenkins 1.532 to a minimum of Jenkins 1.625.

Unfortunately, the JGit API does not retain full compatibility between JGit 3 and JGit 4.  That "no such method exception" is one of the indicators of that incompatibility.

A work around can be applied to a future version of the gerrit trigger plugin, as was used in the git plugin.  The maintainer of the gerrtit trigger plugin can contact me for more details if they are needed.

Mark Waite

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/12bce236-4a50-4345-b097-0d83a17090a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Björn Pedersen

unread,
Sep 23, 2016, 4:12:20 AM9/23/16
to Jenkins Users
Looking at the log for gerrit-trigger [1],  it seems you need to update it as well (Mark supplied a fix for this problem).

Björn


[1] https://github.com/jenkinsci/gerrit-trigger-plugin/commits/master
Reply all
Reply to author
Forward
0 new messages