[JIRA] (JENKINS-60985) org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException

31 views
Skip to first unread message

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 7:24:04 PM2/5/20
to jenkinsc...@googlegroups.com
Andrew Potter created an issue
 
Jenkins / Bug JENKINS-60985
org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException
Issue Type: Bug Bug
Assignee: Mark Waite
Components: git-client-plugin, git-plugin
Created: 2020-02-06 00:23
Environment: Jenkins: 2.219
git: 4.1.1
git-client: 3.1.1
Priority: Major Major
Reporter: Andrew Potter

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 vtplat-jenkinsdockerslave01.int.dealer.com/10.12.4.53:55335
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

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 7:25:02 PM2/5/20
to jenkinsc...@googlegroups.com
Andrew Potter updated an issue
Change By: Andrew Potter
{code:java}
ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).

{code}

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 8:12:02 PM2/5/20
to jenkinsc...@googlegroups.com
Andrew Potter commented on Bug JENKINS-60985
 
Re: org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException

Fixing that issue by making CheckoutCommand implement Serializable then caused the following:

 

ERROR: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).
java.lang.ClassCastException: cannot assign instance of org.jenkinsci.plugins.gitclient.RemoteGitImpl to field org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9.this$0 of type org.jenkinsci.plugins.gitclient.CliGitAPIImpl in instance of org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9
	at java.io.ObjectStreamClass$FieldReflector.setObjFieldValues(ObjectStreamClass.java:2287)
	at java.io.ObjectStreamClass.setObjFieldValues(ObjectStreamClass.java:1417)
	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2347)
	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2265)
	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2123)
	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1624)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:464)
	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:422)
	at hudson.remoting.UserRequest.deserialize(UserRequest.java:290)
	at hudson.remoting.UserRequest$NormalResponse.retrieve(UserRequest.java:325)
	at hudson.remoting.Channel.call(Channel.java:951)
	at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:285)
	at com.sun.proxy.$Proxy90.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)

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 8:36:03 PM2/5/20
to jenkinsc...@googlegroups.com

Downgrading to git-client 3.0.0 resolved the issues for now.  I wasn't able to figure out a solution to the stacktrace in the comment above ^

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 5, 2020, 8:52:02 PM2/5/20
to jenkinsc...@googlegroups.com

What is the definition of the job that was running when that stack trace was reported? Which extensions were being used? What type of job is it? What other steps are needed to duplicate the issue?

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 9:11:04 PM2/5/20
to jenkinsc...@googlegroups.com

We're seeing the issue when using the artifactory plugin (https://plugins.jenkins.io/artifactory) to run a release build for a maven artifact on an SSH agent.

apottere@gmail.com (JIRA)

unread,
Feb 5, 2020, 9:12:02 PM2/5/20
to jenkinsc...@googlegroups.com

I assume it can be reproduced by any job using the git api in jenkins that's targeting the natively-installed version of git on a remote slave though.

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 6, 2020, 8:25:05 AM2/6/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 6, 2020, 8:28:03 AM2/6/20
to jenkinsc...@googlegroups.com
Mark Waite commented on Bug JENKINS-60985
 
Re: org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException

Unfortunately, I can't reproduce it with my limited knowledge of the artifactory plugin. I created a Freestyle job which adds a Maven3-Artifactory Integration, restricted it to only run on agents that are not the master, and received the following log from the job:

 
                                                            

Started by user Mark Waite
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on aws-ope (git-1.9+ git-1.7+ git-2.7 cloud amd64-Ubuntu java amd64-Ubuntu-16.04 java8 jdk11 jdk8 linux jdk-8 Ubuntu-16 git-2.0+ 64bit Ubuntu git-2.7+ git-1.8+ java-8 16.04 jdk-11 java-11 java11 Ubuntu-16.04 jenkins-maven jagent git-lfs amd64) in workspace /home/mwaite/mark-pc2.markwaite.net-agent/workspace/Bugs-Individual/JENKINS-60985-artifactory-remote-reference-fails
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/MarkEWaite/platformlabeler-plugin
> git init /home/mwaite/mark-pc2.markwaite.net-agent/workspace/Bugs-Individual/JENKINS-60985-artifactory-remote-reference-fails # timeout=10
Fetching upstream changes from https://github.com/MarkEWaite/platformlabeler-plugin
> git --version # timeout=10
> git fetch --tags --progress https://github.com/MarkEWaite/platformlabeler-plugin +refs/heads/:refs/remotes/origin/ # timeout=10
> git config remote.origin.url https://github.com/MarkEWaite/platformlabeler-plugin # timeout=10
> git config --add remote.origin.fetch +refs/heads/:refs/remotes/origin/ # timeout=10
> git config remote.origin.url https://github.com/MarkEWaite/platformlabeler-plugin # timeout=10
Fetching upstream changes from https://github.com/MarkEWaite/platformlabeler-plugin
> git fetch --tags --progress https://github.com/MarkEWaite/platformlabeler-plugin +refs/heads/:refs/remotes/origin/ # timeout=10
> git rev-parse refs/remotes/origin/master^

{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit}

# timeout=10
Checking out Revision 35025b8d7160775019404d1b1c856d8e9fe0fcc6 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 35025b8d7160775019404d1b1c856d8e9fe0fcc6 # timeout=10
Commit message: "Merge pull request #158 from MarkEWaite/add-centos-8.1-test-data"
First time build. Skipping changelog.
FATAL: class org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator needs to implement the setUp method
java.lang.UnsupportedOperationException: class org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator needs to implement the setUp method
at hudson.tasks.BuildWrapper.setUp(BuildWrapper.java:155)
at hudson.tasks.BuildWrapper.setUp(BuildWrapper.java:142)
at org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator.setUp(ArtifactoryMaven3Configurator.java:335)
at hudson.model.Build$BuildExecution.doRun(Build.java:157)


at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1853)

at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)


at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)

Finished: FAILURE
{noformat]

I don't know how to implement a setUp method for the maven 3 artifactory integration. The job configuration I used is attached as JENKINS-60985-config.xml

I am very concerned about this bug because I don't know what would cause it. I am also concerned about this bug because I don't know how to duplicate it. I generally can't make progress on a bug that I cannot duplicate. Can you either upload your config.xml or provide more details that will allow me to duplicate it?

I have 1000+ jobs that use the git API in Jenkins to target natively installed git on a remote agent. None of them show this failure. The first job that I created to use the Artifactory plugin failed with an error message from the Artifactory plugin. I need your help to understand how to see the issue.

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 6, 2020, 8:29:03 AM2/6/20
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-60985
Unfortunately, I can't reproduce it with my limited knowledge of the artifactory plugin.  I created a Freestyle job which adds a Maven3-Artifactory Integration, restricted it to only run on agents that are not the master, and received the following log from the job:

{noformat}

Started by user Mark Waite
Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on aws-ope (git-1.9+ git-1.7+ git-2.7 cloud amd64-Ubuntu java amd64-Ubuntu-16.04 java8 jdk11 jdk8 linux jdk-8 Ubuntu-16 git-2.0+ 64bit Ubuntu git-2.7+ git-1.8+ java-8 16.04 jdk-11 java-11 java11 Ubuntu-16.04 jenkins-maven jagent git-lfs amd64) in workspace /home/mwaite/mark-pc2.markwaite.net-agent/workspace/Bugs-Individual/JENKINS-60985-artifactory-remote-reference-fails
No credentials specified
Cloning the remote Git repository
Cloning repository https://github.com/MarkEWaite/platformlabeler-plugin
> git init /home/mwaite/mark-pc2.markwaite.net-agent/workspace/Bugs-Individual/JENKINS-60985-artifactory-remote-reference-fails # timeout=10
Fetching upstream changes from https://github.com/MarkEWaite/platformlabeler-plugin
> git --version # timeout=10
> git fetch --tags --progress https://github.com/MarkEWaite/platformlabeler-plugin +refs/heads/*:refs/remotes/origin/* # timeout=10

> git config remote.origin.url https://github.com/MarkEWaite/platformlabeler-plugin # timeout=10
> git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10

> git config remote.origin.url https://github.com/MarkEWaite/platformlabeler-plugin # timeout=10
Fetching upstream changes from https://github.com/MarkEWaite/platformlabeler-plugin
> git fetch --tags --progress https://github.com/MarkEWaite/platformlabeler-plugin +refs/heads/*:refs/remotes/origin/* # timeout=10

> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 35025b8d7160775019404d1b1c856d8e9fe0fcc6 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 35025b8d7160775019404d1b1c856d8e9fe0fcc6 # timeout=10
Commit message: "Merge pull request #158 from MarkEWaite/add-centos-8.1-test-data"
First time build. Skipping changelog.
FATAL: class org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator needs to implement the setUp method
java.lang.UnsupportedOperationException: class org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator needs to implement the setUp method
at hudson.tasks.BuildWrapper.setUp(BuildWrapper.java:155)
at hudson.tasks.BuildWrapper.setUp(BuildWrapper.java:142)
at org.jfrog.hudson.maven3.ArtifactoryMaven3Configurator.setUp(ArtifactoryMaven3Configurator.java:335)
at hudson.model.Build$BuildExecution.doRun(Build.java:157)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
at hudson.model.Run.execute(Run.java:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
Finished: FAILURE
{noformat
] }

I don't know how to implement a setUp method for the maven 3 artifactory integration.  The job configuration I used is attached as [^JENKINS-60985-config.xml]

I am very concerned about this bug because I don't know what would cause it. I am also concerned about this bug because I don't know how to duplicate it.  I generally can't make progress on a bug that I cannot duplicate.  Can you either upload your config.xml or provide more details that will allow me to duplicate it?

I have 1000+ jobs that use the git API in Jenkins to target natively installed git on a remote agent.  None of them show this failure.  The first job that I created to use the Artifactory plugin failed with an error message from the Artifactory plugin. I need your help to understand how to see the issue.

apottere@gmail.com (JIRA)

unread,
Feb 6, 2020, 1:16:03 PM2/6/20
to jenkinsc...@googlegroups.com

Mark Waite I was able to spin up a jenkins locally and reproduce this issue with the artifactory plugin, I'll update a somewhat redacted config.xml and try to remember all of the steps I went through.

1. I started from dockerized jenkins

docker run -it \
    -p 8080:8080 \
    -v "$PWD/home":/var/jenkins_home \
    jenkins/jenkins:latest

2. Setup (uninstalled most plugins that weren't necessary)
3. Install the artifactory plugin
4. Add credentials for:
    i. Private key for SSH agent
    ii. API key for our GitHub Enterprise
    iii. API key for our artifactory instance
5. In Manage Jenkins -> Configure System, add an artifactory instance with our artifactory hostname and the credential from (4,iii)
6. In Manage Jenkins -> Global Tool Configuration, add a maven installation
7. Create a node for the SSH agent and connect to it
8. Create a Maven job
    i. Restrict it to run on the agent I created
    ii. Add git configuration for a repo with a test maven project that I have permission to push version changes to and set the credentials to (4,ii)
    iii. Set the maven targets to "-U clean package"
    iv. Check and configure "Enable Artifactory release management"
    v. (Probably Optional) Check and configure "Resolve artifacts from Artifactory"
    vi. (Maybe Optional) Add a Post-build Action for "Deploy artifacts to Artifactory"
9. Click "Build Now", it should build without errors
10. Click "Artifactory Release Staging", fill out form, and run release build.  It fails with the above exceptions after building with maven and when attempting to push version updates to git.

 

In the uploaded config, anything in curly braces "{}" has been redacted: config.xml

apottere@gmail.com (JIRA)

unread,
Feb 6, 2020, 1:16:04 PM2/6/20
to jenkinsc...@googlegroups.com

isuftin@usgs.gov (JIRA)

unread,
Feb 13, 2020, 9:20:04 AM2/13/20
to jenkinsc...@googlegroups.com
Ivan Suftin commented on Bug JENKINS-60985
 
Re: org.jenkinsci.plugins.gitclient.CliGitAPIImpl$9 is not serializable causing hudson.remoting.RemotingSystemException

We're starting to see the same issue on our end. This cropped up yesterday.

 

Started by user Org UserStarted by user Org UserRunning as SYSTEM[EnvInject] - Loading node environment variables.Building remotely on EC2 (Jenkins Slave) - General Jenkins Slave (i-...) (docker:true os:linux project:any node:slave release:centos7 project:mlr) in workspace /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact[WS-CLEANUP] Deleting project workspace...[WS-CLEANUP] Deferred wipeout is used...[WS-CLEANUP] Doneusing credential CIDA-Jenkins-GitHubWiping out workspace first.Cloning the remote Git repositoryCloning repository https://github.com/USGS-CIDA/aqcu-framework.git > /bin/git init /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact # timeout=10Fetching upstream changes from https://github.com/USGS-CIDA/aqcu-framework.git > /bin/git --version # timeout=10using GIT_ASKPASS to set credentials GitHub user/pass for Jenkins > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10 > /bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10Fetching upstream changes from https://github.com/USGS-CIDA/aqcu-framework.gitusing GIT_ASKPASS to set credentials GitHub user/pass for Jenkins > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10 > /bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10 > /bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10Checking out Revision 4235abf79ce73af0646b7d25367bede0c7465c9d (refs/remotes/origin/master) > /bin/git config core.sparsecheckout # timeout=10 > /bin/git checkout -f 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10 > /bin/git branch -a -v --no-abbrev # timeout=10 > /bin/git checkout -b master 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10Commit message: "Merge pull request #40 from zmoore-usgs/update" > /bin/git rev-list --no-walk 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10[RELEASE] Release build triggered > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10[RELEASE] Checking if tag 'aqcu-framework-0.0.8' exists. > /bin/git tag -l aqcu-framework-0.0.8 # timeout=10 > /bin/git config --get remote.origin.url # timeout=10[RELEASE] Creating tag 'aqcu-framework-0.0.8_test' with message 'this is a test tag' > /bin/git tag -a -f -m this is a test tag aqcu-framework-0.0.8_test # timeout=10 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10[RELEASE] Attempting to push tag aqcu-framework-0.0.8_test with --dry-run[RELEASE] Push dry-run completed successfully > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10[RELEASE] Checking if tag 'aqcu-framework-0.0.8_test' exists. > /bin/git tag -l aqcu-framework-0.0.8_test # timeout=10 > /bin/git config --get remote.origin.url # timeout=10[RELEASE] Deleting local tag: aqcu-framework-0.0.8_test > /bin/git tag -d aqcu-framework-0.0.8_test # timeout=10 > /bin/git config --get remote.origin.url # timeout=10ERROR: 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:936) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Jenkins Slave) - General Jenkins Slave (i-0878b5affb136db00) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:955) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283) at com.sun.proxy.$Proxy80.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:427)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 ... 11 moreproject=hudson.maven.MavenModuleSet@34ca64b5[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact]project.getModules()=[hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]]project.getRootModule()=hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]FATAL: 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 serializablejava.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 serializableAlso:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Jenkins Slave) - General Jenkins Slave (i-0878b5affb136db00) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356) at hudson.remoting.Channel.call(Channel.java:955) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283) at com.sun.proxy.$Proxy80.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:427)Caused: hudson.remoting.RemotingSystemException at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:936) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903) at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855) 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:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) > /bin/git config --get remote.origin.url # timeout=10Finished: FAILURE 

Jenkins: 2.204.2

Git Client Plugin: 3.1.1

Artifactory Plugin: 3.5.0

Remote runner is using Unix slave, version 3.36.1 on OpenJDK 1.8.0_242-b08 on CentOS 7

isuftin@usgs.gov (JIRA)

unread,
Feb 13, 2020, 9:22:05 AM2/13/20
to jenkinsc...@googlegroups.com
Ivan Suftin edited a comment on Bug JENKINS-60985
We're starting to see the same issue on our end. This cropped up yesterday.

 
{code:java}
Started by user Org UserStarted by user Org
UserRunning User
Running
as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on EC2 (Jenkins Slave) - General Jenkins Slave (i-...) (docker:true os:linux project:any node:slave release:centos7 project:mlr) in workspace /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Doneusing Done
using
credential CIDA-Jenkins- GitHubWiping GitHub
Wiping
out workspace first.
Cloning the remote Git repositoryCloning repository
Cloning repository
https://github.com/USGS-CIDA/aqcu-framework.git
 > /bin/git init /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact # timeout= 10Fetching 10
Fetching
upstream changes from https://github.com/USGS-CIDA/aqcu-framework.git
 > /bin/git --version # timeout= 10using 10
using
GIT_ASKPASS to set credentials GitHub user/pass for Jenkins
 > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
 > /bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout= 10Fetching 10
Fetching
upstream changes from https://github.com/USGS-CIDA/aqcu-framework. gitusing git
using
GIT_ASKPASS to set credentials GitHub user/pass for Jenkins
 > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout= 10Checking 10
Checking
out Revision 4235abf79ce73af0646b7d25367bede0c7465c9d (refs/remotes/origin/master)
 > /bin/git config core.sparsecheckout # timeout=10
 > /bin/git checkout -f 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10
 > /bin/git branch -a -v --no-abbrev # timeout=10
 > /bin/git checkout -b master 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout= 10Commit 10
Commit
message: "Merge pull request #40 from zmoore-usgs/update"
 > /bin/git rev-list --no-walk 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10
[RELEASE] Release build triggered
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Checking if tag 'aqcu-framework-0.0.8' exists.
 > /bin/git tag -l aqcu-framework-0.0.8 # timeout=10
 > /bin/git config --get remote.origin.url # timeout=10
[RELEASE] Creating tag 'aqcu-framework-0.0.8_test' with message 'this is a test tag'
 > /bin/git tag -a -f -m this is a test tag aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Attempting to push tag aqcu-framework-0.0.8_test with --dry-run
[RELEASE] Push dry-run completed successfully
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Checking if tag 'aqcu-framework-0.0.8_test' exists.
 > /bin/git tag -l aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config --get remote.origin.url # timeout=10
[RELEASE] Deleting local tag: aqcu-framework-0.0.8_test
 > /bin/git tag -d aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config --get remote.origin.url # timeout= 10ERROR 10
ERROR
: Processing failed due to a bug in the code. Please report this to the issue tracker (https://jenkins.io/redirect/report-an-issue).
... 11 moreproject more
project
=hudson.maven.MavenModuleSet@34ca64b5[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact]
project.getModules()=[hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]
FATAL: 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 serializablejava serializable
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 serializableAlso serializable
Also
:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Jenkins Slave) - General Jenkins Slave (i-0878b5affb136db00)
at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
at com.sun.proxy.$Proxy80.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:427)
Caused: hudson.remoting.RemotingSystemException
at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:936)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
 > /bin/git config --get remote.origin.url # timeout= 10Finished 10
Finished
: FAILURE
{code}

Jenkins: 2.204.2

Git Client Plugin: 3.1.1

Artifactory Plugin: 3.5.0

Remote runner is using Unix slave, version 3.36.1 on OpenJDK 1.8.0_242-b08 on CentOS 7

isuftin@usgs.gov (JIRA)

unread,
Feb 13, 2020, 9:24:06 AM2/13/20
to jenkinsc...@googlegroups.com
Ivan Suftin edited a comment on Bug JENKINS-60985
We're starting to see the same issue on our end. This cropped up yesterday.

 
{code:java}
Started by user Org UserStarted by user Org User

Running as SYSTEM
[EnvInject] - Loading node environment variables.
Building remotely on EC2 (Jenkins Slave) - General Jenkins Slave (i-...) (docker:true os:linux project:any node:slave release:centos7 project:mlr) in workspace /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact
[WS-CLEANUP] Deleting project workspace...
[WS-CLEANUP] Deferred wipeout is used...
[WS-CLEANUP] Done
using credential CIDA-Jenkins-GitHub
Wiping out workspace first.
Cloning the remote Git repository

Cloning repository https://github.com/USGS-CIDA/aqcu-framework.git
 > /bin/git init /var/jenkins/workspace/Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact # timeout=10
Fetching upstream changes from https://github.com/USGS-CIDA/aqcu-framework.git
 > /bin/git --version # timeout=10
using GIT_ASKPASS to set credentials GitHub user/pass for Jenkins
 > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
 > /bin/git config --add remote.origin.fetch +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git config remote.origin.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
using GIT_ASKPASS to set credentials GitHub user/pass for Jenkins
 > /bin/git fetch --tags --progress https://github.com/USGS-CIDA/aqcu-framework.git +refs/heads/*:refs/remotes/origin/* # timeout=10
 > /bin/git rev-parse refs/remotes/origin/master^{commit} # timeout=10
 > /bin/git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 4235abf79ce73af0646b7d25367bede0c7465c9d (refs/remotes/origin/master)
 > /bin/git config core.sparsecheckout # timeout=10
 > /bin/git checkout -f 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10
 > /bin/git branch -a -v --no-abbrev # timeout=10
 > /bin/git checkout -b master 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10
Commit message: "Merge pull request #40 from zmoore-usgs/update"
 > /bin/git rev-list --no-walk 4235abf79ce73af0646b7d25367bede0c7465c9d # timeout=10
[RELEASE] Release build triggered
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Checking if tag 'aqcu-framework-0.0.8' exists.
 > /bin/git tag -l aqcu-framework-0.0.8 # timeout=10
 > /bin/git config --get remote.origin.url # timeout=10
[RELEASE] Creating tag 'aqcu-framework-0.0.8_test' with message 'this is a test tag'
 > /bin/git tag -a -f -m this is a test tag aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Attempting to push tag aqcu-framework-0.0.8_test with --dry-run
[RELEASE] Push dry-run completed successfully
 > /bin/git config remote.externalGitUrl.url https://github.com/USGS-CIDA/aqcu-framework.git # timeout=10
[RELEASE] Checking if tag 'aqcu-framework-0.0.8_test' exists.
 > /bin/git tag -l aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config --get remote.origin.url # timeout=10
[RELEASE] Deleting local tag: aqcu-framework-0.0.8_test
 > /bin/git tag -d aqcu-framework-0.0.8_test # timeout=10
 > /bin/git config --get remote.origin.url # timeout=10
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:936)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:903)
at hudson.remoting.RemoteInvocationHandler$RPCRequest.call(RemoteInvocationHandler.java:855)
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:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Jenkins Slave) - General Jenkins Slave (i- 0878b5affb136db00 ... )

at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
at hudson.remoting.Channel.call(Channel.java:955)
at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:283)
at com.sun.proxy.$Proxy80.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:427)
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
... 11 more
project=hudson.maven.MavenModuleSet@34ca64b5[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact]

project.getModules()=[hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]]
project.getRootModule()=hudson.maven.MavenModule@13ac23be[Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][Argonauts/AQCU/Builds/Build_AQCU_Framework_Java_Artifact/gov.usgs.aqcu:aqcu-framework][relativePath:]
FATAL: 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
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
Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (Jenkins Slave) - General Jenkins Slave (i- 0878b5affb136db00 ... )
Finished: FAILURE

{code}
Jenkins: 2.204.2

Git Client Plugin: 3.1.1

Artifactory Plugin: 3.5.0

Remote runner is using Unix slave, version 3.36.1 on OpenJDK 1.8.0_242-b08 on CentOS 7

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 13, 2020, 10:08:03 AM2/13/20
to jenkinsc...@googlegroups.com

Ivan Suftin is your job also a maven job type or is it some other job type (for example, Freestyle or Pipeline or ...)?

What version of JDK is running on your master? Is it substantially different than OpenJDK 1.8.0_242-b08 that is running on the agent? There are warnings about serialization problems for maven job types that might apply if there are large differences between the agent and master JDK.

isuftin@usgs.gov (JIRA)

unread,
Feb 13, 2020, 10:13:03 AM2/13/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 19, 2020, 12:14:03 AM2/19/20
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Feb 19, 2020, 12:14:04 AM2/19/20
to jenkinsc...@googlegroups.com
Mark Waite assigned an issue to Unassigned

apottere@gmail.com (JIRA)

unread,
Feb 26, 2020, 10:54:03 AM2/26/20
to jenkinsc...@googlegroups.com
Andrew Potter updated an issue
Change By: Andrew Potter
{code:java}

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 vtplat-jenkinsdockerslave01.int.dealer.com/10.12.4.53:55335 <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
{code}
Reply all
Reply to author
Forward
0 new messages