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

Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: nodejs-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.102
      NodeJS 1.2.6
    • Similar Issues:

      Description

      When a new installation of NodeJS tools occurs I see had notice a warning in the console log that refers to a jenkins page about "Serialization of anonymous classes"

      WARNING: Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1 in file:/var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      

        Attachments

          Issue Links

            Activity

            sakshisood sakshi sood created issue -
            nfalco Nikolas Falco made changes -
            Field Original Value New Value
            Description WARNING: Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1 in file:/var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
            Sep 17, 2018 11:28:45 AM hudson.model.Run execute

             

            javap -classpath /var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar -l "jenkins.plugins.nodejs.tools.NodeJSInstallation$1"
            Compiled from "NodeJSInstallation.java"
            public class jenkins.plugins.nodejs.tools.NodeJSInstallation extends hudson.tools.ToolInstallation implements hudson.model.EnvironmentSpecific<jenkins.plugins.nodejs.tools.NodeJSInstallation>, hudson.slaves.NodeSpecific<jenkins.plugins.nodejs.tools.NodeJSInstallation> {
             public jenkins.plugins.nodejs.tools.NodeJSInstallation(java.lang.String, java.lang.String, java.util.List<? extends hudson.tools.ToolProperty<?>>);
             LineNumberTable:
             line 71: 0
             line 72: 8
             LocalVariableTable:
             Start Length Slot Name Signature
             0 9 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 9 1 name Ljava/lang/String;
             0 9 2 home Ljava/lang/String;
             0 9 3 properties Ljava/util/List;

            protected jenkins.plugins.nodejs.tools.NodeJSInstallation(java.lang.String, java.lang.String, java.util.List<? extends hudson.tools.ToolProperty<?>>, jenkins.plugins.nodejs.tools.Platform);
             LineNumberTable:
             line 75: 0
             line 76: 13
             line 77: 19
             LocalVariableTable:
             Start Length Slot Name Signature
             0 20 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 20 1 name Ljava/lang/String;
             0 20 2 home Ljava/lang/String;
             0 20 3 properties Ljava/util/List;
             0 20 4 platform Ljenkins/plugins/nodejs/tools/Platform;

            public jenkins.plugins.nodejs.tools.NodeJSInstallation forEnvironment(hudson.EnvVars);
             LineNumberTable:
             line 85: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 31 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 31 1 environment Lhudson/EnvVars;

            public jenkins.plugins.nodejs.tools.NodeJSInstallation forNode(hudson.model.Node, hudson.model.TaskListener) throws java.io.IOException, java.lang.InterruptedException;
             LineNumberTable:
             line 94: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 29 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 29 1 node Lhudson/model/Node;
             0 29 2 log Lhudson/model/TaskListener;

            public void buildEnvVars(hudson.EnvVars);
             LineNumberTable:
             line 103: 0
             line 104: 5
             line 105: 9
             line 107: 10
             line 108: 18
             line 109: 29
             LocalVariableTable:
             Start Length Slot Name Signature
             0 30 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 30 1 env Lhudson/EnvVars;
             5 25 2 home Ljava/lang/String;

            public java.lang.String getExecutable(hudson.Launcher) throws java.lang.InterruptedException, java.io.IOException;
             LineNumberTable:
             line 123: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 21 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
             0 21 1 launcher Lhudson/Launcher;

            public hudson.model.EnvironmentSpecific forEnvironment(hudson.EnvVars);
             LineNumberTable:
             line 62: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 6 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;

            public hudson.slaves.NodeSpecific forNode(hudson.model.Node, hudson.model.TaskListener) throws java.io.IOException, java.lang.InterruptedException;
             LineNumberTable:
             line 62: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 7 0 this Ljenkins/plugins/nodejs/tools/NodeJSInstallation;

            static jenkins.plugins.nodejs.tools.Platform access$000(jenkins.plugins.nodejs.tools.NodeJSInstallation) throws jenkins.plugins.nodejs.tools.DetectionFailedException;
             LineNumberTable:
             line 64: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 5 0 x0 Ljenkins/plugins/nodejs/tools/NodeJSInstallation;

            static java.lang.String access$100(jenkins.plugins.nodejs.tools.NodeJSInstallation);
             LineNumberTable:
             line 64: 0
             LocalVariableTable:
             Start Length Slot Name Signature
             0 5 0 x0 Ljenkins/plugins/nodejs/tools/NodeJSInstallation;
            }
            When a new installation of NodeJS tools occurs I see had notice a warning in the console log that refers to a jenkins page about "Serialization of anonymous classes"

            WARNING: Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1 in file:/var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
            nfalco Nikolas Falco made changes -
            Description When a new installation of NodeJS tools occurs I see had notice a warning in the console log that refers to a jenkins page about "Serialization of anonymous classes"

            WARNING: Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1 in file:/var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
            When a new installation of NodeJS tools occurs I see had notice a warning in the console log that refers to a jenkins page about "Serialization of anonymous classes"


            {noformat}
            WARNING: Attempt to (de-)serialize anonymous class jenkins.plugins.nodejs.tools.NodeJSInstallation$1 in file:/var/hudson/master/plugins/nodejs/WEB-INF/lib/nodejs.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
            {noformat}
            nfalco Nikolas Falco made changes -
            Environment Jenkins 2.102
            NodeJS 1.2.6
            nfalco Nikolas Falco made changes -
            Link This issue is related to JENKINS-49994 [ JENKINS-49994 ]
            nfalco Nikolas Falco made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Fixed but Unreleased [ 10203 ]
            nfalco Nikolas Falco made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

              People

              Assignee:
              nfalco Nikolas Falco
              Reporter:
              sakshisood sakshi sood
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: