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

Serialization of ModelASTValue$1 / $2

    XMLWordPrintable

    Details

    • 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:37 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1]   JENKINS-49573: attempt to (de-)serialize anonymous class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$1 in file:/var/lib/jenkins/plugins/pipeline-model-api/WEB-INF/lib/pipeline-model-api.jar
      2018-03-07 11:39:37 WARNING [jenkins.security.ClassFilterImpl lambda$isBlacklisted$1]   JENKINS-49573: attempt to (de-)serialize anonymous class org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$2 in file:/var/lib/jenkins/plugins/pipeline-model-api/WEB-INF/lib/pipeline-model-api.jar
      

        Attachments

          Issue Links

            Activity

            Hide
            abayer Andrew Bayer added a comment -

            PR up getting rid of the anonymous inner classes at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/252

            Show
            abayer Andrew Bayer added a comment - PR up getting rid of the anonymous inner classes at https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/252
            Hide
            abayer Andrew Bayer added a comment -

            Merged, this'll be in Declarative 1.2.8.

            Show
            abayer Andrew Bayer added a comment - Merged, this'll be in Declarative 1.2.8.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Andrew Bayer
            Path:
            pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTValue.java
            http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ece602dbe1af2e7c0930e36d610f8147c6bb03ac
            Log:
            [FIXED JENKINS-49976] Get rid of ModelASTValue anonymous classes

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Andrew Bayer Path: pipeline-model-api/src/main/java/org/jenkinsci/plugins/pipeline/modeldefinition/ast/ModelASTValue.java http://jenkins-ci.org/commit/pipeline-model-definition-plugin/ece602dbe1af2e7c0930e36d610f8147c6bb03ac Log: [FIXED JENKINS-49976] Get rid of ModelASTValue anonymous classes
            Hide
            jiangty_addepar Damien Jiang added a comment -

            This change appears to have caused a lot of "CannotResolveClassException: org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$1" warnings to show up for old WorkflowRun objects in /adminstrativeMonitor/OldData/manage ; is it okay to discard all the data here?

            Show
            jiangty_addepar Damien Jiang added a comment - This change appears to have caused a lot of "CannotResolveClassException: org.jenkinsci.plugins.pipeline.modeldefinition.ast.ModelASTValue$1" warnings to show up for old WorkflowRun objects in /adminstrativeMonitor/OldData/manage ; is it okay to discard all the data here?
            Hide
            abayer Andrew Bayer added a comment -

            Yeah, that'll be fine.

            Show
            abayer Andrew Bayer added a comment - Yeah, that'll be fine.
            Hide
            jiangty_addepar Damien Jiang added a comment -

            Thanks!

            Show
            jiangty_addepar Damien Jiang added a comment - Thanks!
            Hide
            jiangty_addepar Damien Jiang added a comment -

            I noticed that more "old data" warnings are still being generated; is one of my plugins out of date and generating old datatypes? When will we stop getting these warnings?

            Show
            jiangty_addepar Damien Jiang added a comment - I noticed that more "old data" warnings are still being generated; is one of my plugins out of date and generating old datatypes? When will we stop getting these warnings?
            Hide
            reinholdfuereder Reinhold Füreder added a comment -

            (JFYI: I am neither seeing the warning logs anymore – the last entry was on 11.04.2018, nor any "old data" warning.)

            Show
            reinholdfuereder Reinhold Füreder added a comment - (JFYI: I am neither seeing the warning logs anymore – the last entry was on 11.04.2018, nor any "old data" warning.)

              People

              • Assignee:
                abayer Andrew Bayer
                Reporter:
                reinholdfuereder Reinhold Füreder
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: