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

ChannelClosedException in Maven channel

    Details

    • Similar Issues:

      Description

      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 ?

        Attachments

          Activity

          Hide
          sakshisood sakshi sood added a comment -

          Jesse Glick Josh Soref Shall I raise a separate ticket for the output of javap command ?

           

          javap -classpath /var/hudson/master/plugins/config-file-provider/WEB-INF/lib/config-file-provider.jar -l org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty$1
          Compiled from "FolderConfigFileProperty.java"
          public class org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>> implements org.jenkinsci.plugins.configfiles.ConfigFileStore {
          org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty(com.cloudbees.hudson.plugins.folder.AbstractFolder<?>);
          LineNumberTable:
          line 38: 0
          line 34: 4
          line 39: 18
          line 40: 23
          LocalVariableTable:
          Start Length Slot Name Signature
          0 24 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 24 1 owner Lcom/cloudbees/hudson/plugins/folder/AbstractFolder;

          public java.util.Collection<org.jenkinsci.lib.configprovider.model.Config> getConfigs();
          LineNumberTable:
          line 44: 0
          LocalVariableTable:
          Start Length Slot Name Signature
          0 5 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;

          public java.util.Collection<org.jenkinsci.lib.configprovider.model.Config> getConfigs(java.lang.Class<? extends hudson.model.Descriptor>);
          LineNumberTable:
          line 49: 0
          line 50: 8
          line 51: 38
          line 52: 53
          line 54: 62
          line 55: 65
          LocalVariableTable:
          Start Length Slot Name Signature
          38 24 4 c Lorg/jenkinsci/lib/configprovider/model/Config;
          0 67 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 67 1 descriptor Ljava/lang/Class;
          8 59 2 cs Ljava/util/List;

          public org.jenkinsci.lib.configprovider.model.Config getById(java.lang.String);
          LineNumberTable:
          line 60: 0
          line 61: 4
          line 62: 33
          line 63: 44
          line 65: 46
          line 67: 49
          LocalVariableTable:
          Start Length Slot Name Signature
          33 13 3 c Lorg/jenkinsci/lib/configprovider/model/Config;
          0 51 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 51 1 id Ljava/lang/String;

          public void save(org.jenkinsci.lib.configprovider.model.Config);
          LineNumberTable:
          line 72: 0
          line 73: 11
          line 75: 22
          line 78: 29
          line 76: 32
          line 77: 33
          line 79: 44
          LocalVariableTable:
          Start Length Slot Name Signature
          33 11 2 e Ljava/io/IOException;
          0 45 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 45 1 config Lorg/jenkinsci/lib/configprovider/model/Config;

          public void remove(java.lang.String);
          LineNumberTable:
          line 83: 0
          line 84: 6
          line 85: 10
          line 87: 21
          line 90: 28
          line 88: 31
          line 89: 32
          line 92: 43
          LocalVariableTable:
          Start Length Slot Name Signature
          32 11 3 e Ljava/io/IOException;
          0 44 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 44 1 id Ljava/lang/String;
          6 38 2 c Lorg/jenkinsci/lib/configprovider/model/Config;

          public java.util.Map<org.jenkinsci.lib.configprovider.ConfigProvider, java.util.Collection<org.jenkinsci.lib.configprovider.model.Config>> getGroupedConfigs();
          LineNumberTable:
          line 96: 0
          line 97: 11
          line 98: 40
          line 99: 55
          line 100: 60
          line 101: 69
          line 103: 82
          line 104: 91
          line 106: 94
          line 107: 125
          line 108: 136
          line 109: 144
          line 110: 147
          LocalVariableTable:
          Start Length Slot Name Signature
          55 36 4 configs Ljava/util/Collection;
          40 51 3 c Lorg/jenkinsci/lib/configprovider/model/Config;
          136 8 4 value Ljava/util/List;
          125 19 3 entry Ljava/util/Map$Entry;
          0 149 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          11 138 1 grouped Ljava/util/Map;

          public org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException;
          LineNumberTable:
          line 123: 0
          LocalVariableTable:
          Start Length Slot Name Signature
          0 2 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;
          0 2 1 req Lorg/kohsuke/stapler/StaplerRequest;
          0 2 2 form Lnet/sf/json/JSONObject;

          public com.cloudbees.hudson.plugins.folder.AbstractFolderProperty reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException;
          LineNumberTable:
          line 23: 0
          LocalVariableTable:
          Start Length Slot Name Signature
          0 7 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;

          public hudson.model.ReconfigurableDescribable reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException;
          LineNumberTable:
          line 23: 0
          LocalVariableTable:
          Start Length Slot Name Signature
          0 7 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty;

          static {};
          LineNumberTable:
          line 25: 0
          line 32: 10
          }
          [root@lnp6gtsqacib001 ~]#

          Show
          sakshisood sakshi sood added a comment - Jesse Glick Josh Soref Shall I raise a separate ticket for the output of javap command ?   javap -classpath /var/hudson/master/plugins/config-file-provider/WEB-INF/lib/config-file-provider.jar -l org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty$1 Compiled from "FolderConfigFileProperty.java" public class org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty extends com.cloudbees.hudson.plugins.folder.AbstractFolderProperty<com.cloudbees.hudson.plugins.folder.AbstractFolder<?>> implements org.jenkinsci.plugins.configfiles.ConfigFileStore { org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty(com.cloudbees.hudson.plugins.folder.AbstractFolder<?>); LineNumberTable: line 38: 0 line 34: 4 line 39: 18 line 40: 23 LocalVariableTable: Start Length Slot Name Signature 0 24 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 24 1 owner Lcom/cloudbees/hudson/plugins/folder/AbstractFolder; public java.util.Collection<org.jenkinsci.lib.configprovider.model.Config> getConfigs(); LineNumberTable: line 44: 0 LocalVariableTable: Start Length Slot Name Signature 0 5 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; public java.util.Collection<org.jenkinsci.lib.configprovider.model.Config> getConfigs(java.lang.Class<? extends hudson.model.Descriptor>); LineNumberTable: line 49: 0 line 50: 8 line 51: 38 line 52: 53 line 54: 62 line 55: 65 LocalVariableTable: Start Length Slot Name Signature 38 24 4 c Lorg/jenkinsci/lib/configprovider/model/Config; 0 67 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 67 1 descriptor Ljava/lang/Class; 8 59 2 cs Ljava/util/List; public org.jenkinsci.lib.configprovider.model.Config getById(java.lang.String); LineNumberTable: line 60: 0 line 61: 4 line 62: 33 line 63: 44 line 65: 46 line 67: 49 LocalVariableTable: Start Length Slot Name Signature 33 13 3 c Lorg/jenkinsci/lib/configprovider/model/Config; 0 51 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 51 1 id Ljava/lang/String; public void save(org.jenkinsci.lib.configprovider.model.Config); LineNumberTable: line 72: 0 line 73: 11 line 75: 22 line 78: 29 line 76: 32 line 77: 33 line 79: 44 LocalVariableTable: Start Length Slot Name Signature 33 11 2 e Ljava/io/IOException; 0 45 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 45 1 config Lorg/jenkinsci/lib/configprovider/model/Config; public void remove(java.lang.String); LineNumberTable: line 83: 0 line 84: 6 line 85: 10 line 87: 21 line 90: 28 line 88: 31 line 89: 32 line 92: 43 LocalVariableTable: Start Length Slot Name Signature 32 11 3 e Ljava/io/IOException; 0 44 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 44 1 id Ljava/lang/String; 6 38 2 c Lorg/jenkinsci/lib/configprovider/model/Config; public java.util.Map<org.jenkinsci.lib.configprovider.ConfigProvider, java.util.Collection<org.jenkinsci.lib.configprovider.model.Config>> getGroupedConfigs(); LineNumberTable: line 96: 0 line 97: 11 line 98: 40 line 99: 55 line 100: 60 line 101: 69 line 103: 82 line 104: 91 line 106: 94 line 107: 125 line 108: 136 line 109: 144 line 110: 147 LocalVariableTable: Start Length Slot Name Signature 55 36 4 configs Ljava/util/Collection; 40 51 3 c Lorg/jenkinsci/lib/configprovider/model/Config; 136 8 4 value Ljava/util/List; 125 19 3 entry Ljava/util/Map$Entry; 0 149 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 11 138 1 grouped Ljava/util/Map; public org.jenkinsci.plugins.configfiles.folder.FolderConfigFileProperty reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException; LineNumberTable: line 123: 0 LocalVariableTable: Start Length Slot Name Signature 0 2 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; 0 2 1 req Lorg/kohsuke/stapler/StaplerRequest; 0 2 2 form Lnet/sf/json/JSONObject; public com.cloudbees.hudson.plugins.folder.AbstractFolderProperty reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException; LineNumberTable: line 23: 0 LocalVariableTable: Start Length Slot Name Signature 0 7 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; public hudson.model.ReconfigurableDescribable reconfigure(org.kohsuke.stapler.StaplerRequest, net.sf.json.JSONObject) throws hudson.model.Descriptor$FormException; LineNumberTable: line 23: 0 LocalVariableTable: Start Length Slot Name Signature 0 7 0 this Lorg/jenkinsci/plugins/configfiles/folder/FolderConfigFileProperty; static {}; LineNumberTable: line 25: 0 line 32: 10 } [root@lnp6gtsqacib001 ~] #
          Hide
          sakshisood sakshi sood added a comment -

          javap -classpath /var/hudson/master/plugins/subversion/WEB-INF/lib/subversion.jar -l "hudson.scm.SubversionWorkspaceSelector$1"
          Compiled from "SubversionWorkspaceSelector.java"
          public class hudson.scm.SubversionWorkspaceSelector implements org.tmatesoft.svn.core.internal.wc.admin.ISVNAdminAreaFactorySelector {
          public static volatile int workspaceFormat;

          public static final int WC_FORMAT_17;

          public static final int OLD_WC_FORMAT_17;

          public hudson.scm.SubversionWorkspaceSelector();
          LineNumberTable:
          line 68: 0
          line 70: 4
          line 71: 8
          LocalVariableTable:
          Start Length Slot Name Signature
          0 9 0 this Lhudson/scm/SubversionWorkspaceSelector;

          public java.util.Collection getEnabledFactories(java.io.File, java.util.Collection, boolean) throws org.tmatesoft.svn.core.SVNException;
          LineNumberTable:
          line 75: 0
          line 76: 4
          line 79: 6
          line 80: 15
          line 81: 45
          line 82: 56
          line 81: 66
          line 84: 69
          line 86: 87
          line 87: 92
          line 90: 100
          LocalVariableTable:
          Start Length Slot Name Signature
          45 21 6 factory Lorg/tmatesoft/svn/core/internal/wc/admin/SVNAdminAreaFactory;
          0 103 0 this Lhudson/scm/SubversionWorkspaceSelector;
          0 103 1 path Ljava/io/File;
          0 103 2 factories Ljava/util/Collection;
          0 103 3 writeAccess Z
          15 88 4 enabledFactories Ljava/util/Collection;

          public static void syncWorkspaceFormatFromMaster();
          LineNumberTable:
          line 106: 0
          line 107: 4
          line 108: 8
          line 110: 26
          line 111: 30
          line 113: 34
          line 124: 54
          line 120: 57
          line 121: 58
          line 124: 70
          line 122: 73
          line 123: 74
          line 126: 86
          LocalVariableTable:
          Start Length Slot Name Signature
          58 12 2 e Ljava/io/IOException;
          74 12 2 e Ljava/lang/InterruptedException;
          30 56 1 c Lhudson/remoting/Channel;
          4 83 0 j Ljenkins/model/Jenkins;

          static {};
          LineNumberTable:
          line 103: 0
          line 141: 5
          }

          Show
          sakshisood sakshi sood added a comment - javap -classpath /var/hudson/master/plugins/subversion/WEB-INF/lib/subversion.jar -l "hudson.scm.SubversionWorkspaceSelector$1" Compiled from "SubversionWorkspaceSelector.java" public class hudson.scm.SubversionWorkspaceSelector implements org.tmatesoft.svn.core.internal.wc.admin.ISVNAdminAreaFactorySelector { public static volatile int workspaceFormat; public static final int WC_FORMAT_17; public static final int OLD_WC_FORMAT_17; public hudson.scm.SubversionWorkspaceSelector(); LineNumberTable: line 68: 0 line 70: 4 line 71: 8 LocalVariableTable: Start Length Slot Name Signature 0 9 0 this Lhudson/scm/SubversionWorkspaceSelector; public java.util.Collection getEnabledFactories(java.io.File, java.util.Collection, boolean) throws org.tmatesoft.svn.core.SVNException; LineNumberTable: line 75: 0 line 76: 4 line 79: 6 line 80: 15 line 81: 45 line 82: 56 line 81: 66 line 84: 69 line 86: 87 line 87: 92 line 90: 100 LocalVariableTable: Start Length Slot Name Signature 45 21 6 factory Lorg/tmatesoft/svn/core/internal/wc/admin/SVNAdminAreaFactory; 0 103 0 this Lhudson/scm/SubversionWorkspaceSelector; 0 103 1 path Ljava/io/File; 0 103 2 factories Ljava/util/Collection; 0 103 3 writeAccess Z 15 88 4 enabledFactories Ljava/util/Collection; public static void syncWorkspaceFormatFromMaster(); LineNumberTable: line 106: 0 line 107: 4 line 108: 8 line 110: 26 line 111: 30 line 113: 34 line 124: 54 line 120: 57 line 121: 58 line 124: 70 line 122: 73 line 123: 74 line 126: 86 LocalVariableTable: Start Length Slot Name Signature 58 12 2 e Ljava/io/IOException; 74 12 2 e Ljava/lang/InterruptedException; 30 56 1 c Lhudson/remoting/Channel; 4 83 0 j Ljenkins/model/Jenkins; static {}; LineNumberTable: line 103: 0 line 141: 5 }
          Hide
          jglick Jesse Glick added a comment -

          Sure, one ticket for each affected plugin. For plugins which have active maintainers, generally the fix is covered by a simple IDE refactoring (“convert anonymous to member”).

          Show
          jglick Jesse Glick added a comment - Sure, one ticket for each affected plugin. For plugins which have active maintainers, generally the fix is covered by a simple IDE refactoring (“convert anonymous to member”).
          Hide
          sakshisood sakshi sood added a comment -

          Josh Soref Hope these tickets makes some sense

          https://issues.jenkins-ci.org/browse/JENKINS-53620

          https://issues.jenkins-ci.org/browse/JENKINS-53619

          https://issues.jenkins-ci.org/browse/JENKINS-53618

          https://issues.jenkins-ci.org/browse/JENKINS-53615

          https://issues.jenkins-ci.org/browse/JENKINS-53616

           

          Jesse Glick Can you please tell me if I should be worried about these (de-)serialize warnings ? Or Is it fine to upgrade in PROD with these warnings ?

          Show
          sakshisood sakshi sood added a comment - Josh Soref Hope these tickets makes some sense https://issues.jenkins-ci.org/browse/JENKINS-53620 https://issues.jenkins-ci.org/browse/JENKINS-53619 https://issues.jenkins-ci.org/browse/JENKINS-53618 https://issues.jenkins-ci.org/browse/JENKINS-53615 https://issues.jenkins-ci.org/browse/JENKINS-53616   Jesse Glick Can you please tell me if I should be worried about these (de-)serialize warnings ? Or Is it fine to upgrade in PROD with these warnings ?
          Hide
          jglick Jesse Glick added a comment -

          You should not worry.

          Show
          jglick Jesse Glick added a comment - You should not worry.

            People

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

              Dates

              • Created:
                Updated: