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

Deserialization of hudson.model.ParametersDefinitionProperty$1

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • core
    • None

      (Triggered via JENKINS-49573 comment conversation)

      After upgrading to Jenkins 2.110 and actually presumably JENKINS-49795 I saw the following warning logs:

      2018-03-07 11:39:38 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1]   JENKINS-49573: attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.110.jar
      

          [JENKINS-49977] Deserialization of hudson.model.ParametersDefinitionProperty$1

          (Updating cloned issue, maybe I should not have used cloning in the first place?)

          Reinhold Füreder added a comment - (Updating cloned issue, maybe I should not have used cloning in the first place?)

          Jesse Glick added a comment -

          Jenkins 2.110+ will no longer save this class name for new builds. Historical build records may continue to refer to it. I suppose ParametersAction.readResolve could replace the list with an ArrayList but this does not suffice to trigger a resave; Jenkins currently offers no API for an object’s readResolve to request a save of the top-level object being loaded from XmlFile.

          Just a warning; probably could be closed as Won’t Fix.

          Jesse Glick added a comment - Jenkins 2.110+ will no longer save this class name for new builds. Historical build records may continue to refer to it. I suppose ParametersAction.readResolve could replace the list with an ArrayList but this does not suffice to trigger a resave; Jenkins currently offers no API for an object’s readResolve to request a save of the top-level object being loaded from XmlFile . Just a warning; probably could be closed as Won’t Fix.

          Jesse Glick added a comment -

          And not a JEP-200 issue per se. JENKINS-49705 was a robustness improvement merely inspired by debugging a JEP-200 regression.

          Jesse Glick added a comment - And not a JEP-200 issue per se. JENKINS-49705 was a robustness improvement merely inspired by debugging a JEP-200 regression.

          Since I still get this warning:

          2018-04-04 12:26:59 WARNING [org.jenkinsci.remoting.util.AnonymousClassWarnings warn]   Attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.114.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          

          Is that OK?
          Or when is it still expected to pop up (e.g. solely due to looking at pipeline job in classic UI via stage view for instance)?

          Reinhold Füreder added a comment - Since I still get this warning: 2018-04-04 12:26:59 WARNING [org.jenkinsci.remoting.util.AnonymousClassWarnings warn] Attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.114.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Is that OK? Or when is it still expected to pop up (e.g. solely due to looking at pipeline job in classic UI via stage view for instance)?

            Unassigned Unassigned
            reinholdfuereder Reinhold Füreder
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: