• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • Jenkins 2.113, config-file-plugin 2.18

      Jenkins log shows the following on boot;  the plugin is still working so this is more of an FYI

      Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1 in file:/var/lib/jenkins/plugins/config-file-provider/WEB-INF/lib/config-file-provider.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

       

      The instructions include a command to locate the offending lines, here's the output:

      javap -classpath /var/lib/jenkins/plugins/config-file-provider/WEB-INF/lib/config-file-provider.jar -l 'org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1'
      Compiled from "GlobalConfigFiles.java"
      final class org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1 implements java.util.Comparator<org.jenkinsci.lib.configprovider.model.Config> {
      org.jenkinsci.plugins.configfiles.GlobalConfigFiles$1();
      LineNumberTable:
      line 30: 0
      LocalVariableTable:
      Start Length Slot Name Signature
      0 5 0 this Lorg/jenkinsci/plugins/configfiles/GlobalConfigFiles$1;

      public int compare(org.jenkinsci.lib.configprovider.model.Config, org.jenkinsci.lib.configprovider.model.Config);
      LineNumberTable:
      line 33: 0
      LocalVariableTable:
      Start Length Slot Name Signature
      0 12 0 this Lorg/jenkinsci/plugins/configfiles/GlobalConfigFiles$1;
      0 12 1 o1 Lorg/jenkinsci/lib/configprovider/model/Config;
      0 12 2 o2 Lorg/jenkinsci/lib/configprovider/model/Config;

      public int compare(java.lang.Object, java.lang.Object);
      LineNumberTable:
      line 30: 0
      LocalVariableTable:
      Start Length Slot Name Signature
      0 13 0 this Lorg/jenkinsci/plugins/configfiles/GlobalConfigFiles$1;
      }

       

          [JENKINS-50457] Attempt to (de-)serialize anonymous class

          I think this isn't an isolated issue to a specific plugin.

           

          After upgrading today to the latest version of jenkins I started receiving similar messages. Please check below:

           

          Apr 19, 2018 4:08:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.117.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          Apr 19, 2018 4:10:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1 in file:/var/lib/jenkins/plugins/envinject/WEB-INF/lib/envinject.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          Apr 19, 2018 4:10:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.service.EnvInjectActionSetter$1 in file:/var/lib/jenkins/plugins/envinject/WEB-INF/lib/envinject.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          Apr 19, 2018 4:10:01 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/var/lib/jenkins/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          Apr 19, 2018 4:10:03 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class hudson.FilePath$11 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.117.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

           

          Thanks,

          Sebastian

          Strajan Sebastian added a comment - I think this isn't an isolated issue to a specific plugin.   After upgrading today to the latest version of jenkins I started receiving similar messages. Please check below:   Apr 19, 2018 4:08:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class hudson.model.ParametersDefinitionProperty$1 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.117.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Apr 19, 2018 4:10:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader$1 in file:/var/lib/jenkins/plugins/envinject/WEB-INF/lib/envinject.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Apr 19, 2018 4:10:00 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.service.EnvInjectActionSetter$1 in file:/var/lib/jenkins/plugins/envinject/WEB-INF/lib/envinject.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Apr 19, 2018 4:10:01 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/var/lib/jenkins/plugins/git-client/WEB-INF/lib/git-client.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Apr 19, 2018 4:10:03 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class hudson.FilePath$11 in file:/var/cache/jenkins/war/WEB-INF/lib/jenkins-core-2.117.jar ; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/   Thanks, Sebastian

          Arjunkumar Selvamani added a comment - - edited

          I am not able to do login or do nothing with the CLI. I am getting similar kind of error all the time.

          If I enable CLI remoting, it is still saying that the CLI login is expecting remoting even though I give the command.

          Finally I used the login command after resolving all the issues. But still it says "WARNING: Attempt to (de-)serialize anonymous class hudson.cli.ClientAuthenticationCache$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/"

          Do I need to fix the code on my own or wait for an update. Jenkins upgrade totally mad my day very bad.

           

          Also a very kind request. Please submit from user friendly documents to overcome the issue or for a workaround. The persons who are new to Jenkins were not able to grasp or fix anything with the documentations.

          Arjunkumar Selvamani added a comment - - edited I am not able to do login or do nothing with the CLI. I am getting similar kind of error all the time. If I enable CLI remoting, it is still saying that the CLI login is expecting remoting even though I give the command. Finally I used the login command after resolving all the issues. But still it says "WARNING: Attempt to (de-)serialize anonymous class hudson.cli.ClientAuthenticationCache$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ " Do I need to fix the code on my own or wait for an update. Jenkins upgrade totally mad my day very bad.   Also a very kind request. Please submit from user friendly documents to overcome the issue or for a workaround. The persons who are new to Jenkins were not able to grasp or fix anything with the documentations.

          Josh Soref added a comment - - edited
          Object PR/Code/Message
          GlobalConfigFiles$1 config-file-provider-plugin#50
          hudson.model.ParametersDefinitionProperty$1 jenkins#3540
          EnvironmentVariablesNodeLoader$1 envinject-plugin#131
          EnvInjectActionSetter$1 envinject-plugin#131
          org.jenkinsci.plugins.gitclient.Git$1 git-client-plugin#330
          org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 git-client-plugin#330
          hudson.FilePath$11 jenkins#3437
          ClientAuthenticationCache$1 jenkins#3540
          hudson.scm.subversion.CheckoutUpdater$1 subversion-plugin#220 
          hudson.scm.SubversionWorkspaceSelector$1 subversion-plugin#220

           

           

           

           

          Josh Soref added a comment - - edited Object PR/Code/Message GlobalConfigFiles$1 config-file-provider-plugin#50 hudson.model.ParametersDefinitionProperty$1 jenkins#3540 EnvironmentVariablesNodeLoader$1 envinject-plugin#131 EnvInjectActionSetter$1 envinject-plugin#131 org.jenkinsci.plugins.gitclient.Git$1 git-client-plugin#330 org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 git-client-plugin#330 hudson.FilePath$11 jenkins#3437 ClientAuthenticationCache$1 jenkins#3540 hudson.scm.subversion.CheckoutUpdater$1 subversion-plugin#220   hudson.scm.SubversionWorkspaceSelector$1 subversion-plugin#220        

          In my case I use Jenkins 2.121.2 and it fails on checkout pipeline stage with:

          Execution stage CHECKOUT for the service helloworld has been failed. Reason - java.io.IOException: Unable to serialize UserRPCRequest:org.jenkinsci.plugins.gitclient.GitClient.addCredentials[java.lang.String,com.cloudbees.plugins.credentials.common.StandardCredentials](32)

           

          But only before reboot. After reboot I see this message in log, but pipeline checkout stage works as expected.

          Victor Voronin added a comment - In my case I use Jenkins 2.121.2 and it fails on checkout pipeline stage with: Execution stage CHECKOUT for the service helloworld has been failed. Reason - java.io.IOException: Unable to serialize UserRPCRequest:org.jenkinsci.plugins.gitclient.GitClient.addCredentials [java.lang.String,com.cloudbees.plugins.credentials.common.StandardCredentials] (32)   But only before reboot. After reboot I see this message in log, but pipeline checkout stage works as expected.

          Oleg Nenashev added a comment -

          Jenkins core patches have been applied in 2.135. I suggest moving plugin fixes to separate tickets

          Oleg Nenashev added a comment - Jenkins core patches have been applied in 2.135. I suggest moving plugin fixes to separate tickets

            jsoref Josh Soref
            jimw jim woodlock
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: