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

java.io.StreamCorruptedException: invalid type code: 41 occured at end of build.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • core
    • None
    • Server and Remote Build Agent Windows 2012. Maven build.
      Jenkins 1.551

      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

            Unassigned Unassigned
            borisivan boris ivan
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: