-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins: 2.219
git: 4.1.1
git-client: 3.1.1
-
-
git client plugin 3.3.2
Artifactory plugin attempts to serialize one of the inner classes from the git client plugin. That inner class is not serializable. The class is an implementation of CheckoutCommand. It has never been serializable as far as I can tell.
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException
ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue). hudson.remoting.RemotingSystemException: java.lang.ClassCastException: class org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is returned from public abstract org.jenkinsci.plugins.gitclient.CheckoutCommand org.jenkinsci.plugins.gitclient.GitClient.checkout() on class hudson.plugins.git.GitAPI but it's not serializable at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:938) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:905) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:857) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117) at java.lang.Thread.run(Thread.java:745) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from <redacted> at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:951) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285) at com.sun.proxy.$Proxy99.checkout(Unknown Source) at org.jenkinsci.plugins.gitclient.RemoteGitImpl.checkout(RemoteGitImpl.java:309) at org.jfrog.hudson.release.scm.git.GitManager.checkoutBranch(GitManager.java:72) at org.jfrog.hudson.release.scm.git.GitCoordinator.beforeReleaseVersionChange(GitCoordinator.java:93) at org.jfrog.hudson.release.maven.MavenReleaseWrapper.setUp(MavenReleaseWrapper.java:178) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:667) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504) at hudson.model.Run.execute(Run.java:1853) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:428) Caused by: java.lang.ClassCastException: class org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is returned from public abstract org.jenkinsci.plugins.gitclient.CheckoutCommand org.jenkinsci.plugins.gitclient.GitClient.checkout() on class hudson.plugins.git.GitAPI but it's not serializable ... 12 more