Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempt to (de-)serialize anonymous class WARN for Jenkins Plugin #768

Closed
msymons opened this issue Aug 15, 2018 · 3 comments
Closed

Attempt to (de-)serialize anonymous class WARN for Jenkins Plugin #768

msymons opened this issue Aug 15, 2018 · 3 comments

Comments

@msymons
Copy link

msymons commented Aug 15, 2018

After upgrading Jenkins to 2.121.2 LTS and with JavaMelody plugin 1.73.1 installed, the following is seen in Jenkins node logs

<===[JENKINS REMOTING CAPACITY]===>channel started
Remoting version: 3.21
This is a Unix agent
Evacuated stdout
Aug 09, 2018 11:11:50 AM 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

Also seen for Windows nodes connecting via JNLP.

Note link in log to Serialization of anonymous classes wiki page.

@evernat
Copy link
Member

evernat commented Aug 20, 2018

I don't think that this is related to the javamelody monitoring plugin. In fact, the class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2 in the message is from the EnvInject plugin.
And there is already an issue created for the same thing in the EnvInject plugin:
https://issues.jenkins-ci.org/browse/JENKINS-52946

I suppose for now that it is not related to the javamelody monitoring plugin, so closing as invalid.

@evernat evernat closed this as completed Aug 20, 2018
@msymons
Copy link
Author

msymons commented Aug 21, 2018

@evernat, I am afraid that I copied the wrong bit of log! Here's a 2nd attempt, where only the 2nd WARNING is of interest to you...

INFO: Connected
Aug 21, 2018 12:58:04 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class hudson.FilePath$27; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
Aug 21, 2018 12:58:05 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
WARNING: Attempt to (de-)serialize anonymous class net.bull.javamelody.RemoteCallHelper$1; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/

evernat added a commit to jenkinsci/monitoring-plugin that referenced this issue Aug 24, 2018
@evernat evernat reopened this Aug 24, 2018
@evernat
Copy link
Member

evernat commented Aug 24, 2018

For the first warning, I think that it does not come from the monitoring plugin and that it comes from Jenkins core and that it was fixed. So upgrading your Jenkins server should fix that.

The 2nd warning about net.bull.javamelody.RemoteCallHelper$1 is now fixed by this commit:
jenkinsci/monitoring-plugin@a61d1f0
And it is ready for the next release (1.74), probably early September.
Thanks for the issue.

@evernat evernat closed this as completed Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants