hudson.remoting.ChannelClosedException: channel is already closed

Jenkins JIRA | boris ivan | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Executing a Maven build with goal integration-test site site:deploy. Everything goes as planned, and the website is published. At this point the email-ext plugin would typically fire. But here is the output: An attempt to send an e-mail to empty list of recipients, ignored. ERROR: Failed to parse POMs hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:524) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:722) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167) at com.sun.proxy.$Proxy55.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:930) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:833) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1670) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: hudson.remoting.DiagnosedStreamCorruptionException At this point there is a lot of debug output from Jenkins of various buffers, etc. Unfortunately tons of proprietary info in those buffers so I'm not going to post here, though I could probably answer specific questions if it's essential. The first set of messages are: Read back: 'A' Read ahead: '[[Ljava.lang.Object;@28170a64]]>' 0x0d 0x0a Later after a few pages of debug output, we see more of the stack, which seems fairly interesting.. at hudson.remoting.FlightRecorderInputStream.analyzeCrash(FlightRecorderInputStream.java:71) at hudson.remoting.ClassicCommandTransport.diagnoseStreamCorruption(ClassicCommandTransport.java:94) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:78) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Caused by: java.io.StreamCorruptedException: invalid type code: 41 at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) ... 1 more

    Jenkins JIRA | 3 years ago | boris ivan
    hudson.remoting.ChannelClosedException: channel is already closed
  2. 0

    Executing a Maven build with goal integration-test site site:deploy. Everything goes as planned, and the website is published. At this point the email-ext plugin would typically fire. But here is the output: An attempt to send an e-mail to empty list of recipients, ignored. ERROR: Failed to parse POMs hudson.remoting.ChannelClosedException: channel is already closed at hudson.remoting.Channel.send(Channel.java:524) at hudson.remoting.Request.call(Request.java:129) at hudson.remoting.Channel.call(Channel.java:722) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167) at com.sun.proxy.$Proxy55.isAlive(Unknown Source) at hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:930) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:165) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:833) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565) at hudson.model.Run.execute(Run.java:1670) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Caused by: hudson.remoting.DiagnosedStreamCorruptionException At this point there is a lot of debug output from Jenkins of various buffers, etc. Unfortunately tons of proprietary info in those buffers so I'm not going to post here, though I could probably answer specific questions if it's essential. The first set of messages are: Read back: 'A' Read ahead: '[[Ljava.lang.Object;@28170a64]]>' 0x0d 0x0a Later after a few pages of debug output, we see more of the stack, which seems fairly interesting.. at hudson.remoting.FlightRecorderInputStream.analyzeCrash(FlightRecorderInputStream.java:71) at hudson.remoting.ClassicCommandTransport.diagnoseStreamCorruption(ClassicCommandTransport.java:94) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:78) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:48) Caused by: java.io.StreamCorruptedException: invalid type code: 41 at java.io.ObjectInputStream.readObject0(Unknown Source) at java.io.ObjectInputStream.readObject(Unknown Source) at hudson.remoting.Command.readFrom(Command.java:92) at hudson.remoting.ClassicCommandTransport.read(ClassicCommandTransport.java:71) ... 1 more

    Jenkins JIRA | 3 years ago | boris ivan
    hudson.remoting.ChannelClosedException: channel is already closed
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. hudson.remoting.ChannelClosedException

      channel is already closed

      at hudson.remoting.Channel.send()
    2. Hudson :: Remoting Layer
      RemoteInvocationHandler.invoke
      1. hudson.remoting.Channel.send(Channel.java:524)
      2. hudson.remoting.Request.call(Request.java:129)
      3. hudson.remoting.Channel.call(Channel.java:722)
      4. hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:167)
      4 frames
    3. com.sun.proxy
      $Proxy55.isAlive
      1. com.sun.proxy.$Proxy55.isAlive(Unknown Source)
      1 frame
    4. Hudson
      Launcher$RemoteLauncher$ProcImpl.isAlive
      1. hudson.Launcher$RemoteLauncher$ProcImpl.isAlive(Launcher.java:930)
      1 frame
    5. Hudson Maven Embedder
      MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun
      1. hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:165)
      2. hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:833)
      2 frames
    6. Hudson
      Run.execute
      1. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:565)
      2. hudson.model.Run.execute(Run.java:1670)
      2 frames
    7. Hudson Maven Embedder
      MavenModuleSetBuild.run
      1. hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519)
      1 frame
    8. Hudson
      Executor.run
      1. hudson.model.ResourceController.execute(ResourceController.java:88)
      2. hudson.model.Executor.run(Executor.java:231)
      2 frames