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

EnvVars deserialisation failure due to changed serialVersionUID

XMLWordPrintable

    • 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.

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

              Created:
              Updated: