Skip to content

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

Closed

Description

@jenkins-infra-bot

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/ 

Originally reported by seldor, imported from: Attempt to (de-)serialize anonymous class com.cloudbees.plugins.credentials.CredentialsScope$2
  • assignee: jglick
  • status: Closed
  • priority: Minor
  • component(s): remoting
  • resolution: Fixed
  • resolved: 2018-08-31T16:11:19+00:00
  • votes: 0
  • watchers: 3
  • imported: 2025-11-25
Raw content of original issue

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/ 
  • environment: Jenkins 2.121.2, credentials-plugin 2.1.18

Activity

  1. jenkins-infra-bot commented on Aug 8, 2018

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Aug 9, 2018

    @jenkins-infra-bot
    Author
    deogracia:
    • Original comment link
    • Raw content of original 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/
      

    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/
    
  3. jenkins-infra-bot commented on Aug 23, 2018

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original comment:

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

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

  4. jenkins-infra-bot commented on Aug 31, 2018

    @jenkins-infra-bot
    Author
    jglick:
    • Original comment link
    • Raw content of original 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.

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

  5. jenkins-infra-bot commented on Aug 31, 2018

    @jenkins-infra-bot
    Author
    jthompson:
    • Original comment link
    • Raw content of original comment:

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

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

  6. jenkins-infra-bot commented on Nov 25, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-52947]

  7. jenkins-infra-bot commented on Nov 25, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-53281]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions