Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-52856

Pipeline checkout stage fails with "java.io.IOException: Unable to serialize"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: git-client-plugin
    • Labels:
      None
    • Environment:
      Java 1.8.131
      Jenkins 2.121.2
      git-client-plugin 2.7.3
    • Similar Issues:

      Description

      First time checkout stage fails with error:

      java.io.IOException: Unable to serialize UserRPCRequest:org.jenkinsci.plugins.gitclient.GitClient.addCredentials[java.lang.String,com.cloudbees.plugins.credentials.common.StandardCredentials](32)

      After reboot checkout works but in Jenkins logs we still see:

      WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/var/lib/jenkins/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          I believe that Credentials plugin is not responsible for that, looks like an issue with remote operations done by Git client

          Show
          oleg_nenashev Oleg Nenashev added a comment - I believe that Credentials plugin is not responsible for that, looks like an issue with remote operations done by Git client
          Hide
          markewaite Mark Waite added a comment -

          Can you provide enough details that someone else can duplicate the problem?

          Have you tried the git client plugin 3.0.0-beta5, since it includes a change which resolves another case of "serialization of anonymous classes" as noted in f7126b1ec13f74f612d0413febb20f5f83eb0508.

          Show
          markewaite Mark Waite added a comment - Can you provide enough details that someone else can duplicate the problem? Have you tried the git client plugin 3.0.0-beta5, since it includes a change which resolves another case of "serialization of anonymous classes" as noted in f7126b1ec13f74f612d0413febb20f5f83eb0508.
          Hide
          markewaite Mark Waite added a comment -

          Changes were made in git client plugin 3..0.0-beta4 which should resolve this issue (or at least will resolve the warning about serializing anonymous classes).

          Show
          markewaite Mark Waite added a comment - Changes were made in git client plugin 3..0.0-beta4 which should resolve this issue (or at least will resolve the warning about serializing anonymous classes).
          Hide
          markewaite Mark Waite added a comment -

          Resolved the warning about anonymous class serialization in git client plugin 3.0.0beta4. Cannot duplicate the "Unable to serialize" failure.

          Show
          markewaite Mark Waite added a comment - Resolved the warning about anonymous class serialization in git client plugin 3.0.0beta4. Cannot duplicate the "Unable to serialize" failure.

            People

            • Assignee:
              Unassigned
              Reporter:
              county Victor Voronin
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: