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

EnvVars deserialisation failure due to changed serialVersionUID

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • core
    • None

      Deserialisation errors seen with class hudson.EnvVars:

       java.io.InvalidClassException: hudson.EnvVars; local class incompatible: stream classdesc serialVersionUID = -234198271843838088, local class serialVersionUID = 4320331661987259022

      hudson.EnvVars is serialisable, but doesn't have a serialVersionUID. The generated one has changed between v2.138 (-234198271843838088) & v2.150 (4320331661987259022) causing these deserialisation errors.

      This is to ensure the compatibility with a derived tool and as it's good practise to have a static serialVersionUID, we should add it.

          [JENKINS-56161] EnvVars deserialisation failure due to changed serialVersionUID

          Mark Wynn-Mackenzie created issue -
          Adrien Lecharpentier made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Link to the PR. Thanks.

          Adrien Lecharpentier added a comment - Link to the PR. Thanks.
          Adrien Lecharpentier made changes -
          Remote Link New: Cette demande est liée à "PR-3897 (Lien Web)" [ 22386 ]
          Adrien Lecharpentier made changes -
          Description Original: Deserialisation errors seen with class `hudson.EnvVars`:

          `java.io.InvalidClassException: hudson.EnvVars; local class incompatible: stream classdesc serialVersionUID = -234198271843838088, local class serialVersionUID = 4320331661987259022`

           

          `hudson.EnvVars` is serialisable, but doesn't have a `serialVersionUID`. The generated one has changed between v2.138 (-234198271843838088) & v2.150 (4320331661987259022) causing these deserialisation errors when CJOC runs remote operations on a master at a different version.
          New: Deserialisation errors seen with class {{hudson.EnvVars}}:
          {noformat}
           java.io.InvalidClassException: hudson.EnvVars; local class incompatible: stream classdesc serialVersionUID = -234198271843838088, local class serialVersionUID = 4320331661987259022{noformat}
           

          {{hudson.EnvVars}} is serialisable, but doesn't have a {{serialVersionUID.}} The generated one has changed between v2.138 (-234198271843838088) & v2.150 (4320331661987259022) causing these deserialisation errors when CJOC runs remote operations on a master at a different version.
          Adrien Lecharpentier made changes -
          Comment [ I see you are speaking about CJOC, so I guess you have support for this. Is this something you spoke about with CloudBees support? ]
          Adrien Lecharpentier made changes -
          Description Original: Deserialisation errors seen with class {{hudson.EnvVars}}:
          {noformat}
           java.io.InvalidClassException: hudson.EnvVars; local class incompatible: stream classdesc serialVersionUID = -234198271843838088, local class serialVersionUID = 4320331661987259022{noformat}
           

          {{hudson.EnvVars}} is serialisable, but doesn't have a {{serialVersionUID.}} The generated one has changed between v2.138 (-234198271843838088) & v2.150 (4320331661987259022) causing these deserialisation errors when CJOC runs remote operations on a master at a different version.
          New: Deserialisation errors seen with class {{hudson.EnvVars}}:
          {noformat}
           java.io.InvalidClassException: hudson.EnvVars; local class incompatible: stream classdesc serialVersionUID = -234198271843838088, local class serialVersionUID = 4320331661987259022{noformat}
          {{hudson.EnvVars}} is serialisable, but doesn't have a {{serialVersionUID.}} The generated one has changed between v2.138 (-234198271843838088) & v2.150 (4320331661987259022) causing these deserialisation errors.

          This is to ensure the compatibility with a derived tool and as it's good practise to have a static {{serialVersionUID}}, we should add it.

          Josh Soref added a comment -

          Josh Soref added a comment - Filed https://issues.jenkins-ci.org/browse/JENKINS-56222  for the general case.

            markwm Mark Wynn-Mackenzie
            markwm Mark Wynn-Mackenzie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: