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

Deserialization of hudson.model.ParametersDefinitionProperty$1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Duplicate
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      (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
      

        Attachments

          Issue Links

            Activity

            Hide
            reinholdfuereder Reinhold Füreder added a comment -

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

            Show
            reinholdfuereder Reinhold Füreder added a comment - (Updating cloned issue, maybe I should not have used cloning in the first place?)
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            jglick 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.

            Show
            jglick 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.
            Hide
            reinholdfuereder 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)?

            Show
            reinholdfuereder 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)?

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: