• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None

      After upgrading jenkins from 2.89.4 to 2.138.1, I am seeing the below errors in the logs.  Please note i have upgraded all my plugins to latest version.

      Sep 07, 2018 12:23:23 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class hudson.FilePath$28 in file:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/jenkins-core-2.121.3.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:24 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.Git$1 in file:/var/hudson/master/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:25 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1 in file:/var/hudson/master/plugins/git-client/WEB-INF/lib/git-client.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:36 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class hudson.FilePath$27 in file:/var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/jenkins-core-2.121.3.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:52 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenArtifactArchiver$2 in file:/var/hudson/master/plugins/maven-plugin/WEB-INF/lib/maven-plugin.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:53 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class org.whitesource.jenkins.extractor.maven.MavenDependenciesRecorder$1 in file:/var/hudson/master/plugins/whitesource/WEB-INF/lib/whitesource.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:53 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class org.jfrog.hudson.maven2.MavenDependenciesRecorder$1 in file:/var/hudson/master/plugins/artifactory/WEB-INF/lib/artifactory.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:54 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class hudson.maven.reporters.MavenFingerprinter$1 in file:/var/hudson/master/plugins/maven-plugin/WEB-INF/lib/maven-plugin.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:23:57 PM org.jenkinsci.remoting.util.AnonymousClassWarnings warn
      WARNING: Attempt to (de-)serialize anonymous class hudson.plugins.global_build_stats.model.BuildResult$2 in file:/var/hudson/master/plugins/global-build-stats/WEB-INF/lib/global-build-stats.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/
      Sep 07, 2018 12:24:03 PM hudson.remoting.Request$2 run
      INFO: Failed to send back a reply to the request hudson.remoting.Request$2@46011678: hudson.remoting.ChannelClosedException: Channel "hudson.remoting.Channel@a52f63c:Channel to Maven [java, -Xmx2g, -XX:MaxPermSize=196m, -Duser.country=GB, -Duser.language=en, -Dfile.encoding=ISO-8859-1, -Dencoding=ISO-8859-1, -cp, /var/hudson/maven33-agent.jar:/var/hudson/tools/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/var/hudson/tools/apache-maven-3.3.9/conf/logging, jenkins.maven3.agent.Maven33Main, /var/hudson/tools/apache-maven-3.3.9, /var/hudson/remoting.jar, /var/hudson/maven33-interceptor.jar, /var/hudson/maven3-interceptor-commons.jar, 32891]": channel is already closed
      Sep 07, 2018 12:24:03 PM hudson.model.Run execute
      INFO: devtools-maven-build-test #25 main build action completed: FAILURE

       

      How am I suppose to resolve this issue ?

          [JENKINS-53465] ChannelClosedException in Maven channel

          sakshi sood created issue -

          Oleg Nenashev added a comment -

          I will let jglick answer this question. I still think that this diagnostics is not required for Remoting (at least on the WARNING level). It's a good thing for refactoring by plugin developers, but users cannot do much about that.

          CC jsoref

           

          Oleg Nenashev added a comment - I will let jglick answer this question. I still think that this diagnostics is not required for Remoting (at least on the WARNING level). It's a good thing for refactoring by plugin developers, but users cannot do much about that. CC jsoref  
          Oleg Nenashev made changes -
          Priority Original: Blocker [ 1 ] New: Major [ 3 ]

          Oleg Nenashev added a comment -

          Not a blocker, the issue does not lead to the DoS

          Oleg Nenashev added a comment - Not a blocker, the issue does not lead to the DoS

          sakshi sood added a comment - - edited

          oleg_nenashev How can I resolve this issue ? Is there something i need to do ? My jenkins is on latest LTS, so are the plugins.

          sakshi sood added a comment - - edited oleg_nenashev How can I resolve this issue ? Is there something i need to do ? My jenkins is on latest LTS, so are the plugins.

          Josh Soref added a comment -

          sakshisood: Note that some of these have been fixed, but either haven't had released with the fix, or possibly haven't had releases for LTS (about which I know nothing). You can search JIRA for each class, e.g. org.jenkinsci.plugins.gitclient.Git$1 is https://issues.jenkins-ci.org/browse/JENKINS-52948

          There are things you could do to help me. The listed URL in the warning includes a command to run in the overview. If you could run that for the items listed here.

          Josh Soref added a comment - sakshisood : Note that some of these have been fixed, but either haven't had released with the fix, or possibly haven't had releases for LTS (about which I know nothing). You can search JIRA for each class, e.g. org.jenkinsci.plugins.gitclient.Git$1 is https://issues.jenkins-ci.org/browse/JENKINS-52948 There are things you could do to help me. The listed URL in the warning includes a command to run in the overview. If you could run that for the items listed here.

          Josh Soref added a comment -
          1. JENKINS-53481
          2. JENKINS-53482
          3. JENKINS-53483

          I can't deal w/ the global-build-stats-plugin because it's an enum which is its own mess...

          Josh Soref added a comment - JENKINS-53481 JENKINS-53482 JENKINS-53483 I can't deal w/ the global-build-stats-plugin because it's an enum which is its own mess...

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - Remoting update should help with enums. https://github.com/jenkinsci/remoting/blob/master/CHANGELOG.md#326

          Jesse Glick added a comment -

          Warnings are for Jenkins developers. They have nothing to do with the reported bug, a build failure, which is some undiagnosed Remoting channel failure, which could have any number of causes.

          Jesse Glick added a comment - Warnings are for Jenkins developers. They have nothing to do with the reported bug, a build failure, which is some undiagnosed Remoting channel failure, which could have any number of causes.

          Jesse Glick added a comment -

          Best to just uninstall this plugin.

          Jesse Glick added a comment - Best to just uninstall this plugin.
          Jesse Glick made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: core [ 15593 ]
          Summary Original: Attempt to (de-)serialize anonymous class New: ChannelClosedException in Maven channel

            Unassigned Unassigned
            sakshisood sakshi sood
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: