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

hudson.cli.DiagnosedStreamCorruptionException when using jenkins-cli.jar

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • cli
    • None
    • Jenkins Distribution 2.190.3.2-rolling

      Hi
      When using jenkins-cli.jar to execute build (either by using sh \ any other method) , the process get stuck and reporting hudson.cli.DiagnosedStreamCorruptionException Even though the execute build success.

      Command
      java -jar jenkins-cli.jar -auth my_name:mine_token -s https://jenkins.company.com/jenkins build job_name -p param_1=val1 -p param_2=val2 -f -v

      Exception
      Feb 28, 2022 9:12:35 AM hudson.cli.PlainCLIProtocol$FramedReader run
      WARNING: null
      hudson.cli.DiagnosedStreamCorruptionException
      Read back: 0x00 0x00 0x00 '0' 0x07 'Started compliance ' 0xc2 0xbb ' master_compliance_job #868' 0x00 0x00 0x00 0x01 0x07 0x0a
      Read ahead:
      Diagnosis problem:
      java.io.IOException: Premature EOF
      at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:565)
      at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
      at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3435)
      at io.jenkins.cli.shaded.org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:62)
      at hudson.cli.FlightRecorderInputStream$1.run(FlightRecorderInputStream.java:61)
      at hudson.cli.FlightRecorderInputStream.analyzeCrash(FlightRecorderInputStream.java:84)
      at hudson.cli.PlainCLIProtocol$FramedReader.run(PlainCLIProtocol.java:158)
      Caused by: java.io.IOException: Premature EOF
      at sun.net.www.http.ChunkedInputStream.readAheadBlocking(ChunkedInputStream.java:565)
      at sun.net.www.http.ChunkedInputStream.readAhead(ChunkedInputStream.java:609)
      at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:696)
      at java.io.FilterInputStream.read(FilterInputStream.java:133)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3454)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3447)
      at sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3435)
      at io.jenkins.cli.shaded.org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:62)
      at hudson.cli.FlightRecorderInputStream.read(FlightRecorderInputStream.java:90)
      at java.io.DataInputStream.readInt(DataInputStream.java:387)
      at hudson.cli.PlainCLIProtocol$FramedReader.run(PlainCLIProtocol.java:130)

      Any help will be highly appreciated

            Unassigned Unassigned
            bigalbert Albert Shamsiyan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: