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

Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • envinject-plugin
    • Jenkins 2.121.2, enviniject 2.1.6
    • 2.2.0

      I'm seeing the following warning in the logs:

      WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2 in file:/var/lib/jenkins/plugins/envinject/WEB-INF/lib/envinject.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ 

          [JENKINS-52946] Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2

          Matthias Keller created issue -

          Josh Soref added a comment -

          Josh Soref added a comment - https://github.com/jenkinsci/envinject-plugin/pull/131
          Josh Soref made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]
          Josh Soref made changes -
          Status Original: Fixed but Unreleased [ 10203 ] New: Reopened [ 4 ]
          Josh Soref made changes -
          Link New: This issue duplicates JENKINS-50457 [ JENKINS-50457 ]
          Josh Soref made changes -
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

          Holger Sunke added a comment -

          Although marked as duplicate of a fixed issue, this is still not fixed in enviniject 2.1.6, jenkins 2.148

          Holger Sunke added a comment - Although marked as duplicate of a fixed issue, this is still not fixed in enviniject 2.1.6, jenkins 2.148

          Ray Kivisto added a comment -

          holgersu I have been trying to reproduce this error with envinject plugin 2.1.6 and Jenkins LTS 2.138.2, and have been unable to, but I do see reports of this warning from others.

          Can you please provide the steps to reproduce this bug?

          Ray Kivisto added a comment - holgersu I have been trying to reproduce this error with envinject plugin 2.1.6 and Jenkins LTS 2.138.2, and have been unable to, but I do see reports of this warning from others. Can you please provide the steps to reproduce this bug?

          Rick Liu added a comment - - edited

          I still see the warning below in all of my Jenkins slave log:

          WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Environment:
          Ubuntu 16.04
          Jenkins vers: 2.138.4
          EnvInject 2.1.6
          EnvInject API 1.5

           

           

          Jenkins slave connection log snippet:

          [12/21/18 15:44:08] [SSH] Checking java version of /home/devops/jenkins_robot_slave/jdk/bin/java
          Couldn't figure out the Java version of /home/devops/jenkins_robot_slave/jdk/bin/java
          bash: /home/devops/jenkins_robot_slave/jdk/bin/java: No such file or directory

          [12/21/18 15:44:08] [SSH] Checking java version of java
          [12/21/18 15:44:08] [SSH] java -version returned 1.8.0_162.
          [12/21/18 15:44:08] [SSH] Starting sftp client.
          [12/21/18 15:44:08] [SSH] Copying latest remoting.jar...
          [12/21/18 15:44:08] [SSH] Copied 776,265 bytes. Expanded the channel window size to 4MB
          [12/21/18 15:44:08] [SSH] Starting agent process: cd "/home/devops/jenkins_robot_slave" && java -jar remoting.jar -workDir /home/devops/jenkins_robot_slave
          Dec 21, 2018 3:44:09 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir
          INFO: Using /home/devops/jenkins_robot_slave/remoting as a remoting work directory
          Both error and output logs will be printed to /home/devops/jenkins_robot_slave/remoting
          <===[JENKINS REMOTING CAPACITY]===>channel started
          Remoting version: 3.25
          This is a Unix agent
          Evacuated stdout

          Dec 21, 2018 3:44:18 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see:
          https://jenkins.io/redirect/serialization-of-anonymous-classes/

          Agent successfully connected and online

          Rick Liu added a comment - - edited I still see the warning below in all of my Jenkins slave log: WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Environment: Ubuntu 16.04 Jenkins vers: 2.138.4 EnvInject 2.1.6 EnvInject API 1.5     Jenkins slave connection log snippet: [12/21/18 15:44:08] [SSH] Checking java version of /home/devops/jenkins_robot_slave/jdk/bin/java Couldn't figure out the Java version of /home/devops/jenkins_robot_slave/jdk/bin/java bash: /home/devops/jenkins_robot_slave/jdk/bin/java: No such file or directory [12/21/18 15:44:08] [SSH] Checking java version of java [12/21/18 15:44:08] [SSH] java -version returned 1.8.0_162. [12/21/18 15:44:08] [SSH] Starting sftp client. [12/21/18 15:44:08] [SSH] Copying latest remoting.jar... [12/21/18 15:44:08] [SSH] Copied 776,265 bytes. Expanded the channel window size to 4MB [12/21/18 15:44:08] [SSH] Starting agent process: cd "/home/devops/jenkins_robot_slave" && java -jar remoting.jar -workDir /home/devops/jenkins_robot_slave Dec 21, 2018 3:44:09 PM org.jenkinsci.remoting.engine.WorkDirManager initializeWorkDir INFO: Using /home/devops/jenkins_robot_slave/remoting as a remoting work directory Both error and output logs will be printed to /home/devops/jenkins_robot_slave/remoting <=== [JENKINS REMOTING CAPACITY] ===>channel started Remoting version: 3.25 This is a Unix agent Evacuated stdout Dec 21, 2018 3:44:18 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Agent successfully connected and online
          Beer Michael made changes -
          Attachment New: image-2018-12-28-11-08-24-794.png [ 45552 ]

            jsoref Josh Soref
            seldor Matthias Keller
            Votes:
            4 Vote for this issue
            Watchers:
            18 Start watching this issue

              Created:
              Updated:
              Resolved: