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

Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$2

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • remoting
    • None
    • Jenkins 2.121.2, credentials-plugin 2.1.18

      I'm seeing this warning in the logs:

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

          [JENKINS-52945] Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$2

          Hi,

          I got this warning with 1.106, 1.121 and now with 1.234

          Here are mine (sorry, somme parts are n french):

          août 09, 2018 11:59:30 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          AVERTISSEMENT: Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$2 in file:${JENKINS_HOME}/plugins/credentials/WEB-INF/lib/credentials.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          août 09, 2018 11:59:30 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
          AVERTISSEMENT: Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$1 in file:${JENKINS_HOME}/plugins/credentials/WEB-INF/lib/credentials.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
          

          Lionel FÉLICITÉ added a comment - Hi, I got this warning with 1.106, 1.121 and now with 1.234 Here are mine (sorry, somme parts are n french): août 09, 2018 11:59:30 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn AVERTISSEMENT: Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$2 in file:${JENKINS_HOME}/plugins/credentials/WEB-INF/lib/credentials.jar; see: https: //jenkins.io/redirect/serialization-of-anonymous-classes/ août 09, 2018 11:59:30 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn AVERTISSEMENT: Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$1 in file:${JENKINS_HOME}/plugins/credentials/WEB-INF/lib/credentials.jar; see: https: //jenkins.io/redirect/serialization-of-anonymous-classes/

          Jesse Glick added a comment -

          Not really a JEP-200 issue, this is a separate warning system added after JEP-200.

          Jesse Glick added a comment - Not really a JEP-200 issue, this is a separate warning system added after JEP-200.

          Jesse Glick added a comment -

          Fix integrated into master of Remoting. Next we need a release of that, then for it to be picked up in the core POM.

          Jesse Glick added a comment - Fix integrated into master of Remoting. Next we need a release of that, then for it to be picked up in the core POM.

          Jeff Thompson added a comment -

          Released in the latest 3.26 version of Remoting. Merged to go into the next Jenkins release.

          Jeff Thompson added a comment - Released in the latest 3.26 version of Remoting. Merged to go into the next Jenkins release.

            jglick Jesse Glick
            seldor Matthias Keller
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: